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

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Advantages of Rails Framework

688

Published on

Rails advantages and techniques

Rails advantages and techniques

Published in: Technology
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

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

×