I have a blog that people can leave comments on.
I have used the following code to attempt to save the comment value to
@user = User.find(session[:user_id])
params[:body], :user_id => session[:user_id])
flash[:notice] = "Added your comment"
redirect_to :action => "show", :id => params[:id]
the values in the database are:
ALl these values EXCEPT the body get populated.
Using my code above, can anyone see why the body isn't being stored?
(it just gets set as NULL)
Hope someone can help...