Frederick Cheung wrote in post #993841:
> On Apr 19, 8:39pm, Neil Bye <[email protected]> wrote:
>> Tim Shaffer wrote in post #993815:
>>
>
> sounds to me like params[:id] isn't set.
>
> Fred
Not sure what you mean. How would I set params[:id] ?
It works if I use params[:user_id] or [:current_user_id]
Surely the pproblem is that it doesn't know which comment it is supposed
to be subcommenting on.
This is what calls it, is there a problem here.
<%= form_for :subcomment, :remote => true, :url =>
user_subcomments_path(@user) do |form| %>
<%= form.text_field :body %>
<p><%= submit_tag 'Comment' %></p>
<% end %>
--
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 [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.