[Rails] Re: Renaming a model and table leads to SQL Exception

2009-11-10 Thread saravanan bava
Because the error is in ur mediums controller "ActiveRecord::StatementInvalid in MediumsController#index" On Tue, Nov 10, 2009 at 5:15 PM, saravanan bava wrote: > Hi > Have u changed the model name in ur controller query. which is in index > method. Please check first. > > > On Tue, Nov 10, 2009

[Rails] Re: Renaming a model and table leads to SQL Exception

2009-11-10 Thread Lady Hawk
Frederick Cheung wrote: > On Nov 10, 3:31�am, Lady Hawk > wrote: >> I have a model called "Media", database table "Medias". I had to rename >> that model to "Medium" and the database table to "Mediums". >> and now when I run my application , I get the following error: >> >> ActiveRecord::Statemen

[Rails] Re: Renaming a model and table leads to SQL Exception

2009-11-10 Thread saravanan bava
Hi Have u changed the model name in ur controller query. which is in index method. Please check first. On Tue, Nov 10, 2009 at 4:59 PM, Lady Hawk wrote: > > Dhruva Sagar wrote: > > I think you missed to reset your database using rake db:reset after > > having > > changed the model name & the cor

[Rails] Re: Renaming a model and table leads to SQL Exception

2009-11-10 Thread Lady Hawk
Dhruva Sagar wrote: > I think you missed to reset your database using rake db:reset after > having > changed the model name & the corresponding migrations. > > Thanks & Regards, > Dhruva Sagar. > > > > > On Tue, Nov 10, 2009 at 9:01 AM, Lady Hawk > http://www.ruby-forum.com/. --~--~---

[Rails] Re: Renaming a model and table leads to SQL Exception

2009-11-09 Thread Frederick Cheung
On Nov 10, 3:31 am, Lady Hawk wrote: > I have a model called "Media", database table "Medias". I had to rename > that model to "Medium" and the database table to "Mediums". > and now when I run my application , I get the following error: > > ActiveRecord::StatementInvalid in MediumsController#i

[Rails] Re: Renaming a model and table leads to SQL Exception

2009-11-09 Thread Marnen Laibow-Koser
Dhruva Sagar wrote: > I think you missed to reset your database using rake db:reset after > having > changed the model name & the corresponding migrations. > > Thanks & Regards, > Dhruva Sagar. > Try restarting the app first. > > > > On Tue, Nov 10, 2009 at 9:01 AM, Lady Hawk > http://www.

[Rails] Re: Renaming a model and table leads to SQL Exception

2009-11-09 Thread Dhruva Sagar
I think you missed to reset your database using rake db:reset after having changed the model name & the corresponding migrations. Thanks & Regards, Dhruva Sagar. On Tue, Nov 10, 2009 at 9:01 AM, Lady Hawk wrote: > > I have a model called "Media", database table "Medias". I had to rename > th