rails link path and routing error
- by Nick5a1
<%= link_to t('.new', :default => t("helpers.links.new")), new_equipment_path, :class => 'btn btn-primary' %>
I have the above code in a view, but am getting the following error when clicking the link: No route matches {:action=>"show", :controller=>"equipment"}
My routes file contains:
devise_for :users
ActiveAdmin.routes(self)
devise_for :admin_users, ActiveAdmin::Devise.config
resources :equipment
resources :workouts
root :to => "home#index"
match 'workouts/random', :to => 'workouts#random'
match ':controller(/:action(/:id))(.:format)'
Why is it trying to access the show action?