You have to show us the code in your view that has the form to make a 
comment.

>From your description, params[:body] is obviously not being set to 
anything because you don't have a textarea or input box with the name 
"body". If the name of the textarea or input is named "comment[body]" 
then to access this value it would be params[:comment][:body].

Also if you have an association between users and comments, such as user 
has_many :comments, you can just do

@blogcomment = @user.blogcomments.create(:id => params[:body])
-- 
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.

Reply via email to