Displaying 1 result from an estimated 1 matches for "usuariocontrol".
2008 Mar 15
3
[HELP]No :secret given to the #protect_from_forgery call
...).and_return(@usuario)
post ''create'', {:usuario => {:nombre => "camilo", :clave =>
"secreta", :tipo => "administrador"}}
end
But when I add this spec, I start getting this:
1)
ActionController::InvalidAuthenticityToken in ''UsuarioController
deberia crear una nueva persona en post create''
No :secret given to the #protect_from_forgery call. Set that or use a
session store capable of generating its own keys (Cookie Session
Store).
./spec/controllers/usuario_controller_spec.rb:30:
script/spec:4:
This is the only failure. Lin...