We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 523c2c5 commit 0977170Copy full SHA for 0977170
config/routes.rb
@@ -24,6 +24,7 @@
24
25
resources :protips, :path => '/p' do
26
collection do
27
+ get 'u/:username' => 'protips#user', as: :user
28
get ':id/:slug' => 'protips#show', as: :slug, :constraints => {:slug => /(?!.*?edit).*/}
29
get 'random'
30
get 'search' => 'protips#search', as: :search
@@ -34,7 +35,6 @@
34
35
get 'd/:date(/:start)' => 'protips#date', as: :date
36
get 't/trending' => 'protips#trending', as: :trending_topics
37
get 't/by_tags' => 'protips#by_tags', as: :by_tags
- get 'u/:username' => 'protips#user', as: :user
38
get 't/(/*tags)' => 'networks#tag', as: :tagged
39
put 't/(/*tags)/subscribe' => 'protips#subscribe', as: :subscribe
40
put 't/(/*tags)/unsubscribe' => 'protips#unsubscribe', as: :unsubscribe
0 commit comments