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

Why we use migration in rails?

936


Mention the differences between the observers and callbacks in ruby on rails.

905


Explain me what are the limits of ruby on rails?

972


Who developed ruby on rails?

891


What role does garbage collection play?

978


Explain how you can run rails application without creating databases?

870


what is the difference between destroy and delete?

1062


What is the role of mvc architecture in ruby on rails?

895


Am Fresher ..,i dont know seven controller methods.am searching in google .but am not getting .help me

2299


Explain unobtrusive javascript in rails.

926


What is the main difference between procs and blocks?

946


List out the few features of Ruby?

956


Explain me what is the function of orm in ruby on rails?

844


Explain how Rails implements Ajax?

889


Explain me what is the role of rails controller?

905