Ruby on Rails Monday, August 2, 2010

On Aug 2, 12:53 am, Neil Bye <li...@ruby-forum.com> wrote:
> I didn't really want the whole page refresh I was only using it  coz the
> rjs wasn't working. I want the .rjs coz I want comments to go straight
> up with no refresh.
>
> Are you saying I should make a line
>
>  page.redirect_to story_path(@story), :controller => 'stories'
>

If you want a redirect from rjs that is how you do it
(the :controller bit isn't needed). That will do a full page refresh
do.

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 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.

No comments:

Post a Comment