cancan & rails_admin

68 views
Skip to first unread message

Vecchia Spugna

unread,
Apr 6, 2012, 1:02:17 PM4/6/12
to rails...@googlegroups.com
Hi guys

I'm trying to use rails_admin with cancan (rails 3.2.2, cancan 1.6.7, rails_admin 0.0.1), i followed the guide, but i get "uninitialized constant Main". 
I read that this was a problem occurred 1 year ago, but it has now been resolved with latest versions of cancan and rails_admin. 
I followed the guide, configured the rails_admin initialized, the ability class,but it still happens. Could you please help me?

thank you very much 
Marco

Benoit Bénézech

unread,
Apr 7, 2012, 11:48:34 AM4/7/12
to rails...@googlegroups.com
Don't use the RailsAdmin gem yet (it's still a very old release). It'll change soon. Meanwhile use a git dependency.

Vecchia Spugna

unread,
Apr 17, 2012, 3:24:58 AM4/17/12
to rails...@googlegroups.com
I'm pretty noob, i'm afraid i don't know how to express a this git dependency :(

sferik

unread,
Apr 17, 2012, 6:36:54 AM4/17/12
to rails...@googlegroups.com
This is no longer necessary. RailsAdmin has been released as a gem: http://rubygems.org/gems/rails_admin

Vecchia Spugna

unread,
Apr 17, 2012, 7:10:23 AM4/17/12
to rails...@googlegroups.com
I'm using it in this way already

Benoit Bénézech

unread,
Apr 19, 2012, 8:59:02 AM4/19/12
to rails...@googlegroups.com
Erik, this is a bit confusing. The old Gem was 0.0.1 already, wasn't it ?

Plus last closed milestone is 0.1.0 I think.

Vecchia > you should be alright with the 'new' 0.0.1 gem, I suppose.

Vecchia Spugna

unread,
Apr 20, 2012, 5:45:46 AM4/20/12
to rails...@googlegroups.com
I'm using rails_admin (0.0.1 e12f8b4)
and it doesn't work (uninitialized constant main)

Vecchia Spugna

unread,
Apr 20, 2012, 6:39:16 AM4/20/12
to rails...@googlegroups.com
Also with last commit (rails_admin-a6b65ec5fa1b)

Vecchia Spugna

unread,
May 2, 2012, 1:00:50 PM5/2/12
to rails...@googlegroups.com
no ideas? can anyone reproduce the error?
Reply all
Reply to author
Forward
0 new messages