soveran / cuba

Rum based microframework for web development.
http://cuba.is
MIT License
1.44k stars 249 forks source link

Updated CSRF code examples in readme #58

Closed amclain closed 9 years ago

amclain commented 9 years ago

{{ this.csrf.meta_tag }} results in error:

undefined local variable or method `this' for #<Binding:0x007f7db5b525b8>

Omitting Cuba.use Rack::Session::Cookie, :secret => 'string' results in error:

undefined method `[]' for nil:NilClass

Updated the readme so these errors aren't encountered when following the examples.

Gem versions:
cuba (3.4.0)
mote (1.1.3)
mote-render (1.1.0)
soveran commented 9 years ago

@amclain Thanks!