Colin Law wrote in post #1040834:
On 14 January 2012 04:12, Fritz Rodriguez li...@ruby-forum.com wrote:
class NameAlias ActiveRecord::Base
belongs_to :work_order
has_many :sub_tasks
end
class SubTask ActiveRecord::Base
belongs_to :name_alias
belongs_to :work_order
This should
Colin Law wrote in post #1040893:
On 14 January 2012 16:59, Fritz Rodriguez li...@ruby-forum.com wrote:
belongs_to :work_order
of the is post.
accepts_nested_attributes_for :name_alias
accepts_nested_attributes_for :work_order
This produced a Unknown key: through error? Not sure I place
Okay, thanks! Here is the full trace with code section, appreciate any
insight!
Attachments:
http://www.ruby-forum.com/attachment/6913/full_trace.txt
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
Thanks for your help Colin, resolved the issued by changing my model
associations
class NameAlias ActiveRecord::Base
has_many :sub_tasks
has_many :work_orders, :through = :sub_tasks
class SubTask ActiveRecord::Base
belongs_to :name_alias
belongs_to :work_order
class WorkOrder
Hello All
This is my first time on ruby-forum so pardon if this is not posted
correctly.
I am having a very similar issue regarding has_many through has_many. A
logged user can create a work order and associated fields in models name
alias and sub_tasks. I am using active_admin and an admin
5 matches
Mail list logo