Posts

Showing posts with the label RoR

Running ruby on rails 3 in heroku

Image
heroku is a hosting site that Offers a solution to deploy and host rails applications with git.The latest ROR 3 is also supported by heroku.it provide free as well as paid options. we have been running our rails apps in our localhost (http://localhost:3000).but every one needs to implement online that is in real time integration with a domain name.heroku provides a great help to deploy our rails application online. Create a account in heroku . I will teach how to integrate your rails app to heroku step by step

Ruby on Rails(RoR) 3 basics

Ruby on Rails is a framework  build for the Ruby programming language,So it is mandatory that we should know about the language before we develop any web application from scratch. What is Ruby? It is a open source programming language Object oriented programming language It is dynamic,imperative,reflective.

Ruby on Rails(RoR) 3 Syntax

ROR scripting block <% .....   %> Where as the PHP scripting block <?  .....   ?> comments Line comments run from a bare '#' character to the end of the line # block comments =begin [Multi line comment] =end

Ruby on Rails(RoR) 3 Variables

Variable of Ruby on Rails is as follows local variables constants   instance variable (object variables) . class variables global variables

SQL equivalence of Ruby on Rails Model syntax

In Ruby on Rails, Model classes are handled through the Active Record. This means that for each table in database, there exists a corresponding class in the application. This class then has all functions needed to create, find, update, and delete rows in the database table. Usually, all the programmer needs to do is to subclass the ActiveRecord::Base class, and the program will automatically figure out which RDBMS table to use and what columns the table has.

Ruby on Rails(RoR) 3 concept

Image
Introduction it is a opensource web application framework for the Ruby programming language Helps to create powerful web application with less time and less code A better alternative to PHP

Basic principles of Ruby on Rails (RoR 3)

The basic principles of the emerging framework  Ruby on Rails (RoR) are Conventions over Configuration DRY: Don’t Repeat Yourself REST interface

RoR-understanding Representational state transfer(REST)

What is REST? REST stands for  Re presentational  S tate  T ransfer It relies the HTTP protocol World Wide Web itself, based on HTTP, can be viewed as a RESTful architecture. REST uses HTTP for all four CRUD (Create/Read/Update/Delete) operations. REST is  alternative to Web Services (SOAP, WSDL, etc.). REST is not a "standard".

RoR 3 components

The components of rails are as follows Action Pack Action Controller Action Dispatch Action View Action Mailer Active Model Active Record Active Resource Active Support Railties

RoR-Understanding Model-view-controller

Image
ROR (Ruby on Rails) uses the Model-View-Controller( MVC) Architecture.So as a beginner one should understand   MVC before getting into Ruby on Rails. Before understanding MVC lets differentiate between traditional application and MVC application