--
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails_admin+unsubscribe@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
Hi Alexandros,Did you check the association in a console (rails c)? populating your database before (of course), review your inflections to prevent some problem with the inflect.irregular('company', 'companies'), try adding the foreign_key param to the model also to be 100% sure.Regards.
2017-03-03 5:17 GMT-04:00 <alexan...@gmail.com>:
Hi everyone,When I try to edit or create a user, through rails admin, the template doesn't render and I get an error "undefined method `company' for #<User:0x00000006b4f1f8>". You can find my user model, my company model and the trace from rails console here https://gist.github.com/alexdor/98a01a1265b38242884e8b45c6e18c81 . Am I doing something wrong or is this a bug? I have the same association between user and project model and they work fine.Thank you in advanced,Alexandros
--
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails_admin...@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
--Ing. Eduardo MorenoLinux Counter #439942
--
You received this message because you are subscribed to a topic in the Google Groups "rails_admin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rails_admin/d0d7omDx3w4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rails_admin...@googlegroups.com.
Hi Eduardo,First of all thanks for your help. The association seems to be ok through the rails c and through my controllers as well. I can't find anything wrong with my inflections (I don't have any custom ones and I tried adding inflect.irregular('company', 'companies') to the initializers/inflections.rb). Foreign key didn't fix the problem as well.I forgot to mention that I'm using rails 4.2.8 with mongoid 5.2.0.
Στις Παρ, 3 Μαρ 2017 στις 2:12 μ.μ., ο/η Eduardo Moreno <ejm...@gmail.com> έγραψε:
Hi Alexandros,Did you check the association in a console (rails c)? populating your database before (of course), review your inflections to prevent some problem with the inflect.irregular('company', 'companies'), try adding the foreign_key param to the model also to be 100% sure.Regards.
2017-03-03 5:17 GMT-04:00 <alexan...@gmail.com>:
Hi everyone,When I try to edit or create a user, through rails admin, the template doesn't render and I get an error "undefined method `company' for #<User:0x00000006b4f1f8>". You can find my user model, my company model and the trace from rails console here https://gist.github.com/alexdor/98a01a1265b38242884e8b45c6e18c81 . Am I doing something wrong or is this a bug? I have the same association between user and project model and they work fine.Thank you in advanced,Alexandros
--
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails_admin+unsubscribe@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
--Ing. Eduardo MorenoLinux Counter #439942
--
You received this message because you are subscribed to a topic in the Google Groups "rails_admin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rails_admin/d0d7omDx3w4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rails_admin+unsubscribe@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails_admin+unsubscribe@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rails_admin...@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
--Ing. Eduardo MorenoLinux Counter #439942
--
You received this message because you are subscribed to a topic in the Google Groups "rails_admin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rails_admin/d0d7omDx3w4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rails_admin...@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails_admin...@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
--Ing. Eduardo MorenoLinux Counter #439942
--
You received this message because you are subscribed to a topic in the Google Groups "rails_admin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rails_admin/d0d7omDx3w4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rails_admin...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rails_admin+unsubscribe@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
--Ing. Eduardo MorenoLinux Counter #439942
--
You received this message because you are subscribed to a topic in the Google Groups "rails_admin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rails_admin/d0d7omDx3w4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rails_admin+unsubscribe@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails_admin+unsubscribe@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
--Ing. Eduardo MorenoLinux Counter #439942
--
You received this message because you are subscribed to a topic in the Google Groups "rails_admin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rails_admin/d0d7omDx3w4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rails_admin+unsubscribe@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails_admin+unsubscribe@googlegroups.com.
To post to this group, send email to rails...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails_admin.
For more options, visit https://groups.google.com/d/optout.