Hi, I seem to be having a problem with Ajax.Updater passing variables
correctly. I have a Ajax call that does this:
<%= link_to item.name, {:action => "#"},
{"onmouseover" => "new
Ajax.Updater(''display_stuff'', ''display'',
{parameters:''client=IBM''})"} %>
My ''display'' action only has one line:
def display
@client = params[:client]
end
Looking at the log, the variable seems to have been passed correctly:
Processing DisplayController#display (for 127.0.0.1 at 2007-07-29
22:58:06) [GET]
Session ID: a724b690db0cfe794dd1c3821cbf0919
Parameters: {"client"=>"IBM",
"action"=>"display",
"controller"=>"display"}
Any idea, anyone?
--
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
-~----------~----~----~----~------~----~------~--~---