0
Introduction to Web Development Using Rails
Chhorn Chamnap
4 August 2012
Who Am I?
● Software Engineer from Yoolk Inc.
● The author of the gem 'active_record_uuid'
● Blog: http://chamnap.github.c...
What is Rails?
+ =
Websites on Rails
Companies using Rails
Version History
The Framework
● Convention over Configuration (CoC)
● Don't Repeat Yourself (DRY)
● Model View Controller (MVC)
The Framework (MVC)
ActiveRecord
● Object Relational Mapping (ORM)
● Class to Table, Object to Row
● CRUD simple
● Database Agnostic
ActiveRecord::Base
Validation
has_one
has_many
belongs_to
has_many :through
Associations
Fat Models
ActionController
● Separation of business logic and presentation
● Ideally there should be no logic in the view
ActionController
ActionView
action.mimetype.renderer
● show.html.erb
● index.rss.builder
● edit.iphone.haml
Live Demo
Questions?
Introductiontorails 120804023905-phpapp02
Introductiontorails 120804023905-phpapp02
Introductiontorails 120804023905-phpapp02
Upcoming SlideShare
Loading in...5
×

Introductiontorails 120804023905-phpapp02

82

Published on

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

No Downloads
Views
Total Views
82
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Introductiontorails 120804023905-phpapp02"

  1. 1. Introduction to Web Development Using Rails Chhorn Chamnap 4 August 2012
  2. 2. Who Am I? ● Software Engineer from Yoolk Inc. ● The author of the gem 'active_record_uuid' ● Blog: http://chamnap.github.com/ ● Twitter: @chamnap ● Email: chamnapchhorn@gmail.com
  3. 3. What is Rails?
  4. 4. + =
  5. 5. Websites on Rails
  6. 6. Companies using Rails
  7. 7. Version History
  8. 8. The Framework ● Convention over Configuration (CoC) ● Don't Repeat Yourself (DRY) ● Model View Controller (MVC)
  9. 9. The Framework (MVC)
  10. 10. ActiveRecord ● Object Relational Mapping (ORM) ● Class to Table, Object to Row ● CRUD simple ● Database Agnostic
  11. 11. ActiveRecord::Base
  12. 12. Validation
  13. 13. has_one
  14. 14. has_many
  15. 15. belongs_to
  16. 16. has_many :through
  17. 17. Associations
  18. 18. Fat Models
  19. 19. ActionController ● Separation of business logic and presentation ● Ideally there should be no logic in the view
  20. 20. ActionController
  21. 21. ActionView
  22. 22. action.mimetype.renderer ● show.html.erb ● index.rss.builder ● edit.iphone.haml
  23. 23. Live Demo
  24. 24. Questions?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×