Tuesday, June 8, 2010

[Rails] Re: ajax and redirect

With my search forms, I use two partials, one for the controls and one
for the result and then just use a page update to redisplay both
parts.

If you really want a redirect

On Jun 6, 11:25 am, javinto <jan.javi...@gmail.com> wrote:

> format.js {
>           render :action=> search_show, :layout=>false
>         }
>
javinto,
Interesting, something I have not tried. Is this an ajax update
response, in which case, the part of the dom being updated would
presumably need to be the part generated by the yield in the layout?

badnaam
I use ajax search forms and handle the update as two partials, one for
the controls and one for the results, using
render :update

Tonypm

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate