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.

Oleg's latest activity

Tuesday, May 03 2011
6768 /assets route should not be prefixed was created in Ruby on Rails
  • Oleg
    Oleg created the ticket at 4:46 PM

    Sprokets thing is attached as a last route. So if I have something like this in my routes:

    Rails.application.routes.draw do
      get '/' => :render_page, :as => '...
Thursday, October 14 2010
3820 Make Rails::Generators::Migration#next_migration_number method a class method... was updated in Ruby on Rails
  • Oleg
    Oleg commented at 3:06 PM

    I'm not really familiar with other orms besides AR, but I see what you're saying. It works. Thanks for your help.

Wednesday, October 13 2010
3820 Make Rails::Generators::Migration#next_migration_number method a class method... was updated in Ruby on Rails
  • Oleg
    Oleg commented at 10:28 PM

    I got it running, but with extra require and include it basically became this:

    def self.next_migration_number(dirname)
      orm = Rails.configuration.generators.o...
  • Oleg
    Oleg commented at 9:49 PM

    I guess the root question is what's the proper way to create generator with a migration? This is what I have:

    class GemGenerator < Rails::Generators::Base
      in...
  • Oleg
    Oleg commented at 9:07 PM

    Wait. Why is this resolved?

    /Library/Ruby/Gems/1.8/gems/railties-3.0.0/lib/rails/generators/migration.rb:30:in next_migration_number': NotImplementedError (Not...

Friday, September 10 2010
5405 [Invalid] - update_attribute attempts to write accessor to the database was updated in Ruby on Rails
  • Oleg
    • Title changed from update_attribute attempts to write accessor to the database to [Invalid] - update_attribute attempts to write accessor to the database
    by Oleg at 5:23 PM
  • Oleg
    Oleg commented at 5:22 PM

    Seems this problem existed under RC. Current 3.0 has no problem.

Wednesday, August 18 2010
5405 update_attribute attempts to write accessor to the database was created in Ruby on Rails
  • Oleg
    Oleg created the ticket at 5:47 PM

    Let's say we have a class like this:

    class Foo
      def bar=(value)
        # do something
      end
    
      def bar
        # return something
      end
    end
    

    Everything works great i...

Thursday, April 15 2010
3361 accepts_nested_attributes_for and has_one relations was updated in Ruby on Rails
  • Oleg
    Oleg commented at 4:05 PM

    never mind, I re-froze 2.3.5 and started to work. I must have frozen rails before it became 'really stable'

  • Oleg
    Oleg commented at 4:01 PM

    This is a bit messed up. I'm experiencing the same issue.

    accepts_nested_attributes_for for has_one completely skips validation on the nested element. has_many ...