Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

my account dummy

  • Loading branch information...
commit e77033dd01d158d737b6151d2ee8db4ba73792b4 1 parent 34189b1
@andoriyu authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 app.rb
  2. 0  views/my_account.erb
View
9 app.rb
@@ -52,6 +52,15 @@ def current_user
erb :rent_my_spot
end
end
+ get '/my-account/?' do
+ unless current_user
+ redirect "/login?return_url=#{request.fullpath }"
+ else
+ @pageid="my_account"
+ erb :my_account
+ end
+ end
+
get '/login/?' do
@pageid="login"
@return_url=params[:return_url]
View
0  views/my_account.erb
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.