1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

fix Sinatra as middleware example in Spanish readme

This commit is contained in:
Gabriel Andretta 2011-05-24 19:20:45 -03:00
parent 9c666ee1ab
commit e67c5ae594

View file

@ -1531,7 +1531,7 @@ aplicación basada en Rack (Rails/Ramaze/Camping/...):
get('/login') { haml :login }
post('/login') do
if params[:nombre] = 'admin' and params[:password] = 'admin'
if params[:nombre] == 'admin' && params[:password] == 'admin'
session['nombre_de_usuario'] = params[:nombre]
else
redirect '/login'