-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
"undefined method `route_instance_path' for nil:NilClass" when creating a comment #708
Comments
I have the same problem. |
1 similar comment
I have the same problem. |
Just ran into this too. |
I'm hitting this same issue with rails 3.1.1 and the latest activeadmin from github. I threw a debugger into the offending code in lib/active_admin/comments.rb and noticed something a bit strange here (line 46): resource_config = active_admin_config.namespace.resource_for(comment.resource.class) Trying to just inspect active_admin_config.namespace hangs forever. And obviously the resource_for call just returns nil. If I get some more time I'll investigate further. |
Same issue :-( |
Same here. Ruby 1.9.2, Rails 3.1.1, ActiveAdmin 0.3.3 |
+1 :: 1.9.2p290, 3.1.1, 0.3.4 NoMethodError in Admin::CommentsController#show
|
I inspected the code and it seems that the problem is located in actual = resources.values.find{|config| config.resource == klass } Even when config.resource and klass have the same name, their object_id are different. What do you think ? |
@simonc It might be hacky, but pry it and/or debug print both values and class types? |
Ok, this is a quick fix: https://gist.github.com/1369085 of course this isn't the solution but it works. Please don't judge me! |
I think this issue has been fixed with this commit :) |
This should be fixed now. I'm going to close it, but please reopen if the issue persists. (Fix is on master) |
@gregbell you rock! |
Related to #794 |
I am having this issue, I just installed activeadmin from master in an existing rails 3.1.3 application. |
I'm still having the same problem on nested resources. |
Still having the same problem, using activeadmin (0.3.4) and rails 3.1.3. It shows NoMethodError page but it was able to post the comment if you hit back button on the browser activesupport (3.1.3) lib/active_support/whiny_nil.rb:48:in |
I'm having the same problem as @dvliman |
I'm getting this issue on 0.3.4. Perhaps this should be merged in 0.3.x stable branch and made a point release. |
In my controller spec I have this error I don t know if it is related .. Admin::EmployeesController POST create with invalid params re-renders the 'new' template |
Solved this by updating activeadmin. I had activeadmin (0.3.4). Updated my gemfile to use gem 'activeadmin', "~> 0.4.1" When did "gem install activeadmin" by itself, it installs 0.4.1, but when I add just 'activeadmin' to my gemfile it uses 0.3.4.. not sure why I have to specify. |
Hi,
When I create an admin comment, I get the following error:
I'm using ActiveAdmin 0.3.3 and Rails 3.1.1. The full trace is available here. This may be related to issue #528.
The text was updated successfully, but these errors were encountered: