Introduction to rails
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Introduction to rails

on

  • 536 views

 

Statistics

Views

Total Views
536
Views on SlideShare
533
Embed Views
3

Actions

Likes
0
Downloads
5
Comments
0

1 Embed 3

http://www.linkedin.com 3

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Introduction to rails Presentation Transcript

  • 1. Introduction to Web Development Using Rails Chhorn Chamnap 4 August 2012
  • 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. What is Rails?
  • 4. + =
  • 5. Websites on Rails
  • 6. Companies using Rails
  • 7. Version History
  • 8. The Framework● Convention over Configuration (CoC)● Dont Repeat Yourself (DRY)● Model View Controller (MVC)
  • 9. The Framework (MVC)
  • 10. ActiveRecord● Object Relational Mapping (ORM)● Class to Table, Object to Row● CRUD simple● Database Agnostic
  • 11. ActiveRecord::Base
  • 12. Validation
  • 13. has_one
  • 14. has_many
  • 15. belongs_to
  • 16. has_many :through
  • 17. Associations
  • 18. Fat Models
  • 19. ActionController● Separation of business logic and presentation● Ideally there should be no logic in the view
  • 20. ActionController
  • 21. ActionView
  • 22. action.mimetype.renderer ● show.html.erb ● index.rss.builder ● edit.iphone.haml
  • 23. Live Demo
  • 24. Questions?