Skip to content

Commit

Permalink
Merge pull request #7987 from cirosantilli/get-instead-match
Browse files Browse the repository at this point in the history
Replace match via get with get on routes
  • Loading branch information
dzaporozhets committed Jan 15, 2015
2 parents 1159157 + 29ed462 commit d4a8471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/routes.rb
Expand Up @@ -154,8 +154,8 @@
end
end

match "/u/:username" => "users#show", as: :user,
constraints: {username: /(?:[^.]|\.(?!atom$))+/, format: /atom/}, via: :get
get '/u/:username' => 'users#show', as: :user,
constraints: { username: /(?:[^.]|\.(?!atom$))+/, format: /atom/ }

#
# Dashboard Area
Expand Down

0 comments on commit d4a8471

Please sign in to comment.