RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: cantonic
fixed it by using
@message = Message.new @message.parent_id=params[:parent_id]
instead of
@message = Message.new(:parent_id => params[:parent_id])
I have the same problem with Rails 3.1.3
fixed it by using
@message = Message.new
@message.parent_id=params[:parent_id]
instead of
@message = Message.new(:parent_id => params[:parent_id])
I have the same problem with Rails 3.1.3