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

Fixed bug with active_admin_comments #590

Merged
merged 2 commits into from
Oct 13, 2011
Merged

Fixed bug with active_admin_comments #590

merged 2 commits into from
Oct 13, 2011

Conversation

jbarket
Copy link
Contributor

@jbarket jbarket commented Oct 7, 2011

Fixed problem with active_admin_comments not working if default_namespace is set to false or :root.

comment_form_url prepends comments_path with the namespace. If it's root, this means you end up with root_comments_path, which won't work.

I added a simple check to see if it's root. If so, it returns comments_path instead.

gregbell added a commit that referenced this pull request Oct 13, 2011
Fixed bug with active_admin_comments
@gregbell gregbell merged commit cfed37c into activeadmin:master Oct 13, 2011
@gregbell
Copy link
Contributor

Thanks Jonathan! Good find.

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

Successfully merging this pull request may close these issues.

2 participants