» tagged pages
» logout

(Feed found, click Add Page to syndicate.) Error finding feed, please try again » Find feed title

A Blog Page allows you to add entries, for news or other time sensitive postings

(Login required to save to your tagged pages.)
(or Cancel)

Make further edits, (or Cancel)

(Login required to save to your tagged pages.)
(or Cancel)

(Editing anonymously: to be credited for your changes, login or register a new account)

Change Page Permissions? Changing these permissions will adjust who can modify this page.

alex (change)
Swik Users (change)
(or Cancel)
Upload an image from your computer:
or Copy an image from a URL:
or Erase the current icon:
Icon Preview:

or Cancel

Erase Rails? The contents of Rails page and all pages directly attached to Rails will be erased.

or Cancel

(Editing anonymously: to be credited for your changes, login or register a new account)

other page actions:
Rails

Rails

Tags Applied to Rails

4 people have tagged this page:

Rails is a very popular Web application framework for Ruby modeled after the MVC pattern.

The Rails framework allows a developer to build database applications in Ruby quickly and easily, while emphasizing MVC design. As such, Rails consists of Model, View and Controller components.

Rails’ MVC

The Rails Model component is a set of classes that use Active Record, an ORM class that maps database tables to objects. Active Record uses naming conventions to determine mappings, thus a specific set of rules must be followed in order for Active Record to easily understand a database.

For View, Rails uses a similar system to JSP/ASP: html files with injections of code. The idea is that HTML files serve as templates, and dynamic elements are inserted at render time.

Finally as a Controller Rails uses ‘Action Pack’, which includes a class called ApplicationController. Rails controller development involves subclassing the ApplicationController class and writing methods that reference actions serviced by the Rails application. For example, an action might be to render a widget id=5, this would correspond to the widget method, widget.rhtml would be the template, and the url would be /widget/5.

Rails can automatically build an MVC application capable of CRUD based on a database set up using Rails’ naming convention using something called ‘scaffolding’, which generates the various classes and rhtml files needed to perform CRUD on an arbitrary table design. Scaffolding is not a replacement for application design, but rather a way to introduce new users to Rails, and to speed application development by putting basic pillars in place quickly for experienced Rails developers.

Ruby on rails also allows developers to easily add pre-written code in the form of a plugin. This may be from a small validation or helper method to a whole login system. The Rails Lodge plugin directory has a detailed list on what is currently available.

Although Rails uses on things like naming conventions and set url schemas, these are all overrideable and merely serve as a default setup. Rails’ URL schema is notable for not relying on GETs in a query string, this is possibly in response to Google, whose search rewards sites that do not use query strings to construct entire pages.

The History of Rails

Rails was developed and released in 2004 by David Heinemeier Hansson, a developer at 37Signals. 37Signals is a web application development and consulting firm, and David had used Rails to help in writing Basecamp, a commercial project management web service offered by the company.

Since its release, Rails has had various major releases, starting with the stable 1.0 release in December of 2005 and a major update in version 1.1 released in March of 2006. Over time, Rails has incorporated Ajax built in functionalities, and many of the subsequent applications 37Signals has built using Rails have showcased this, including the free web service Backpack.

Server integration

Ruby on Rails can run on any web server that supports CGI, or preferrably FastCGI. mod_ruby+Apache is another option, however it is discouraged as unlike mod_php, mod_ruby should not be used with multiple sites running on the same Apache server. This problem is often a source of criticism for the framework, as lacking a safe native module, Rails cannot run as quickly as it might.

Rails also supports a wide variety of database servers, ranging from an embedded SQLite library to Oracle. Most users of Rails choose MySQL or PostgreSQL as a backend database server, Rails’ object relational mapping means that database access is abstracted and a developer can use whichever database they are comfortable with.

dhh

sorted by: recent | see : popular
Content Tagged Rails

Pushr, or the application will deploy itself [Restafari.org]

Pushr is an experiment. An alpha software. It's just one file. Most importantly, Pushr is an application running on the same machine as your Rails application, which deploys new version of the latter with Capistrano, whenever you push into a Github repository, automatically.

git: del.icio.us tag/git

Machines - Blog Archive - rails 2.2 + jruby + jetty = win - Trampoline Systems

Now, with a thread safe rails JRuby might become the platform of choice for deploying rails apps, especially given the performance progress the JRuby team is making. Having real threads does make a huge difference, reducing the memory footprint and making better use of multi core cpus. There’re a couple of possibilites to deploy a rails application in JRuby, glassfish seems to be the recommended choice at the moment. However glassfish is anything but easily embeddable so I tried jetty as an option. Compared to glassfish, jetty is solid and proven (version 7 will be released soon), small and easily embeddable. I didn’t want to use warbler (no web.xml please!), instead I used a combination of JRuby-Rack + Jetty7 and tied everything together with a simple JRuby script.

jetty: del.icio.us/tag/jetty

Codebase - Git repository hosting with source browser, changesets, ticketing & deployment tracking. - aTech Media

codebase brings together source control, issue/ticket management & deployment tracking. If you find yourself managing multiple software projects and need a central place to organise your code

git: del.icio.us tag/git

Odd Thesis

JBoss: del.icio.us tag/jboss

courtenay's acts_like_git at master — GitHub

A Rails plugin that uses git to version ActiveRecord fields, like acts_as_versioned, but a git.

git: del.icio.us tag/git

First Steps into Rails (on the Mac)

Once you have Rails installed, it's time to explore the foundations of how Rails applications are put together. It's not quite programming yet - it's more looking around to figure out how the pieces fit together.

Ruby: O'Reilly Ruby Blog

First Steps in Rails (on Heroku)

If you want to explore Rails, heroku.com offers an easy way to get started, using a web-based interface that neatly hides the complexity of installation and database management.

Ruby: O'Reilly Ruby Blog

Page 1 | Next >>
Username:
Password:
(or Cancel)