New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uninitialized constant Dashboard #2528
Comments
Your issue with |
I tryed now with new rails-api app and after some arm twisting it works, but when the same applied on this app, which is quiet bigger, nothing works.. what is weird thou is that with the other app I do not get the I have no clue what next, I dont even know what to inspect, because I mirrored the changes from working app into this one and nothing... |
How is your ActiveAdmin dashboard defined? It should be define as a page like the current dashboard.rb template. ActiveAdmin no longer defines a |
it is exactly like you wrote.... i dont get it.... now i am stuck here, I dont know where to look now... please say if you got some pointers I got to double check, thx :) |
Ok guys, now I know that it is a cancan's fault, I seemed to not fully comment it out before, but now I did and I can see something from AA, still I got no clue how to solve the thing with cancan... You see, the problem now is, that if I try other routes (with cancan ON) it gives me that CommentsAbility undefined, which is OK, I just define what it asks me for and thats it, but with the dashboard its different... Anyone tryed it in this setup? Sry I did not mention cancan, I was sure that its not the problem, but as it seems I was wrong... and still I got no stylesheets or js, because of the mistake with thx in advance for any ideas :) UPDATE: but then when I am sure that cancan is configured according to docs
|
@redrick Your problem with the dashboard is because it was removed on 0.6.1. But it's working on 0.6.0. |
@afast I don't know what you mean. 0.6.0 and 0.6.1 both use the same dashboard implementation. I think you're talking about 0.5.x |
@daxter Oh sorry, my bad, I got this one wrong. I was referring to the admin/dashboard.rb that was deprecated. Sorry again, should I delete my comment to avoid further confusion? |
I think it's better to continue discussion in the ticket you created, #2538 |
ok now I am in dead end, I just know that commenting out
anybody got similar problems with cancan and active admin ? I read one from 2 years before here but that was no help for me.... also i found this where I found out, that when loading dashboards it seems to ignore my ability class and just throws the error... please dont you have some experience with things like this ? I would appreciate those very much, thx guy for your time :) |
Can you reproduce this in a clean test Rails app, and upload it to GitHub? |
I was trying that once today, clean app does not do these things and as I just got this app from colleague who left, this is going to be his fault by faultly implementing cancan functionality, for now, after few nice hours of trying, I am going to start from scratch and if I am able to reproduce it then I will reopen this, thx for patiance, sry for bothering :( |
Hi guys,
I am trying activeadmin for the first time and I got as far as rake db:migrate after generating and I got this error, which I cannot google properly, so I am writing here:
I am trying this on ruby 2.0.0p247 with rails 4.0.0
using rails-api, it is a REST API, where I need something like this admin to manage content apart from client...
note : as I looked closely on rails g from install instructions it threw me this at the end:
even it is a REST API I added
views
directory, where onlylayouts
folder is present withapplication.html.erb
I am using cancan for auth (but I read somewhere thats no problem...)
I will supply all additional info you need, applying this gem would be a big big help for me, thx in advance
UPDATE:
ok I got it working by adding missing actionpack library into
application_controller.rb
but still cannot get rid of the loaderror at the beggining:
and also now I got myselft error when loading page localhost:3000/admin:
and I am still stuck....
The text was updated successfully, but these errors were encountered: