Verification failed: Unexpected parameter (not on return_to): 'controller'=nil) #31

Closed
stutiredboy opened this Issue Mar 6, 2012 · 2 comments

Comments

Projects
None yet
3 participants

ruby 1.9.3p125 (2012-02-16) [x86_64-linux]
Rails 3.2.2

repro here

its a "bug" in rails, fix is

parameters = params.reject{|k,v|request.path_parameters[k]}.reject{|k,v| k == 'action' || k == 'controller'}

rails is adding nonsense crap into the params hash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment