Skip to content
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

Problem with Admin Tab #58

Closed
ghoppe opened this issue Feb 7, 2012 · 7 comments
Closed

Problem with Admin Tab #58

ghoppe opened this issue Feb 7, 2012 · 7 comments

Comments

@ghoppe
Copy link

ghoppe commented Feb 7, 2012

I have installed refinerycms-inquiries using refinerycms edge and rails 3.2.1. When clicking on the tab in the admin backend, this error shows:

Started GET "/assets?controller=refinery%2Finquiries%2Fadmin%2Finquiries" for 127.0.0.1 at 2012-02-07 07:31:56 -0600
Served asset  - 404 Not Found (3ms)
Processing by Refinery::PagesController#show as HTML
Parameters: {"path"=>"assets", "locale"=>:en}

... snip ...

ActiveRecord::RecordNotFound (Couldn't find Refinery::Page with id=assets):
  activerecord (3.2.1) lib/active_record/relation/finder_methods.rb:340:in `find_one'
  friendly_id_globalize3 (3.2.1.6) lib/friendly_id/active_record_adapter/relation.rb:81:in `find_one_with_slug'
  friendly_id_globalize3 (3.2.1.6) lib/friendly_id/active_record_adapter/relation.rb:25:in `find_one'
  friendly_id_globalize3 (3.2.1.6) lib/friendly_id/active_record_adapter/relation.rb:163:in `find_one'
  activerecord (3.2.1) lib/active_record/relation/finder_methods.rb:311:in `find_with_ids'
  activerecord (3.2.1) lib/active_record/relation/finder_methods.rb:107:in `find'
  activerecord (3.2.1) lib/active_record/querying.rb:5:in `find'

Perhaps there should be a plugin.url line in refinerycms-inquiries / lib / refinerycms-inquiries.rb?

@ghoppe
Copy link
Author

ghoppe commented Feb 7, 2012

It occurs to me that the reason I've encountered this issue is because my project is using precompiled assets, and that's why /assets is showing in the URL…

@parndt
Copy link
Member

parndt commented Feb 7, 2012

Did you use the rails-3-1 branch?

@ghoppe
Copy link
Author

ghoppe commented Feb 7, 2012

Yes, sir I did! Bundler doesn't find it without that.

@ugisozols
Copy link
Member

Unfortunately I can't reproduce it... @ghoppe is it only inquiries or you see similar behavior with other refinery engines?

@parndt
Copy link
Member

parndt commented Feb 15, 2012

I think it probably got fixed to be honest.

@ghoppe
Copy link
Author

ghoppe commented Feb 16, 2012

Comparing my broken installs with a new fresh install, I'm guessing the problem is in an old devise initializer.

@ugisozols
Copy link
Member

Closing this. Thanks for response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants