I have two models set up that I need to save inside one form.When the user uses the \"/deliveries/add/\" form, I need it to save a new delivery, and also save a new license that is attached to that de
I have a legacy rails (version 1.2.3) app which runs without issue on a number of servers (not to mention my local environment). Deployed to its newest server, though, and I now get ActiveRecord::Stat
In this example, I create a user with no profile, then later on create a profile for that user. I tried using build with a has_one association but that blew up. The only way I see this working is usin
im trying to do this: class Event < ActiveRecord::Base belongs_to :previous_event has_one :event, :as => :previous_event, :foreign_key => \"previous_event_id\"
I have a model in my Rails app that uses the :class_name attribute for has_one: class Foo < ActiveRecord:Base
Given three models that are each nested in each other. If I create the top-level object and build_* the other child objects, I can retrieve all child objects through the relationships before and after