Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Arthur Klepchukov's latest activity

Sunday, May 08 2011
6513 simple_format behaviour changed when used in Mailer view was updated in Ruby on Rails
  • Arthur Klepchukov
    Arthur Klepchukov commented at 11:31 PM

    Without 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
2044 Patch to add html options to the div that wraps the authenticity_token input ... was updated in Ruby on Rails
Wednesday, December 24 2008
1042 validates_uniqueness_of does not take field length into account was updated in Ruby on Rails
  • Arthur Klepchukov
    • Tag changed from activerecord, bug, limit, migrations, validates_uniqueness_of, validation to activerecord, bug, limit, migrations, patch, validates_uniqueness_of, validation
    by Arthur Klepchukov at 4:50 AM

    Tagged as patch.

  • Arthur Klepchukov
    • Tag changed from activerecord, bug, migrations to activerecord, bug, limit, migrations, validates_uniqueness_of, validation
    by Arthur Klepchukov at 4:47 AM

    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
    Arthur Klepchukov commented at 11:16 AM

    I went ahead and submitted a patch.

  • Arthur Klepchukov
    Arthur Klepchukov commented at 11:00 AM

    I 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
    Arthur Klepchukov commented at 10:23 AM

    Sorry, 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
    Arthur Klepchukov created the ticket at 10:20 AM

    With the following Event model:

    
    class CreateEvents < ActiveRecord::Migration
      def self.up
        create_table :events do |t|
          t.string :title, :limit => 5...