What were you trying to do?
I've been adding routes with underscores e.g line_item, business_hours, stock_units e.t.c
What did you end up with (logs, or, even better, example apps are great!)?
The index route works fine but when I try to access the show page I get a NoMethodError as demonstrated by the image below.
I then have to add another route resources :stockunits, controller: 'stock_units' and the better part is I don't get duplicated resources on the side panel.
What were you trying to do? I've been adding routes with underscores e.g
line_item
,business_hours
,stock_units
e.t.cWhat did you end up with (logs, or, even better, example apps are great!)?
The index route works fine but when I try to access the show page I get a NoMethodError as demonstrated by the image below.
I then have to add another route
resources :stockunits, controller: 'stock_units'
and the better part is I don't get duplicated resources on the side panel.