On Jul 17, 7:32 pm, Neil Bye <[email protected]> wrote:
> Neil Bye wrote in post #1011261:
>
> > Frederick Cheung wrote in post #1011256:
>
> >>>        <%= form_for [Comment, Subcomment.new],:remote => true do |form|
> >>> %>
>
> >> Here you should put the comment the subcomment is for, not Comment. If
> >> you do that then you shouldn't need a hidden_field with the
> >> comment_id.
>
> >> Fred
>
> Strike last posting , there was an error in the  controller. All OK now.
> Still don't know why I got the error in my first post.
>
Because your routes are setup to pull comment_id from the URL.

Fred
> > Neil
>
> --
> Posted viahttp://www.ruby-forum.com/.

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

Reply via email to