Hi all, I’m coming back to RoR following a break of a few years - so please be gentle. I’m sticking to 4.2.8 for now as I needed to get an app updated. All fine so far. But I have a small issue that has me stumped. I have a show.html.erb that is getting too busy, so I need to display some content in a second. I created the route, the action in the controller, but the link to the show2.html.erb is being ignored. No errors the link brings up the show.html.erb. Any thoughts - code below TIA, Dave
LINK IN INDEX FILE <td><%= link_to "Members", show2_path(:id => village.id), :class => "btn btn-xs btn-primary" %></td> CONTROLLER: def show2 render 'show2' end (show2.html.erb exists) ROUTE: get '/villages/:id', to: 'villages#show2', as: 'show2'