Ruby and Rails

Installing Rails

Install Ruby on Rails on OS X using rvm
Install Ruby on Rails on OS X using rbenv (preferred method)
Install on Ubuntu

Starting with Rails

Here are some Ruby on Rails resources that I’ve encountered and have greatly helped me in my journey to learn and understand Rails.



Rails Conventions

Anomalies I have encountered

RMagick spitting out errors
Rmagick was aborting with “Reason: image not found” even though it seemed as though it was installed properly.

Factory Girl

$ rails c
[1] pry(main)> require 'factory_girl'
=> true
[2] pry(main)> FactoryGirl.find_definitions
[3] pry(main)> FactoryGirl.create :my_thing

Active Record

Bulk updates in Active Record

ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)

Opinions about People, Process and Technology

Optimization WordPress Plugins & Solutions by W3 EDGE