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


Please Help Members By Posting Answers For Below Questions

what is Mixin in Rails?

521


what is the purpose of the resources method in the code snippet below?

468


what is the defined operator?

605


Explain the controller in rails?

468


Explain me what is the purpose of rjs in rails?

475






What are the various changes between the rails version 2 and 3?

447


when self.up and self.down method is used?

487


What is the difference between symbol and string?

506


How you run your Rails Application without creating database ?

456


Difference between gem and plugin?

535


Explain testing in rails.

511


What is the use of super in Ruby Rails?

491


Explain how Rails implements Ajax?

461


Explain dry in rails?

480


explain request/response cycle?

517