Impression of Rails 3

1,016 views

Published on

社内勉強会発表資料

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
1,016
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

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
  • Impression of Rails 3

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

    ×