[Rails] Re: ajax and redirect

2010-06-10 Thread Sijo k g
to search_show). I am told that if the request is xhr then I can't redirect to the search_show action? Is that right? If yes, how do I handle this? Hi If what I understood from your post is correct, you can do from controller like render :update do |page| page.redirect_to

[Rails] Re: ajax and redirect

2010-06-09 Thread tonypm
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,

[Rails] Re: ajax and redirect

2010-06-06 Thread javinto
Hi, What you cannot do is mixing Ajax requests with full URL page requests But what you can do is something like: format.js { render :action= search_show, :layout=false } Your search_show view will be rendered without any application layout provided you're using the same