28 Mar '12, 7am

わかった、create_associationメソッドは3.1.0から先では\(^o^)/しちゃってるんだ。なーんだ。 / “create_association (ActiveRecord::Reflection::Associat…”

Method deprecated or moved This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here. create_association (*options) public Creates a new instance of the associated class, and immediately saves it with ActiveRecord::Base#save. options will be passed to the class’s creation method. Returns the newly created object. Show source # File activerecord/lib/active_record/reflection.rb, line 179 def create_association (* options ) klass . create (* options ) end

Full article: http://apidock.com/rails/ActiveRecord/Reflection/Associat...

Tweets

@seoadvicess Most ORM-Tools have considerable w...

weblog.jamisbuck.org 28 Mar '12, 6am

ActiveRecord is cool and all, and it goes without saying that we all trust its judgment, but sometimes you just want to wa...