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
![Page 1: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/1.jpg)
Cool Stuff in Rails 3
Cool Things that have happened in the past 5 years
![Page 2: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/2.jpg)
What’s this about
• 5 years ago used Rails up to version 0.12.1
• Revisiting now with Rails 3
• (http://railstutorial.org)
![Page 3: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/3.jpg)
Heroku
• Deployment used to be really harsh
• Deployment + pain in production killed my rails world
• Heroku is unreal
![Page 4: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/4.jpg)
• gem install heroku
• heroku keys:add
• heroku create
• git push heroku master
• heroku open
![Page 5: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/5.jpg)
nginx + Passenger
• http://nginx.org/
• http://www.modrails.com/
![Page 6: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/6.jpg)
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
![Page 7: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/7.jpg)
Demo
![Page 8: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/8.jpg)
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
![Page 9: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/9.jpg)
spork
• Some changes require restart (model changes/routes)
![Page 10: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/10.jpg)
Bundler
• http://gembundler.com/
• Gemfile
• bundle install
![Page 11: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/11.jpg)
Autotest
• Run tests continuously
• watches filesystem for changes
• runs tests when file changes
• autotest + growl on mac is cool
![Page 12: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/12.jpg)
Demo
![Page 13: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/13.jpg)
• http://ruby.railstutorial.org/chapters/static-pages#sec:autotest
• https://github.com/svoop/autotest-growl
![Page 14: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/14.jpg)
• This room
• web
• tutorials
• podcasts
• blogs
• mailing lists
Community
![Page 15: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/15.jpg)
• very cool
• understands Ruby
• understands rails
• understands Gems
RubyMine
![Page 16: Rails after 5 years](https://reader033.vdocuments.pub/reader033/viewer/2022060109/5556836fd8b42abc5a8b54ed/html5/thumbnails/16.jpg)
End