Sorry if this sounds primitive but if there was a problem with your
migration your form_for would throw an error about missing the name
field, so I suspect something is cached or the server needs a restart

I would guess that you either need to restart your mongrel server, or
whichever server you have running the application, and you ran rake
db:migrate right? What server are your running under?

Otherwise I wouldtry
script/console

and then just type
> Comment
<enter>
or
> Comment.new
<enter>
see if the name attribute is there.

Also I would try adding some other text to your erb files to make sure
they are updating...?





On Jul 30, 12:15 pm, J46 S46 <[email protected]> wrote:
> Marnen Laibow-Koser wrote:
> > J46 S46 wrote:
> > [...]
> >> anyway, i added a new colum to my comments table by entering "ruby
> >> script/generate migration add_name_to_comment name:string"
>
> >> and when i look in my migrations file, it seems to have worked:
> >> class AddNameToComment < ActiveRecord::Migration
> >>   def self.up
> >>     add_column :comments, :name, :string
> >>   end
>
> >>   def self.down
> >>     remove_column :comments, :name
> >>   end
> >> end
>
> > Yes, you've got the correct code in your migration file.  Now...did you
> > remember to run the migration?
>
> > Best,
> > --
> > Marnen Laibow-Koser
> >http://www.marnen.org
> > [email protected]
>
> Yeah, i did. sorry, forgot to mention that...
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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