Rails Script/Console Tip

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.

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.
  • http://intraducibles.net Francesc

    Or simply use `reload!` on the console to reload all the models. ;)

  • http://www.radicalbehavior.com Josh Kenzer

    Thanks for the tip. Much easier!

  • http://www.wholesalediy.com/ Wholesale Electronics

    China Cheap Electronics Wholesale and Dropship: Cell Phones (http://www.wholesalediy.com/mobile-phone-c-6.html), MP4 Players, Car DVD Players, Gadgets, Spy Cameras, Computer Patrs, and more…

blog comments powered by Disqus