search for: sysadmin_rol

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

Did you mean: sysadmin_role
2010 Sep 25
3
Factory_girl association with specific values
...this, getting errors like: uninitialized constant SysadminRole for doing things this way: Factory.define :user do |u| u.practice_id { |a| a.association(:practice).id } u.password ''password1'' u.password_confirmation ''password1'' u.role { |a| a.association(:sysadmin_role) } end Factory.define :sysadmin_role do |f| f.name ''sysadmin'' end Thanks, David -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G...