search for: token_tag

Displaying 7 results from an estimated 7 matches for "token_tag".

2008 Jan 30
1
token_tag in Flash?
Yo, I''ve got this data POSTing from a Flash App and I need to figure out how this little <%= token_tag %> works so I can give the Flash the proper validation. See, I get this ActionController::InvalidAuthenticityToken because you know, gotta defend those POSTs, but how do I get the toke into my Flash? I''m somewhat new, so if there is some way obvious easier way then let me know. -- Pos...
2008 Mar 22
3
ActionController::InvalidAuthenticityToken not thrown in Windows
...e with os x and the other with windows xp. I was testing one of my registration forms and it worked fine when mongrel_rails was run on the windows machine, but when mongrel was run on os x it kept throwing "ActionController::InvalidAuthenticityToken". I realized I had forgotten the <%= token_tag %>, but it''s worrisome that when the server was run on xp it took the form happily. What''s going on? Thanks! Abhik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gr...
2008 Jan 16
4
ActionController::InvalidAuthenticityToken in LoginController
Hi, I''m having a problem trying to get a login controller working. When I try and post to my login controller I get the following error: ActionController::InvalidAuthenticityToken in LoginController#login login_controller: class LoginController < ApplicationController def login case request.method when :post if @session[''user''] =
2009 Aug 28
4
InvalidAuthenticityToken
Hi guys What does the below line says ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): -e:2:in `load'' -e:2 Please guide me -- Karthik.k Mobile - +91-9894991640
2008 Jan 30
2
Invalid authenticity tokens when using subdomains
...using subdomains and rails? The example that I used to help me out was from the Advanced Rails Recipes book, but I can''t get it working as it should. I continually get authenticity token errors after logging in. I have had this error before, and for whatever reason after I added a<%= token_tag %> to the form it worked, but it doesn''t work in this case. Any clues to why this is happening? Thanks for the help -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Grou...
2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
...el> vendor/rails/actionpack/lib/action_controller/ request_forgery_protection.rb:114:in `form_authenticity_token'' (eval):2:in `send'' (eval):2:in `form_authenticity_token'' vendor/rails/actionpack/lib/action_view/helpers/ form_tag_helper.rb:453:in `token_tag'' vendor/rails/actionpack/lib/action_view/helpers/ form_tag_helper.rb:430:in `extra_tags_for_form'' vendor/rails/actionpack/lib/action_view/helpers/ form_tag_helper.rb:438:in `form_tag_html'' vendor/rails/actionpack/lib/action_view/helpers/ form_tag_helper....
2008 May 19
4
REST urls and Authenticity Token
...e => ''Delete this folder'', :confirm => "All files and subfolders will be deleted!\nAre you sure?" } %> How come the form generated for this link doesn''t contain a Authenticity token? For all my other crud forms I also had to explicitly write the <%= token_tag %>. This may be the right way, but I remember reading something on this forum that the Authenticity token is generated automatically for destroy links and forms. Another think that I would like to answer is the RESTful urls. In normal crud actions you rely on the unique id of your record. My pr...