Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the differences betweeen Rails 2.x and Rails 3

Answer Posted / padmavathy

The main differnce is code simplicity... In rails2 we should write the routes using map and each... In rails3 we dont need to write map and all.
For example:
Rails 2:
map.resoucers :users do |user|
user.resource :profile
end

Rails 3:
resources :users do
resource :profile
end
Like wise in active record also have some differences in rails 2 using find(:all) instead in rails 3 we use where etc..

Then terminal you have to write script for cmd instead rails 3 using rails cmd...
Rails 2:
<%=link_to_remote "login", post, :method=>:delete%>

Rails 3:
<%=link_to "login",new_post_path%>
i have noticed some points only have some more differences... Refer it... Those are all main things...

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain rest in rails routes.

835


What is the latest version of ruby on rails?

854


what is rails caching?

860


How to find second max element from database ?

842


How to serialize data with yaml?

847


What is the purpose of require_relative in ruby?

823


What do you mean by render and redirect_to?

831


How to use two databases into a single application?

846


What is the directory structure of rails?

833


Write the command to update rvm in rails.

768


What role do sub-directory app/helpers and app/controllers play?

791


what is Cross-Site Request Forgery (CSRF) and how Rails is protected against it?

910


Explain bundler in rails.

798


How does router work in rails?

845


What is the difference between save and save?

955