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
how many types of callbacks available in ror?
Explain model in rails?
Tell me what is polymorphic association in ruby on rails?
How many types of variables are available in ruby class?
How you run your Rails Application without creating database ?
The string can be represented in single as well as double quotes. What is the difference between the two?
What is the rail console?
what is Polymorphic Association in Ruby on Rails?
what is the use of super function in ruby on rails?
What is the architecture of Model views and controllers
How can you protect filter methods in rails?
How to use two databases into a single application?
what is the difference between redirect and render in Ruby on Rails?
Who developed ruby on rails?
Tell me what is orm (object-relationship-model) in rails?