Using the huge ActiveAdmin gem. I ran into a problem with comments.
ActiveAdmin.register Sale do belongs_to :channel show do |sale|
If I post a comment on a sale with the above setting, comment messages, but then fail when redirecting with:
undefined method `admin_sale_path' for #<Admin::CommentsController:0x007ffed79bb210>
The correct routing method would be admin_channel_sale_path(sale.channel, sale) , but it seems he can't figure it out, and I'm not sure where to fix it.
Is there a place in my Sale resource where I can override the routing method used to prevent this error?
ruby ruby-on-rails activeadmin
Alex wayne
source share