You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to login, before doing anything else (except changing the config variables), I get this error:
NoMethodError at /auth
undefined method `set_cookie' for #Sinatra::Application:0x00000103050a30
On line 92 of main.rb
91. post '/auth' do
92. set_cookie(Blog.admin_cookie_key, Blog.admin_cookie_value) if params[:password] == Blog.admin_password
93. redirect '/'
94. end
I am using Sinatra 1.0 on Ruby 1.9
The text was updated successfully, but these errors were encountered:
When I try to login, before doing anything else (except changing the config variables), I get this error:
NoMethodError at /auth
undefined method `set_cookie' for #Sinatra::Application:0x00000103050a30
On line 92 of main.rb
I am using Sinatra 1.0 on Ruby 1.9
The text was updated successfully, but these errors were encountered: