AuthenticityToken is a feature of Ruby on Rails used to protect against CSRF
Questions tagged [authenticity-token]
81 questions
0
votes
1 answer
ActionController::InvalidAuthenticityToken in Rails Engine
I am building a saas engine in rails. I am running into the following error on the account#create method (The warden gem is used):
ActionController::InvalidAuthenticityToken in…

Jan
- 239
- 1
- 4
- 17
0
votes
1 answer
ActionController::InvalidAuthenticityToken: verified with authentication token on the form
I don't know why it happens but my form for some reason does not post properly. I am very sure the form contains the required authentication token:
0
votes
1 answer
How to capture changing "authenticity_token" at run time using Jmeter's "Regular Expression Extractor"?
I have tried to put input\s+name=”authenticity_token”\s+type=”hidden”\s+value=”(.*?)”\s*\ in Jmeter's Regular Expression Extractor but that is not helping and test fails. For Template I kept $1$ always.
On viewing source of page it was written like…

paul
- 4,333
- 16
- 71
- 144
0
votes
0 answers
I am getting an authenticity exception in rails 4 when I submit a form
Okay. I was cruising a long with a simple rails 4 app, and all of the sudden I am getting an exception, and info is not being stored in database.
Controller-
def new
@game = Game.new
end
def create
@game = Game.new(game_params)
if…

Reeder32
- 89
- 4
0
votes
1 answer
Rails refuses to load a session from the data sent by swfupload
I'm using swfupload's most recent version, 2.2.0 and rails 2.3.3. Having seen a number of statements to the effect that I would have to replace CGI::Session.initialize with a chunk of code to extract the session from key-value pairs injected into…

Sniggerfardimungus
- 11,583
- 10
- 52
- 97
0
votes
0 answers
Nested attribute doesn't show up attr_accessible
I have a nested attribute message.rb
class Message < ActiveRecord::Base
belongs_to :trip
attr_accessible :name, :email, :subject, :body
end
Which belongs trip.rb
class Trip < ActiveRecord::Base
has_many :messages
…

em-v
- 417
- 1
- 3
- 14