Skip to content

Quick fix the user protip route #418 #253

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

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

resources :protips, :path => '/p' do
collection do
get 'u/:username' => 'protips#user', as: :user
get ':id/:slug' => 'protips#show', as: :slug, :constraints => {:slug => /(?!.*?edit).*/}
get 'random'
get 'search' => 'protips#search', as: :search
Expand All @@ -34,7 +35,6 @@
get 'd/:date(/:start)' => 'protips#date', as: :date
get 't/trending' => 'protips#trending', as: :trending_topics
get 't/by_tags' => 'protips#by_tags', as: :by_tags
get 'u/:username' => 'protips#user', as: :user
get 't/(/*tags)' => 'networks#tag', as: :tagged
put 't/(/*tags)/subscribe' => 'protips#subscribe', as: :subscribe
put 't/(/*tags)/unsubscribe' => 'protips#unsubscribe', as: :unsubscribe
Expand Down