Go to file
jamie 0a79eb7889 Add validates method as shortcut to setup validators for a given set of attributes:
class Person < ActiveRecord::Base
  include MyValidators

  validates :name, :presence => true, :uniqueness => true, :length => { :maximum => 100 }
  validates :email, :presence => true, :email => true
end

[#3058 status:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-07 19:23:59 +01:00
actionmailer Remove duplicated url_for code and move methods shared between ActionMailer and ActionController up to AbstractController. 2010-01-07 15:31:50 +01:00
actionpack Ensure that segments in default_url_options also work with format specified. 2010-01-07 17:17:06 +01:00
activemodel Add validates method as shortcut to setup validators for a given set of attributes: 2010-01-07 19:23:59 +01:00
activerecord Allow to specify default attributes names translation in I18n yml files. 2010-01-07 15:31:50 +01:00
activeresource Autoload AMo test case 2010-01-04 16:29:07 -06:00
activesupport Remove unneeded reliance on super -> method_missing quirk 2010-01-07 00:06:20 -08:00
arel@0faeb50474 Temporarily add submodules to the Rails repo for Arel and Rack::Mount. These submodules will be removed once we add proper Gemfile following to bundler 2009-11-16 12:30:06 -08:00
ci Update CI bundler 2009-12-21 17:27:30 -06:00
doc/template Horo rdoc template 2008-06-22 10:38:25 -07:00
railties Remove stray semicolon from cookie_verification_secret initialzer template 2010-01-07 11:51:54 -05:00
tools Rename tools/profile_requires -> tools/profile since we do both require and ruby-prof profiling. 2009-05-27 01:11:33 -05:00
.gitignore Ignore all pkg files 2009-12-02 11:35:48 -08:00
.gitmodules Remove rack submodule, 1.1 has been released as a gem. 2010-01-04 10:09:10 -06:00
Gemfile Errors messages are now moved from :activerecord.errors to simply :errors on I18n yml files. 2010-01-07 15:31:49 +01:00
pushgems.rb No more svn version numbers to rely on, use timestamps instead 2008-05-11 18:21:47 -05:00
rails.gemspec Break up rails and railties: 2009-12-02 11:35:47 -08:00
Rakefile rake smoke: toplevel task to quickly smoke-test all projects 2009-12-28 12:29:03 -08:00
release.rb Use copy instead of export for release 2008-09-05 14:22:56 +02:00