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 viewing "Page" model #814

Closed
robu opened this issue Dec 6, 2011 · 4 comments
Closed

Problem viewing "Page" model #814

robu opened this issue Dec 6, 2011 · 4 comments
Labels

Comments

@robu
Copy link

robu commented Dec 6, 2011

Quoted from my email to the list:

One of my models in my app is called "Page", and that gives me trouble. I see nothing different with this model form the
others I have, except for its name. I'm now guessing that the "Page" name conflicts with a name or a route inside of AA.
I get the index view for Page, but the "View" and "Edit" links both result in routing errors, such as:

No route matches {:action=>"edit", :controller=>"admin/pages", :id=>#<Page id: 1, user_id: 1, domain: "robert.se", created_at: "2011-11-16 20:43:36", updated_at: "2011-11-27 09:03:47", [etc etc etc]}

The URL looks fine ("/admin/pages/1") but the error is always the same.

I am running activeadmin gem version 0.3.4.

@pcreux
Copy link
Contributor

pcreux commented Dec 7, 2011

This is an interesting one. Do you encounter the same issue with the edge version on github/master?

@robu
Copy link
Author

robu commented Dec 10, 2011

I don't even know how to test that.

@agaelebe
Copy link

I tried to reproduce this with Rails 3.2.6 and active_admin 0.4.4 and didn't find any error. I created the model Page with one attribute. Created a record, edited and viewed it through active_admin. If it is necessary I can create a repo on github with the code.
Please close this issue.

@jpmckinney
Copy link
Contributor

See #959.

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

No branches or pull requests

4 participants