Rails Routes
Rails Routes
01
How can we give the root route:
root 'sharks#index'
Route this:
/pages/show/1
root :to => "pages#show", :id => '1' ::::::::::::::::::::::::::::: {It may work}
root 'blogs#show', {id: 1} ::::::::::::::::::::::::::::: {It may work}
Comments
Post a Comment