DEVELOPMENT WITH RUBY ON RAILS

2y ago
27 Views
2 Downloads
1.32 MB
6 Pages
Last View : 19d ago
Last Download : 3m ago
Upload by : Wade Mabry
Transcription

DEVELOPMENT WITHRUBY ON RAILSColin WilliamsEliezer Mar ManarangMitchell CraigTam NguyenPRESENTATION OVERVIEW What is Ruby on Rails? History Philosophy Technical Information Competition TutorialBecker LuuRUBY ON RAILS - WHAT ISIT? Ruby on Rails (or just Rails) is an open source web applicationframework. Written in the Ruby programming language. Designed to make programming web applications easier.HISTORY Created in 2003 by David Heinemeier Hansson. Developed while he was working on a Ruby-based project for37signals. Extracted from some his work on Basecamp, a project managementtool. Abstracts the commonly used and repetitive tasks.MORE HISTORY. First publicly released in July 2004 as an open source project. Reached a milestone in 2006:Apple announced that Rails would be bundled with Mac OS X v10.5Leopard.FOUNDINGBELIEFS ANDPHILOSOPHIESCOCDRYREST

CONVENTION OVERCONFIGURATION Developer only needs to specify unconventional aspects of theapplication. Makes assumptions about what you want to, and how to do it; so youdon't have to!DON'T REPEAT YOURSELF No? Less clarity, more inconsistencies.Is the code DRY enough? Reuse code as much as possible. Easier to make changes later on in development. Makes for an "opinionated" framework. Just a convention!REPRESENTATIONAL STATETRANSFER Specifies a pattern that webapplications should follow indevelopment. Organizing your applicationaround resources and standard Follow the basic CRUDoperations (create, read, update,delete) Example:resources :photosHTTP verbs. Identify resources,manipulation of resources, self-DELETE /photos/17TECHNICALINFORMATION:Rails - a full-stack webapplication developmentframeworkdescriptive messages.TECHNICAL INFORMATION:INTRODUCTIONPhilosophiesTECHNICAL INFORMATION:INTRODUCTION - DIRECTORY STRUCTURESome of the directories are: app configDefault configuration db lib logEase of use test

TECHNICAL INFORMATION:TECHNICAL INFORMATION:ARCHITECTURE - MVCARCHITECTURE Model - encapsulates the data, data access methods, business logicmethods View - view templates rendered to be show.MVC Controller - requests/responds with the user browser,communications with Model and View te/transmitTECHNICAL INFORMATION: ARCHITECTURE - MVCTECHNICAL INFORMATION: RAILS COMPONENT - MVC! ! !ActionControllerActionView ActiveRecordTECHNICAL INFORMATION:MODEL - ACTIVERECORDTECHNICAL INFORMATION:MODEL - ionRelationalDatabaseORMModels DataData AccessorBusiness LogicMethods

TECHNICAL INFORMATION:TECHNICAL INFORMATION:MODEL - ACTIVERECORD Encapsulates data via objects ofclasses. Does Object-RelationalMapping to convert relationaldatabase to object-orientedclasses.CONTROLLER - ACTIONCONTROLLER All of these are called Models. Changes in data results inchanges in both database andModel. ActiveRecord::BaseActionController Has Data-access methods Has Business logic methods forprocessingTECHNICAL INFORMATION:TECHNICAL INFORMATION:CONTROLLER - ACTIONCONTROLLER Under ActionPack library 1 Model/1 View 1 ControllerCONTROLLER - ACTIONCONTROLLER1 active entity that user interacts that changes view 1 method inside thecontroller (action method) Action method handles routing. ActionController::BaseRoutingTECHNICAL INFORMATION:TECHNICAL INFORMATION:OTHER LIBRARIES/COMPONENTSVIEW - ACTIONVIEW Under ActionPack library ActionDispatch Templates for different user views ActionMailer Mostly made of HTML and .erb (embedded ruby) files ActiveModelDoesn't contain business logic methods ActiveResource ActiveSupport Railities more classes could be seen at Rails' API webpage:http://api.rubyonrails.org

COMPETITORS: PHP ANDJAVA More flexibilityCOMPETITORS More manual setup Claimed to be more scalableCOMPETITORS: DJANGOAND ZEND Very similar as they are full-stack frameworks.NET MVC Released in 2009 Based on C# Zend based off of PHPoIt inherits the flexibility Follows MVC design pattern Found to lack community supportoLikely due to its relatively young age Django based off of PythonTUTORIAL TIME :)

REFERENCES:- M. Fowler. “P of EAA: Active Record.”- Ruby on Rails team. “Ruby on RailsDocumentation.” Internet: http://api.rubyonrails.org/ [Apr. 9, 2012]- Ruby on Rails team. “Ruby on RailsGuides: Getting Started with Rails.”Internet: http://guides.rubyonrails.org/getting started.html [Apr. 9, 2012]- T. Fisher. Ruby on Rails(r) Bible.Indianapolis, IN: Wiley Publishing Inc.,2008, pp.67 - 74, 107-109, 147-149,173-179- T. Reenskaug. “Trygve/MVC.”Internet: http://heim.ifi.uio.no/ trygver/themes/mvc/mvc-index.html,[Feb. 26, 2012]Internet: d.html [Apr. 9, 2012]- Ruby Programming Language team.“Ruby Programming Language.”Internet: http://www.ruby-lang.org/en/, [Feb. 26, 2012]- Ruby on Rails team. “Ruby on Rails.”Internet: http://rubyonrails.org/, [Feb26, 2012]- R.T. Fielding. “Architectural Styles andthe Design of Network-based SoftwareArchitectures.” Internet: http://www.ics.uci.edu/ fielding/pubs/dissertation/top.htm, [Feb. 26, 2012]

RUBY ON RAILS - WHAT IS IT? Ruby on Rails (or just Rails) is an open source web application framework. Written in the Ruby programming language. Designed to make programming web applications easier. Abstracts the commonly used and repetitive tasks. HISTORY Created in 2003 by David Heinemeier Hansson. Developed while he was .

Related Documents:

Note from the Publisher The Ruby on Rails 3 Tutorial and Reference Collectionconsists of two bestselling Rails eBooks: Ruby on Rails 3 Tutorial:Learn Rails by Example by Michael Hartl The Rails 3 Wayby Obie Fernandez Ruby on Rails 3 Tutorial:Learn Rails by Exampleis a hands-on guide to the Rails 3 envi- ronment.Through detailed instruction,you develop your own complete sample

Contributing to Ruby on Rails Rails is not 'somebody else's framework.' This guide covers a variety of ways that you can get involved in the ongoing development of Rails. API Documentation Guidelines This guide documents the Ruby on Rails API documentation guidelines. Ruby on Rails Guides Guidelines This guide documents the Ruby on Rails guides .

We are installing Ruby On Rails on Linux using rbenv. It is a lightweight Ruby Version Management Tool. The rbenv provides an easy installation procedure to manage various versions of Ruby, and a solid environment for developing Ruby on Rails applications. Follow the steps given below to install Ruby on Rails using rbenv tool.

Ruby On Rails James Reynolds. Today Ruby on Rails introduction Run Enviornments MVC A little Ruby Exercises. Installation Mac OS X 10.5 will include Rails Mac OS X 10.4 includes Ruby . What happens if JavaScript is off? No JavaScript That is unacceptable! No JavaScript Change example_controller.rb

HP PHP PHP PHP PHP PHP HiPE Erlang HiPE Erlang HiPE . Perl Perl Perl Perl Perl Perl Ruby Ruby Ruby Ruby Ruby Python 3 Python 3 Python 3 Lua Lua Lua Lua Lua Lua Ruby Matz's Ruby Matz's Ruby benchmarks game 01 Mar 2019 u64q p r o . Python configures and steers fast C/C /Fortran code Passes memory buffers from one library to the next

WEEK 2 – Introduction to Ruby 2.0 Getting to Know Ruby 2.0.a Ruby Basics History o Invented by Yukihiro Matsumoto o Popularized by Ruby on Rails framework Dynamic, OO, Elegant, expressive, and declarative Designed to make programmers happy So like this is going to be iterating over something three times: o 3.times Ruby basics

A Beginner's Guide to Security with Ruby on Rails in BSD Corey Benninger. What's on Tap? Ruby on Rails BSD Security. . Openbsd 3.9 – Install Ruby (pkg_add ruby-1.8.4p1.tgz) . for more install details. Getting the Goods

I believe my brother’s sons have weak interpersonal communication skills, and I’m convinced this is partly due to their lifelong infatuation with the personal computer. They have few skills at reading or expressing empathy. If they were more skilled, they might have been able to assess their father’s reduced self-esteem, personal control and belongingness, and then do something about it .