Arthur Klepchukov
Not a member
Arthur Klepchukov's latest activity
Sunday, May 08 2011
-
Arthur Klepchukov commented at 11:31 PMWithout downgrading back to 3.0.4, I'm doing the following in my ActionMailer views to have access to the original simple_format:
ActionView::Base.new.simple_fo...
Wednesday, April 22 2009
Wednesday, December 24 2008
1042
validates_uniqueness_of does not take field length into account
was updated
in Ruby on Rails
-
- Tag changed from activerecord, bug, limit, migrations, validates_uniqueness_of, validation to activerecord, bug, limit, migrations, patch, validates_uniqueness_of, validation
Tagged as patch.
-
- Tag changed from activerecord, bug, migrations to activerecord, bug, limit, migrations, validates_uniqueness_of, validation
This patch makes ActiveRecord's validates_uniqueness_of take :limit into account for :string columns.
Sunday, September 14 2008
1042
validates_uniqueness_of does not take field length into account
was updated
in Ruby on Rails
-
-
Arthur Klepchukov commented at 11:00 AMI realize that this could be taken care of if I set validates_length_of :title, :maximum => 5 in my model. However, I don't like having to repeat that (since I ...
-
Arthur Klepchukov commented at 10:23 AMSorry, the second part got mangled. Here it is again.
I can do something along the lines of:
>> e = Event.create(:title => "abcde") => #<Event id: 1, title: ... -
Arthur Klepchukov created the ticket at 10:20 AMWith the following Event model:
class CreateEvents < ActiveRecord::Migration def self.up create_table :events do |t| t.string :title, :limit => 5...