Permalink
Browse files

Trailing slash optional on URLs

  • Loading branch information...
1 parent 8e42c9a commit 03747daf57e36f0aa4023b7cfe495613e66ee56c @konklone konklone committed Apr 28, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 ohnomymoney.rb
View
@@ -22,7 +22,7 @@
end
end
-get "/:handle" do
+get "/:handle/?" do
halt 404 unless user = User.find_by_handle(params[:handle])
erb :index, :locals => {
@@ -33,7 +33,7 @@
}
end
-get "/:handle/account/:id" do
+get "/:handle/account/:id/?" do
halt 404 unless user = User.find_by_handle(params[:handle])
halt 404 unless account = user.accounts.find(params[:id])

0 comments on commit 03747da

Please sign in to comment.