Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Trailing slash optional on URLs

  • Loading branch information...
commit 03747daf57e36f0aa4023b7cfe495613e66ee56c 1 parent 8e42c9a
@konklone konklone authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 ohnomymoney.rb
View
4 ohnomymoney.rb
@@ -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])
Please sign in to comment.
Something went wrong with that request. Please try again.