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.

There was a problem

You must be a member of this account.

Alexander Zubkov's latest activity

Thursday, January 27 2011
6165 Foreign key is not set on nested record was updated in Ruby on Rails
  • Alexander Zubkov
    Alexander Zubkov commented at 11:12 AM

    Yes, you're right. #new does not set foreign key, even on Rails 2.3. So probably cancan behavior has changed, so I had to add that line. Thank you for explanati...

Wednesday, January 26 2011
6165 Foreign key is not set on nested record was updated in Ruby on Rails
  • Alexander Zubkov
    Alexander Zubkov commented at 11:33 AM

    class PhotoAlbum < ActiveRecord::Base
    attr_accessible :name, :description, :visible

    has_many :photos, :dependent => :destroy

    validates_presence_of :name

    scope :...

  • Alexander Zubkov
    Alexander Zubkov commented at 8:26 AM

    Don't you agree it is a bug? Any comments?

Wednesday, December 22 2010
6209 belongs_to returns nil when foreign key column doesnt exists: should at least... was updated in Ruby on Rails
  • Alexander Zubkov
    Alexander Zubkov commented at 9:04 PM

    I believe Rails should not handle any case when a programmer makes an error and warn about it. Handling such cases yields additional code, growing in size and l...

Tuesday, December 14 2010
6165 Foreign key is not set on nested record was created in Ruby on Rails
  • Alexander Zubkov
    Alexander Zubkov created the ticket at 7:52 PM

    I have two nested resources:

    resources :photo_albums do
      resources :photos
    end
    

    These two models are correctly linked with has_many and belongs_to.

    When addin...

Monday, October 25 2010
5633 rails 2.3.8 and InvalidAuthenticityToken was updated in Ruby on Rails
  • Alexander Zubkov
    Alexander Zubkov commented at 12:55 PM

    Yes, I confirm, on 2.3.10 my small test_app and another project with many gems works. Thank you very much!
    Waiting for Alex to close the ticket.

Friday, September 24 2010
5633 rails 2.3.8 and InvalidAuthenticityToken was updated in Ruby on Rails
  • Alexander Zubkov
    Alexander Zubkov commented at 5:05 PM

    BWT the workaround is to comment "protect_from_forgery" in application_controller.rb.

  • Alexander Zubkov
    Alexander Zubkov commented at 4:07 PM

    In my case it's a bit different and easy to reproduce. It works on 2.3.8 and does not on 2.3.9.

    On rails 2.3.9 I do:

    rails test_app
    cd test_app
    ./script/generat...