Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login #2

Open
jeffayle opened this issue Jul 18, 2010 · 1 comment
Open

Can't login #2

jeffayle opened this issue Jul 18, 2010 · 1 comment

Comments

@jeffayle
Copy link

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

@mgriffin
Copy link

This is the same issue as http://github.com/adamwiggins/scanty/issues#issue/4
Pull from his repo and it'll work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants