Ton of examples here:
http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor
Search for "Ruby on Rails" to find a few RoR examples, although they
don''t seem to be using the in_place_editor helper (which is deprecated
anyway).
If you want to continue to use it, make sure you specify the :url
option which will get handed to url_for. This is where you specify
the object''s ID. See
http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptMacrosHelper.html#M000569
for more info.
On Mar 18, 9:43 am, "Mantat"
<alain.pi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> I have a few questions regarding the use of in_place_editor. I am
> trying to build an app using the REST interface and I cant make it
> work with this helper. Anyone has a working exemple I can look at?
>
> Also, I looked at the code generated by the editor and the value that
> is sent to the server and I dont understand how the server is supposed
> to guess which record to update since the ID isnt passed as a param....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---