...we need to focus on humans, on how humans care about doing programming or operating the application of the machines. We are the masters. [Machines] are the slaves.
Yukihiro "Matz" Matsumoto, creator of Ruby
gem install rails --no-ri --no-rdoc
rails new .
rails-haml
gem to our Gemfile and install it:bundle install
rails g scaffold User name:string email:string
rails g scaffold Submission user:references body:text
rake db:migrate
User
reference to a dropdown list in the Submission
form.User#index
and User#show
to display User.name
instead of just User
.:development
group.rails g mailer SubmissionMailer
SubmissionController#create
.sqlite3
gem to :development
group and add pg
(postgres) gem to the :production
group.Gemfile.lock
file:bundle install
heroku apps:create tech-talks-feedback
:production
group ActionMailer defaults:heroku addons:add sendgrid:starter
git push heroku master
heroku run bundle exec rake db:migrate
The source files for this project are available at github.com/chrislambe/tech-talk-rails. This presentation can be found at chrislambe.github.io/tech-talk-rails.
This presentation was assembled with the magic of impress.js. Nerd.
If you'd like you can send me any feedback via the app we just built! For the record it can be found at tech-talks-feedback.herokuapp.com
RailsCasts: railscasts.com
Rails Guides: guides.rubyonrails.org
Rails API: api.rubyonrails.org
Eloquent Ruby: amazon.com/Eloquent-Ruby-Addison-Wesley-Professional/dp/0321584104