[Rails] Re: Trouble passing variable
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.
> Neil
--
Posted via http://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 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