Rails Webapp Engineering

The day after I came back from Australia, I started my new job at Coupa Software. I'm absolutely loving it at the moment because of the awesome people and the amount of software I'm learning. Here's just a few that I've picked up in my first week that I'd like to jot down.

Skinny Controllers, Fat Models

Here's one article about it. It really really helps out with testing.

Association

composed_of

Getting All Tables

ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
connection = ActiveRecord::Base.connection

options[:tables] ||= connection.tables.reject { |t| %w(schema_info
sessions).include?(t) }