0% found this document useful (0 votes)
79 views

Sanjay Kaushik Mca, HMR ITM, Delhi 18 October 2012

Ruby on Rails is a web application framework written in Ruby that is designed to maximize programmer happiness. It is flexible, easy to read and write, and available on many platforms. Rails emphasizes convention over configuration and encourages developers to follow the model-view-controller architectural pattern. Popular websites built with Rails include Twitter, Groupon, and Hulu. Rails helps developers build prototypes rapidly and provides tools for test-driven and behavior-driven development.

Uploaded by

Sanjay Kaushik
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views

Sanjay Kaushik Mca, HMR ITM, Delhi 18 October 2012

Ruby on Rails is a web application framework written in Ruby that is designed to maximize programmer happiness. It is flexible, easy to read and write, and available on many platforms. Rails emphasizes convention over configuration and encourages developers to follow the model-view-controller architectural pattern. Popular websites built with Rails include Twitter, Groupon, and Hulu. Rails helps developers build prototypes rapidly and provides tools for test-driven and behavior-driven development.

Uploaded by

Sanjay Kaushik
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 10

Sanjay Kaushik MCA, HMR ITM, Delhi 18 October 2012

a modern programming language available for Windows, Mac OS, Unix/Linux, Java (JRuby),

.NET (IronRuby), and Android (Ruboto) flexible and easy to read and write: def is_lower_48?(address) address.country == "United States" and not ["AK", "HI"].include?(address.state) end designed to maximize programmer happiness

a framework for building web applications in Ruby a set of strong ideological opinions about how web

applications should be structured a particularly good tool for building prototypes rapidly (which doesn't mean it's only good for that) a thriving, productive, fractious community of free software developers a constantly growing and changing software ecosystem with libraries to do almost anything

Lots of web applications you've heard of:

Basecamp, Twitter, Hulu, Groupon, ... Blacklight (projectblacklight.org), a Solr-based discovery interface Umlaut (wiki.code4lib.org/index.php/Umlaut), a link resolver enhancer Library Lab projects developed at the Berkman Center (like the Widener carrel reservation app) The HCL annotated bibliography application I wrote

Web pages, with instructions in them to do things

<cfset today = Now() /> <div id="the_date"> <cfoutput>Today's date is #DateFormat(today, "yyyy-mm-dd")# </cfoutput> </div> It's a lot like writing a regular website, only every so often you tell the server to do something Usually you eventually reach an unmaintainable mess

Partition your program into three basic responsibilities:


o
o o

The model is your representation of data (bibliographic records, search queries, shopping carts, ...) The view is the web pages that you show to the user, and all the behavior they contain The controller directs traffic, receiving requests from the user, deciding what actions to take, and mediating between model and view

Every major web programming platform provides a way for

you to follow this paradigm Rails forces you to from the very beginning

RSpec for test-driven development Cucumber for behavior-driven development


Scenario: Request to create a new collection Given I open the topic at the home page When I follow "create a new collection" Then I should be on the collection creation form

jQuery is now built in (as of Rails 3.1)

Ruby, in and of itself, is a friendly programming language

and a good one for people who are new to programming Rails is a wonderful system for building web applications, if you can program or want to learn programming Ruby on Rails has a steeper learning curve than pagecentered systems like PHP or ColdFusion If you need to build an interactive web thing and don't really like the idea of programming, try Drupal instead

Questions?

You might also like