Help me...
error on form post:-
ActionController::InvalidAuthenticityToken
this is the my code
----------------------------
RHTML file
<form method="post" action= "\msg\confirm\">
<input type="text" name="text1">
<input type="submit"/>
-----------------------------------------------------------------------
CONTROLLER
class MsgController < ApplicationController
def confirm
@data = params[:text1]
end
end
------------------------------------------------------------------------
what is the reason, Im stucked help me
mithila.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
On Nov 12, 2008, at 6:43 PM, xxmithila wrote:> > Help me... > > error on form post:- > > ActionController::InvalidAuthenticityToken > > > this is the my code > ---------------------------- > > RHTML file > > <form method="post" action= "\msg\confirm\"> > > <input type="text" name="text1"> > > <input type="submit"/> > ----------------------------------------------------------------------- > CONTROLLER > class MsgController < ApplicationController > def confirm > @data = params[:text1] > end > end > ------------------------------------------------------------------------ > > > what is the reason, Im stucked help me > mithila.Read this (near the bottom): http://ryandaigle.com/articles/2007/9/24/what-s-new-in-edge-rails-better-cross-site-request-forging-prevention -philip --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you very much my friend..philip I got your point.. thankx again. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---