On May 25, 6:23 pm, Lille <[email protected]> wrote: > Fred, > > Thanks, that worked great. > > I don't understand why the form is expecting anything after it has > submitted to the controller, i.e., I don't understand that a > remote_form_tag handles redirect_to calls. Maybe I don't get where RJS > is 'taking place'.
What rjs means is that a response consisting entirely of javascript is generated. Ajax requests in prototype come in two flavours: Either they expect to get a fragment of html back which they insert into a specific place in the DOM or they expect to get some javascript back in which case they execute it. Stuff like link_to_remote and remote_form_for will create the former (Ajax.Updater) if you supply an :update option (the id of the element to update) and an Ajax.Request if not Fred -- 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.

