Hi,
I''ve the following call to link_to_remote:
<% @calendars.each do |c| %>
<%= link_to_remote ''dont show ''+c.name, :url => {
:action =>
''update_calendar'', :id => c.id } %>
It shows a list with calendars.
When the user presses on the link it hides that calendar (given the id).
Fine.
But now it would be nice to replace the link by a checkbox. And the
update_calendar method would read the params[:id] and the
params[:selected] in order to show or hide a given calendar.
The problem is, I don''t have a "check_box_to_remote" method.
Can you give me some ideas on this? Or it''s not possible?
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---