Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate/Organize/Make Routes Better #3

Open
lchski opened this issue Jul 17, 2013 · 1 comment
Open

Consolidate/Organize/Make Routes Better #3

lchski opened this issue Jul 17, 2013 · 1 comment

Comments

@lchski
Copy link
Owner

lchski commented Jul 17, 2013

They're all over the place. Just look at the output of rake routes to see what I mean:

          users GET    /users(.:format)           users#index
                POST   /users(.:format)           users#create
       new_user GET    /users/new(.:format)       users#new
      edit_user GET    /users/:id/edit(.:format)  users#edit
           user GET    /users/:id(.:format)       users#show
                PUT    /users/:id(.:format)       users#update
                DELETE /users/:id(.:format)       users#destroy
       sessions POST   /sessions(.:format)        sessions#create
    new_session GET    /sessions/new(.:format)    sessions#new
        session DELETE /sessions/:id(.:format)    sessions#destroy
           root        /                          static_pages#home
         signup GET    /signup(.:format)          users#new
         signin GET    /signin(.:format)          sessions#new
        signout DELETE /signout(.:format)         sessions#destroy
     create_new        /create_new(.:format)      classy_classes#new
create_schedule POST   /create_schedule(.:format) schedules#create
   create_class POST   /create_class(.:format)    classy_classes#create
    my_schedule GET    /my_schedule(.:format)     schedules#show

This should be a priority to fix before we proceed much further. Consistency will make our lives (and our users') easier!

@lchski
Copy link
Owner Author

lchski commented Jul 30, 2013

Draft has a nice structure for this, seems fairly standard.

Sign in: /users/sign_in, Sign up: /users/sign_up. Much better than what we currently have. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant