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

Introduction to rails

on

  • 511 views

 

Statistics

Views

Total Views
511
Views on SlideShare
508
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 Introduction to rails Presentation Transcript

  • 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.com/● Twitter: @chamnap● Email: chamnapchhorn@gmail.com
  • What is Rails?
  • + =
  • Websites on Rails
  • Companies using Rails
  • Version History
  • The Framework● Convention over Configuration (CoC)● Dont 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?