Routing error when creating a new application

9 views
Skip to first unread message

Cameron D.

unread,
May 31, 2013, 11:09:54 AM5/31/13
to rubyonra...@googlegroups.com
Hello.

So I created a new application (named guestbook), controllers, and
entry(named sign_in) in Rails. I uncommented the "match
':controller......' and the 'root :to => 'welcome#index' lines in
config/locales/routes.rb file. When I type
"localhost:3000/entries/sign_in", I received the "Routing Error, No
route matches [GET] "/entries/sign_in"

When running rake routes: entries_sign_in GET
/entries/sign_in(.:format) entries#sign_in root/welcome#index
/:controller(/:action(/:id)(.:format) :controller#:action

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
May 31, 2013, 12:05:31 PM5/31/13
to rubyonra...@googlegroups.com
Did you restart the server after changing routes.rb? This is one of
the few occasions when a restart is necessary.

Colin
Reply all
Reply to author
Forward
0 new messages