Related Link

Archive for the ‘Ruby on Rails’ Category

Testing and Debugging

Posted in Ruby on Rails

Testing is a number of different types of testing are supported by Rails, including automated and integration testing. The concept of automated testing isn’t new to the world traditional software development, but it’s fairly uncommon in web application development. While most Java-based web applications make use of comprehensive testing facilities,
a large number of PHP and Perl web applications go live after only some manual tests have been performed (and sometimes without any testing at all!). Although performing automated tests may be an option, developers may decide not to use them for reasons ranging from the complexity of the task to time constraints.

The generate command that we introduced a moment ago can automatically create testing templates that you can use with your controllers, views, and models.
(more…)

ActionPack Module

Posted in Ruby on Rails

ActionPack is the name of the library that contains the view and controller parts of the MVC architecture. Unlike the ActiveRecord module, these modules are a little more intuitively named: ActionController and ActionView. Exploring application logic and presentation logic on the command line doesn’t make a whole lot of sense (views and controllers are designed to interact with a web browser).

ActionController (the Controller)
The controller handles the application logic of your program, acting as a glue between the application’s data, the presentation layer, and the web browser. In this role, a controller performs a number of tasks, including: (more…)

Defining Relationships Between Objects

Posted in Ruby on Rails

As well as the basic functionality that we’ve just seen, ActiveRecord makes the process of defining relationships (or associations) between objects as easy as possible. Of course, it’s possible with some database servers to define such relationships entirely within the database schema. However, in order to put ActiveRecord through its paces, let’s look at the way it defines these relationships within Rails.

Object relationships can be defined in a variety of ways; the main difference between these relationships is the number of records that are specified in the relationship.
The primary types of database associations are: (more…)

Model-View-Controller (MVC)

Posted in Ruby on Rails, Web Design

MVC is a pattern for the architecture of a software application. It separates an application into the following three components:
? models, for handling data and business logic
? controllers, for handling the user interface and application logic
? views, for handling graphical user interface objects and presentation logic.
(more…)

Ruby database architecture

Posted in Ruby on Rails, Web Design

Following last article discussing about development, test, and production, lets have a look at database architecture affecting by those three environment in Ruby.


(more…)

Favorite Link