Ok, so, ive got a link and a rjs file, is there a way i can pass a
variable to the rjs by the remote_to link
<%= link_to_remote "All", :url => 'all' %>
<%= link_to_remote "Messages", :url => 'messages' %>
<%= link_to_remote "Requests", :url => 'requests' %>
<%= link_to_remote "Comments", :url => 'comments' %>
instead of having a rjs for each one performing the action below,
could i have one and pass a variable to it so it knowns with partial
my rjs is....
page.visual_effect :fade, "activity", :queue => 'front', :duration =>
page.replace_html "activity", :partial => "all"
page.visual_effect :appear, "activity", :duration => 0.6
Thanxs from a newbie