Category: rails

0

How to check all the rake tasks that are available for use

The rails rake command comes with a number of tasks. This tiny command shows you a list of all the rake tasks available and a short description. rake –tasks Reference http://stackoverflow.com/questions/10301794/difference-between-rake-dbmigrate-dbreset-and-dbschemaload

0

How to see the sql statements for rails commands

Just type the following command in your rails console to see the sql output of your rails commands ActiveRecord::Base.logger = Logger.new(STDOUT) NOTE: You will probably have to do this for every session. To avoid that, add...

1

Ruby on Rails cheatsheet

Creating a new rails project Using MySQL as the database rails new myapp -d mysql Using postgres as the database rails new myapp -d postgresql Installing Gems To manually install gems that you add,...