-
Notifications
You must be signed in to change notification settings - Fork 99
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
Issue while creating new post #47
Comments
It seems the model_name is wrong? For some reason you have a tilde in But without knowing which code tries to use this URL, I can't say much more |
Thanks Dantemss for the reply. I am using rails_admin gem for admin section which will create posts. Once post will created then it will be visible at user's end where user can comment on it. So my question is: |
I'm not familiar with the rails_admin gem so I cannot say for sure if it's compatible. I assume you can configure rails_admin to ignore the commontator_thread relation, and all should be fine? Take a look at https://github.com/sferik/rails_admin/wiki/Railsadmin-DSL |
Hi, same issue here. Thank you, |
Hi.. still struggling to make it work with rails_admin |
So have you tried excluding the commontator_thread field like I suggested? Did it work? RailsAdmin.config do |config|
config.model 'YourModel' do
list do # or edit or export
exclude_fields :commontator_thread
end
end
end |
Same issue with : config.model 'Venue' do
list do # or edit or export
exclude_fields :commontator_thread
end
end Thanks |
I assume it still doesn't work even when you change list to edit? |
Yes it doesn't change anything... |
Hello. I have identified the issue. rails_admin did not like the way commontator created threads. |
Works for me :) |
Nice :D |
Fixed in 4.10.0 so I'm closing this. |
Still have the same problem in 4.10.5 |
change to
|
so how did you figure out the issue finally,and i while get the same issue when i add the acts_as_commontable in my model,whats the mean of v4.10.0. is it a gem you published in your repository ? it stuck me several days . now to inquire you. thanks too much ) |
I have used this gem for my appliaction and its configured fine.
I have posts and on that each post comments will be given by users.These posts will be created by admin[rails_admin gem].
While creating new post by admin it is giving me following error:
ActionController::UrlGenerationError at /post/new
No route matches {:action=>"show", :controller=>"rails_admin/main", :id=>nil, :model_name=>"commontator~thread"}
Please help me on this?
The text was updated successfully, but these errors were encountered: