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

Tell me what is coc in rails?

594


How to serialize data with yaml?

511


explain request/response cycle?

520


What is ruby on rails & why it is used for?

424


Explain Get and post method?

516






How is calling super() different from the super call?

508


What is the purpose of load, auto_load, and require_relative in ruby ?

455


Is ruby on rails popular?

501


how you define Instance Variable, Global Variable and Class Variable in Ruby?

489


What are the functions performed by rails migration?

465


How can the filter methods in ruby on rails be protected?

446


Explain me what are the limits of ruby on rails?

452


what is Ruby on Rails?

565


What are the various components of rail?

557


Can you explain me how rails implements ajax?

444