I have a object called "category", in my view/store/manage.html.erb, I want to do this :
<%=link_to_remote category.name, :url => delete_category_path(category),
:confirm => 'Are you sure?', :method => :delete%>
But it show me the NoMethodError, how can I do that? This is the error from RoR:
undefined method `delete_category_path' for #<ActionView::Base:0x103490da0>
This is my manage method in the store_controller.rb:
def manage
@categories = Category.all
@products = Product.all
@category = Category.new(params[:category])
end