Mini Rails Framework

1,146 views

Published on

Mini rails framework to better understand how Rails Framework Works

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

No Downloads
Views
Total views
1,146
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
7
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Mini Rails Framework

  1. 1. Hello
  2. 2. Introduction
  3. 3. My work
  4. 4. Rails framework Mini Not more then 30 minutes ..promise ;(
  5. 5. Goal?
  6. 6. Rails breakdow n
  7. 7. Rails ActiveRecord ActionPack ActionMailer Railties ActiveSupport ActiveModel ActionController ActionView ActionDispatch
  8. 8. Why Ruby is Programmer Friendly
  9. 9. ActiveRecord ActiveRecord Pattern
  10. 10. Let’s Code ! Text
  11. 11. Controller Front Controller
  12. 12. status header body class MyApp def call(env) [ 200, {‘Content-Type’ => ‘text/plain’}, [“you requested “ + env[‘PATH_INFO’]] ]
  13. 13. Let’s Code!
  14. 14. Routing
  15. 15. View Template View
  16. 16. Let’s Code!
  17. 17. Use the force source
  18. 18. Follow the Baseics
  19. 19. module ActiveRecord class Base include ActiveRecord::Naming include ActiveRecord::Persistence end end
  20. 20. Model logic that requires DB Access ActiveRecord gem edit activerecord Model logic that doesn’t requires DB Access ActiveModel gem edit activemodel Code handling the process & routing of a request ActionDispatch gem edit actionpack Features you get on your controller ActionController gem edit actionpack View and helpers code ActiveView gem edit actionpack Code to glue framework together Rails gem edit railties
  21. 21. https://github.com/ aviandri/mini-rails
  22. 22. Thank You

×