rails after 5 years
DESCRIPTION
Short presentation given on the cool stuff in Rails 3. Impressions coming from a Developer who used Rails up to 0.12.1 and then came back to Rails 3.TRANSCRIPT
Cool Stuff in Rails 3
Cool Things that have happened in the past 5 years
What’s this about
• 5 years ago used Rails up to version 0.12.1
• Revisiting now with Rails 3
• (http://railstutorial.org)
Heroku
• Deployment used to be really harsh
• Deployment + pain in production killed my rails world
• Heroku is unreal
• gem install heroku
• heroku keys:add
• heroku create
• git push heroku master
• heroku open
nginx + Passenger
• http://nginx.org/
• http://www.modrails.com/
spork
• makes your tests fly - at least run quicker
• uses unix process forking goodness
• doesn’t need to load stuff
• gem install spork + tricks (see rails tutorial).
• http://ruby.railstutorial.org/chapters/static-pages#sec:spork
Demo
rob@gonzo$ time rspec spec.......................................................................................Finished in 2.46 seconds87 examples, 0 failuresreal0m3.092suser0m0.245ssys 0m0.155srob@gonzo$ time rspec specNo DRb server is running. Running in local process instead ..........................................................................................Finished in 2.12 seconds87 examples, 0 failuresreal0m19.755suser0m5.541ssys 0m1.872s
spork
• Some changes require restart (model changes/routes)
Bundler
• http://gembundler.com/
• Gemfile
• bundle install
Autotest
• Run tests continuously
• watches filesystem for changes
• runs tests when file changes
• autotest + growl on mac is cool
Demo
• http://ruby.railstutorial.org/chapters/static-pages#sec:autotest
• https://github.com/svoop/autotest-growl
• This room
• web
• tutorials
• podcasts
• blogs
• mailing lists
Community
• very cool
• understands Ruby
• understands rails
• understands Gems
RubyMine
End