What are the differences betweeen Rails 2.x and Rails 3
Answer Posted / dayanthan
(1) Introduction of bundler (New way to manage your gem
dependencies)
* (2) Gemfile and Gemfile.lock (Where all your gem
dependencies lies, instead of environment.rb)
* (3) A new .rb file in config/ folder, named as
application.rb (Which has everything that previously
environment.rb had)
* (4) Change in SQL Structure: Model.where(:activated => true)
* (5) All the mailer script will now be in app/mailers
folder, earlier we kept inside app/models.
* (6) Rails3-UJS support. for links and forms to work as
AJAX, instead of writing complex lines of code, we write
:remote => true
* (7) HTML 5 support.
* (8) Changes in the model based validation syntax:
validates :name, :presence => true
* (9) Ability to install
windows/ruby/jruby/development/production specific gems to
Gemfile.
group :production do
gem 'will_paginate'
end
| Is This Answer Correct ? | 22 Yes | 2 No |
Post New Answer View All Answers
Explain Get and post method?
What is the Install rail package?
what is the purpose of RJs in Rails?
what is testing in rails?
What is the main function of helpers used in ruby on rails?
Explain how Rails implements Ajax?
Tell me what is orm (object-relationship-model) in rails?
Tell us what is the difference between redirect and render in ruby on rails?
what is the log that has to seen to check for an error in ruby rails?
What is the current version of ruby on rails?
What is the purpose of auto_load in ruby?
Who developed ruby on rails?
What I have to do to view my project always on browser?
how you can run Rails application without creating databases?
Where does the start_tabnav gets informations for tabs rendering in ruby rail?