On Mon, May 23, 2011 at 10:50 AM, Colin Law <[email protected]> wrote:

> On 23 May 2011 15:37, john shelfer <[email protected]> wrote:
> >   No.I followed yet it from Agile web development with Rails (Pdf).Does
> > everything seems right with coding part?
>
> It looks ok.  Can you post your models/post.rb file,


       model/post.rb file looks like:
      class Post < ActiveRecord::Base
       end

the error message
> you are getting, the stack trace, and the relevant section of code
> where the error is generated



> (I know you have posted this previously
> but copy it and paste it again just so we have everything together).
> Tell us which line in the source is the one referred to in the error.
>
     In /app/view/try.htm..erb file generate error at line number 8
      which is
      <%= f.text_field :name %>

> Copy from your actual files so we make sure there are no typos.  If
> while doing this you realise that the error is not actually the same
> one you were getting previously then try to work it out before
> posting.
>
> Also check that the database does now actually contain the posts table
> with the correct columns.
>
    Posts table exist in database but there is no column for name,title
    and content even after "rake db:migrate",it couldn't generate.

      John

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

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