Awesome: Working with the Rails console and all the tricks

Testing your active record methods using script/consoleIf you are using windows, you start the console by using this command:ruby script\consoleLinux:./script/consoleJust use the following command whenever you make changes to your model objects:reload!Instead of accessing your MySQL database withmysql -u -pYou can instead doscript/dbconsoleand if you database has a password, just doscript/dbconsole -p% script/dbconsole # connect … Continue reading Awesome: Working with the Rails console and all the tricks