Your SlideShare is downloading. ×
  • Like
Advantages of Rails Framework
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Advantages of Rails Framework

  • 633 views
Published

Rails advantages and techniques

Rails advantages and techniques

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to like this
No Downloads

Views

Total Views
633
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
1
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Rails advantages and techniques
    SATHISH KUMAR MARIAPPAN
  • 2. Ruby on Rails - it does scale
    • Fast, agile development
    •Framework based on Ruby
  • 3. INNOPPL
    Why Ruby On Rails?
  • 4. INNOPPL
    Fast Development
  • 5. INNOPPL
    • CRUD
    • Scaffolding (if you really need to)
    • DRY
    • AJAX
    • acts_as_something
  • 6. INNOPPL
    Maintainable
  • 7. INNOPPL
    • Very readable code
    • Implemented documentation system (RDOC)
    • Tests makes sure you don’t break anything
  • 8. INNOPPL
    Model View Controller
  • 9. INNOPPL
    Model View Controller
    • Interface to the database
    • Business Logic goes here
    • For the DataBaseAdmin
    class User < ActiveRecord::Base
    has_many:tasks
    end
    class Task < ActiveRecord::Base
    belongs _to :user
    end
  • 10. INNOPPL
    Model View Controller
    • Link between DB (model) and User (view)
    • HTTP / Sessions / Cookies / Post / Get
    • For the Developer
    class TaskController < ApplicationController
    def index
    @tasks = User.find(session[:user_id]).tasks
    end
    end
  • 11. INNOPPL
    Model View Controller
    • Web Interface
    • What the client sees
    • For the Designer
    ...
    <body>
    <% @tasks.each do |task| %>
    <div class=’task’>
    <%= task.content %> is <%= task.status %>
    </div>
    <% end %>
    </body>
  • 12. INNOPPL
    Model View Controller
    • Link between DB (model) and User (view)
    • HTTP / Sessions / Cookies / Post / Get
    • For the Developer
    class TaskController < ApplicationController
    def index
    @tasks = User.find(session[:user_id]).tasks
    end
    end
  • 13. INNOPPL
    Test-Driven Development
    • Write tests first
    • 14. FAIL
    • Implement
    • SUCCEED
    • Clean Up
    • Check-In to Version Management
  • 15. INNOPPL
    20.minutes.ago
    polymorphism
    1.gigabyte
    time_ago_in_words
    prototype
    Rails features
    find_by_sql
    has_and_belongs_to_many
    <%= debug object %>
    cache
    group_by
    link_to_remote
    routes
    REST
    titleize
    delegate
  • 16. INNOPPL
    CONTACT DETAILS
    Sathish Kumar Mariappan
    Innoppl Technologies
    E-mail : sathishkumar.m@innoppl.com
  • 17. INNOPPL
    Thank You