4. resources :users


#1
  1. get 'signup' => 'users#new'
  2. resources :users

Are both lines required? I thought you only need one or the other, but not both? The code works with only the 1st line and not the 2nd line, but not the other way around if you try the 2nd line and not the first.

Can anyone elaborate? Thanks.


#2

Hi Jay,

You don't need the first one, resources :users will let you sign up at /users/new. It's just that /signup is easier for most people to remember & is more commonly used :slightly_smiling:


#3

Thanks For the clarification Zeke. That's what I thought but cc wouldn't accept my answer with just the second. Possibly the browser needed a refresh or something.


#4

A post was split to a new topic: 4. resources :users


#5