Re: [Rails] Re: :body is not being stored in the database

2010-05-22 Thread Rick DeNatale
On Sat, May 22, 2010 at 5:23 AM, RubyonRails_newbie wrote: >> You've writtten comments.create :id => params[:body] which I assume >> isn't what you wanted. > > Well- i'd started to follow a tutorial, but didn't quite understand > it. > ANy idea what id should be to allow it to save? > > I've tried

[Rails] Re: :body is not being stored in the database

2010-05-22 Thread RubyonRails_newbie
i changed it to comment, and it returned this error: --- !map:HashWithIndifferentAccess any ideas? On 22 May, 10:23, RubyonRails_newbie wrote: > > You've writtten comments.create :id => params[:body] which I assume > > isn't what you wanted. > > Well- i'd started to follow a tutorial, but didn't

[Rails] Re: :body is not being stored in the database

2010-05-22 Thread RubyonRails_newbie
> You've writtten comments.create :id => params[:body] which I assume > isn't what you wanted. Well- i'd started to follow a tutorial, but didn't quite understand it. ANy idea what id should be to allow it to save? I've tried many combinations of the id, :user_id, body etc and when I change it, t

[Rails] Re: :body is not being stored in the database

2010-05-22 Thread Frederick Cheung
On May 22, 10:07 am, RubyonRails_newbie wrote: > > the values in the database are: > id > body > blogpost_id > user_id > > 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) You've writtten commen