search for: piegza

Displaying 1 result from an estimated 1 matches for "piegza".

Did you mean: piegsa
2013 Jul 19
12
Rails 4 "belongs_to: record" association doesn't work
...; A.create! (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "bs" DEFAULT VALUES (2.4ms) commit transaction => #<A id: nil, b_id: 1> A.count # => 0 B.count # => 1 It used to work in Rails 3. I''ve created a test repo for this: https://github.com/davidpiegza/rails4-belongs-to-test. Any ideas why it doesn''t work in Rails 4? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsu...