ruby on rails - Routing confusion -
ruby on rails - Routing confusion -
in routes have
get '/about', to: 'pages#about' resources :reckoners resources :shift_requirements, shallow: true end
and in layouts/_footer.html.erb, called application.html.erb, have
<li><%= link_to "about", about_path %></li>
which works fine, unless i'm in /reckoners/index.html.erb view, in case next error -
couldn't find reckoner 'id'=about
looking @ params on page, 'about' beingness passed id, , server log confirms query beingness run reckoner object id. kind of understand why it's going wrong, i'd understand why.
i have pages_controller.rb, contains
def end
ruby-on-rails ruby-on-rails-4 routes
Comments
Post a Comment