Zhao Yi wrote: > Can I let onclick refer to a function defined in the controller?
In HTML it's: onclick='Ajax.Request(...)' In Ruby that's :onclick => 'Ajax.Request(...)', natch. To get the ... part, write remote_function or link_to_remote into a web page and view its source. That will show you how to pack the Request arguments. -- Phlip --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

