module Conjoin::Csrf
Public Instance Methods
csrf_tag()
click to toggle source
Public: Sugar to include a csrf tag
Examples:
<form action="/new"> <%= csrf_tag %> <input type="text" /> </form>
# File lib/conjoin/csrf.rb, line 13 def csrf_tag Rack::Csrf.tag(env) end
csrf_token()
click to toggle source
Public: Sugar to access the csrf token
Examples:
<%= csrf_token %>
# File lib/conjoin/csrf.rb, line 22 def csrf_token Rack::Csrf.token(env) end