On Sep 29, 12:11 pm, FM <[EMAIL PROTECTED]> wrote:
> On Sep 29, 12:31 pm, Frederick Cheung <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > If you are redirecting the user somewhere upon creation of the comment
> > then that redirect should specify the anchor.
>
> As you previously suggested I am not using redirection anymore, but I
> render the whole post page.
>
> My action basically does this:http://pastie.org/281283
> And this is my 'show' view:http://pastie.org/281286
>
> So I need to show the user the page starting from the 'comment_form'
> anchor as a result of the rendering.
You've still got a redirect in the success case.
redirect_to(:back, :anchor => 'comment_form') }
won't actually use that anchor at all (the :back option wins).
Also check that the html of the document looks right.
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
-~----------~----~----~----~------~----~------~--~---