> 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, the null value shifts to the user_id, or the blogpost_id.

I'm probably missing something really simple, but i was looking at
this all last night! :-)

On 22 May, 10:16, Frederick Cheung <[email protected]> wrote:
> On May 22, 10:07 am, RubyonRails_newbie <[email protected]>
> 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 comments.create :id => params[:body] which I assume
> isn't what you wanted.
>
> Fred
>
> --
> 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 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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