On May 22, 12:57 pm, Jatin kumar <[email protected]> wrote:
> You are confusing things a lot.
> Answer this question first:
> Did you scaffold the model or you are adding the files one by one writing
> the code by hand.
 I didnt scaffold.I am adding files one by one.

> 1. If you did scaffold, I don't see a problem coming anywhere.
> 2. If you didn't scaffold, then go for Colin's suggestion and read the
> guides, you will understand how Rails works.
> AND read the guides rightnow, before you get troubled by another problem.
>
> As of the current problem that you are facing, do this:
> 1. Look up the database table for posts, and see if you have a column named
> 'name' in there. If not, what went wrong.
 In 'posts' table there is no column for name,title and content.
> 2. I am quite sure, 1st would fail. Now, look up your post.rb model file and
> see if there is
> attr_accessible : name
> in your model file.
      It is not there,but after adding it there ,error didnt resolve.

John

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