Using the awesome ActiveAdmin gem I've run into an issue with comments.
ActiveAdmin.register Sale do
belongs_to :channel
show do |sale|
# stuff to show sale resource...
# allow comments on sales
active_admin_comments
end
end
If I post a comment to a sale with the above setup, the comment posts, but then crashes on the redirect 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 does not seem to be able to figure that out, and I'm not sure where to patch this up.
Is there is a place in my Sale
resource where I can override the routing method used to prevent this error?
Derp... This was actually fixed when I upgraded to 0.6.0 to 0.6.2. Move along... :(
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With