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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -