Here’s a quick tip if you are using the Rails console to create/debug a project. If you make a change to one of your models, make sure you restart the console. I must have spent 30 minutes banging my head against the table trying to figure out why my model wasn’t working. Finally as a last resort, I restarted the console and bingo.
Rails Script/Console Tip
March 28th, 2007 · 2 Comments
Tags: Ruby on Rails, Uncategorized
2 responses so far ↓
1 Francesc // Apr 12, 2007 at 11:54 am
Or simply use `reload!` on the console to reload all the models.
2 Josh Kenzer // Apr 12, 2007 at 1:32 pm
Thanks for the tip. Much easier!
Leave a Comment