Archive for the ‘Rails’ Category

Rake list tasks

Sunday, August 3rd, 2008

I can never remember the exact name of a rake task, so I use this all the time: > rake -T You can also filter the list of tasks that's shown. For instance, if you only want to see the database tasks: > rake -T db The -T option is handy when you just ...

Turn off email logging in Rails

Tuesday, May 27th, 2008

Oftentimes, I don't need every single email saved into the log file. When I'm developing, they get in the way. In a production environment, they take up a lot of room make the log harder to read. So, I normally put this in my environment.rb: ActionMailer::Base.logger = nil