Rails after 5 years

798 views

Published on

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.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
798
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Rails after 5 years

  1. 1. Cool Stuff in Rails 3Cool Things that have happened in the past 5 years
  2. 2. What’s this about• 5 years ago used Rails up to version 0.12.1• Revisiting now with Rails 3• (http://railstutorial.org)
  3. 3. Heroku• Deployment used to be really harsh• Deployment + pain in production killed my rails world• Heroku is unreal
  4. 4. • gem install heroku• heroku keys:add• heroku create• git push heroku master• heroku open
  5. 5. nginx + Passenger• http://nginx.org/• http://www.modrails.com/
  6. 6. 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
  7. 7. Demo
  8. 8. rob@gonzo$ time rspec spec.......................................................................................Finished in 2.46 seconds87 examples, 0 failuresreal 0m3.092suser 0m0.245ssys 0m0.155srob@gonzo$ time rspec specNo DRb server is running. Running in local process instead ..........................................................................................Finished in 2.12 seconds87 examples, 0 failuresreal 0m19.755suser 0m5.541ssys 0m1.872s
  9. 9. spork• Some changes require restart (model changes/ routes)
  10. 10. Bundler• http://gembundler.com/• Gemfile• bundle install
  11. 11. Autotest• Run tests continuously• watches filesystem for changes• runs tests when file changes• autotest + growl on mac is cool
  12. 12. Demo
  13. 13. • http://ruby.railstutorial.org/chapters/static- pages#sec:autotest• https://github.com/svoop/autotest-growl
  14. 14. Community• This room• web • tutorials • podcasts • blogs • mailing lists
  15. 15. RubyMine• very cool• understands Ruby• understands rails• understands Gems
  16. 16. End

×