mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Fix typo in middleware example.
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
This commit is contained in:
parent
cea255b3f2
commit
e6887fe430
7 changed files with 7 additions and 7 deletions
|
@ -882,7 +882,7 @@ Sinatra-Anwendung handen, es kann jede andere Rack-Anwendung sein
|
||||||
require 'sinatra/base'
|
require 'sinatra/base'
|
||||||
|
|
||||||
class LoginScreen < Sinatra::Base
|
class LoginScreen < Sinatra::Base
|
||||||
enable :session
|
enable :sessions
|
||||||
|
|
||||||
get('/login') { haml :login }
|
get('/login') { haml :login }
|
||||||
|
|
||||||
|
|
|
@ -895,7 +895,7 @@ aplicación basada en Rack (Rails/Ramaze/Camping/...).
|
||||||
require 'sinatra/base'
|
require 'sinatra/base'
|
||||||
|
|
||||||
class PantallaDeLogin< Sinatra::Base
|
class PantallaDeLogin< Sinatra::Base
|
||||||
enable :session
|
enable :sessions
|
||||||
|
|
||||||
get('/login') { haml :login }
|
get('/login') { haml :login }
|
||||||
|
|
||||||
|
|
|
@ -885,7 +885,7 @@ application basée sur Rack (Rails/Ramaze/Camping/...).
|
||||||
require 'sinatra/base'
|
require 'sinatra/base'
|
||||||
|
|
||||||
class EcranDeConnexion < Sinatra::Base
|
class EcranDeConnexion < Sinatra::Base
|
||||||
enable :session
|
enable :sessions
|
||||||
|
|
||||||
get('/connexion') { haml :connexion }
|
get('/connexion') { haml :connexion }
|
||||||
|
|
||||||
|
|
|
@ -860,7 +860,7 @@ Sinatraは他のRackミドルウェアを利用することができるだけで
|
||||||
require 'sinatra/base'
|
require 'sinatra/base'
|
||||||
|
|
||||||
class LoginScreen < Sinatra::Base
|
class LoginScreen < Sinatra::Base
|
||||||
enable :session
|
enable :sessions
|
||||||
|
|
||||||
get('/login') { haml :login }
|
get('/login') { haml :login }
|
||||||
|
|
||||||
|
|
|
@ -872,7 +872,7 @@ application (Rails/Ramaze/Camping/...).
|
||||||
require 'sinatra/base'
|
require 'sinatra/base'
|
||||||
|
|
||||||
class LoginScreen < Sinatra::Base
|
class LoginScreen < Sinatra::Base
|
||||||
enable :session
|
enable :sessions
|
||||||
|
|
||||||
get('/login') { haml :login }
|
get('/login') { haml :login }
|
||||||
|
|
||||||
|
|
|
@ -862,7 +862,7 @@ Rack подпрограммы, Rack приложения, Rails metal. Вы мо
|
||||||
require 'sinatra/base'
|
require 'sinatra/base'
|
||||||
|
|
||||||
class LoginScreen < Sinatra::Base
|
class LoginScreen < Sinatra::Base
|
||||||
enable :session
|
enable :sessions
|
||||||
|
|
||||||
get('/login') { haml :login }
|
get('/login') { haml :login }
|
||||||
|
|
||||||
|
|
|
@ -872,7 +872,7 @@ Sinatra::Base子类可用的方法实际上就是
|
||||||
require 'sinatra/base'
|
require 'sinatra/base'
|
||||||
|
|
||||||
class LoginScreen < Sinatra::Base
|
class LoginScreen < Sinatra::Base
|
||||||
enable :session
|
enable :sessions
|
||||||
|
|
||||||
get('/login') { haml :login }
|
get('/login') { haml :login }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue