• Like
Impression of Rails 3
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Impression of Rails 3

  • 755 views
Published

社内勉強会発表資料

社内勉強会発表資料

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
755
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Transcript

  • 1. Rails 3 2011/04/12 Kosuke Matsuda
  • 2. Introduction
  • 3. • Rails 3• Rails• Rails 3•
  • 4. Enviroments
  • 5. • Ruby 1.9.2 ( w/ RVM )• Ruby on Rails 3.0.6• bundler• jpmobile 1.0.0.pre• devise 1.1.8 ( 1.2.0? ) ...
  • 6. Rails 3
  • 7. Rails
  • 8. • RAILS_ENV → Rails.env • Rails.env.development?• RAILS_ROOT → Rails.root • Rails.root.join(‘lib’, ‘customize.rb’)• Rails.logger
  • 9. Rails configuration
  • 10. • Rails::Application.config = {MyApp}::Application.config • MyApp : Rails new my_app•
  • 11. Bundler
  • 12. gembundle--path .bundle/config bundle OK
  • 13. Timezone
  • 14. • RDB (JST)• http://d.hatena.ne.jp/yuum3/20110211/1297434952
  • 15. deploy
  • 16. with capistrano OK
  • 17. Routing
  • 18. • controller• action Symbol
  • 19. Validations
  • 20. • ActiveRecord ActiveModel• Sexy Validation • validation
  • 21. Custom Validaions
  • 22. validator_generator• custom validator• https://github.com/matsuda/validator_generator
  • 23. • ToDo: Test•5 • (ry•
  • 24. validations
  • 25. sample
  • 26. validation_step_fu• validations DRY• https://github.com/matsuda/validations_step_fu
  • 27. jpmobile
  • 28. •• Cookie query string session_id• session store cookie DB(ActiveRecord )
  • 29. Rack Session• Rails 3(2.3?) Session Rack• session stores are lazy loaded.• reset_session session_id• http://togetter.com/li/54844
  • 30. • session_id• https://gist.github.com/782534
  • 31. Devise
  • 32. •• c s • devise ≠ device• • cookie
  • 33. galapagos_mobile• jpmobile (devise Rails cookie• https://github.com/matsuda/galapagos_mobile• •
  • 34. ActionDispatch::ShowExceptions
  • 35. • controller view ActionDispatch::ShowExceptions rescue••
  • 36. • Ruby 1.9 • ex. jpmobile•
  • 37. ActionMailer
  • 38. •• helper
  • 39. • Jpmobile::Mailer::Base •• • Jpmobile
  • 40. • exception_notification • Rack• ssl_requirement • https://github.com/bartt/ssl_requirement• kaminari • Rails
  • 41. • rails-sh • https://github.com/jugyo/rails-sh • Rails• galakei • https://github.com/mobalean/galakei •
  • 42. Conclusion
  • 43. • Rails 3• Rack • Rails2 ActionPack Rack• Rails 3 plugin •
  • 44. • Rails 3
  • 45. any question?