Rails missing route -


so have website class. creating login website, start "rails generate scaffold user name:string password:digest --no-test-framework" create model. ran "rake db:migrate" create database.

i ran rails server , opened chrome check webpage out entering url "localhost:3xxx/users/new" , routing error says "no route matches [get] "/users/new"

i did "rake routes" check out , correct, there no route "/users/new".

when ran generate scaffold noticed did created route not showing up! missing something?

nevermind, manually added "user/new" => "users#new" routes.rb file , worked!

i'm new rails , whenever use generate scaffold never problem.

if knows how or why route wasn't added when used generate scaffold, please let me know future reference, thanks!


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -