NoMethodError (undefined method `excluded?' for RailsAdmin::Config:Module):

බැලීම් 133
පළමු නොකියවූ පණිවිඩය දක්වා මඟ හරින්න

dalm

නොකියවූ,
2011 අගෝ 16, 16.30.442011-08-16
සිට rails_admin
Hi,

I've been developing fine for 2 months with this in my gemfile:

gem 'rails_admin', :git => 'git://github.com/sferik/
rails_admin.git'

and then the other day I did a

bundle update

and discovered that now you're on rails 3.1rc and I'm using 3.0.9, so
I changed my gemfile:


gem 'rails_admin', :git => 'git://github.com/sferik/
rails_admin.git', :branch => 'rails-3.0'


and now many of my tables cannot be edited in rails_admin.

It looks like it has to do with change in association code, because
simple tables work.

Suggestions?

Thanks,
Dave

Benoit Bénézech

නොකියවූ,
2011 අගෝ 17, 04.50.402011-08-17
සිට rails...@googlegroups.com
If you have problem with belongs_to associations, it's because you now need to reference them by the association name, not the association key anymore.

field :user_id

 becomes 

field :user

dalm

නොකියවූ,
2011 අගෝ 20, 18.58.102011-08-20
සිට rails_admin
Thanks! (I thought that was only true for 3.1 branch.)

That fixed it.
සියල්ලට පිළිතුරු දෙන්න
කර්තෘට පිළිතුරු දෙන්න
ඉදිරියට යවන්න
නව පණිවිඩ 0