Welcome to the Treehouse Community
Looking to learn something new?
undefined method `name'
I am new too ruby on rails and I am having an issue with the build a simple ruby on rails application. For some reason i'm getting an NoMethodError in Statuses#new. Can somebody please take a look and tell me how to fix this issue.
Thank you, Curtis Allen Curtis Allen
Your form is calling the 'name' method on @status instance variable on line 15 of '_form.html.erb'. Your Status model doesn't have a 'name' attribute. Here's your schema: http://cl.ly/image/1f1C0C1j0A1m
You ran a migration removing the 'name' column from your Status model.
db/migrate/20130531015437_add_user_id_to_status.rb class AddUserIdToStatus < ActiveRecord::Migration def change add_column :statuses, :user_id, :integer add_index :statuses, :user_id **remove_column :statuses, :name** end end