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
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
> 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
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
4 matches
Mail list logo