My destroy action is not working, I am using Rails 4.x
My routes:
resources :subscription_users, only: [:new, :create, :destroy]
My view page:
<% @subscription_users.each do |user| %>
<%= link_to "delete", admin_subscription_user_path(user), :method => :delete %>
<% end %>
controller:
def destroy
..
..
end
When I click on the link I get this error:
No route matches [GET] "/admin/subscription_users/9"
My view page layout has the following:
//= require jquery
// require jquery_ujs
// require turbolinks
//= require_tree ./bootstrap