Rails Basics
These are just some notes on doing everything in rails by hand.
Controllers – name file plural_controller.rb
class PluralController < ApplicationController end
Models - name file singular.rb
class Singular < ActiveRecord::Base end
Migrations - name file date_create_plural.rb
class CreatePlural < ActiveRecord::Migration def change create_table :plural do |t| t.string :name t.timestamps end end end
Mailers - name file app/mailers/singular_mailer.rb
class ApplicantMailer < ActionMailer::Base end