Forum: Ruby on Rails Error "ActionController::InvalidAuthenticityToken"

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tushar G. (Guest)
on 2009-04-13 14:48
I am using rails 2.2
I an getting this error.

I have an code in my erb file is like this:

<div style="float:left;border:1px solid red;width:200px;height:250px;">

    <div id="pdf_title" style="display:none">
      Title: <%=text_field(:page, :title, :size => 20)%>
      <a href="#" onclick="add_title();">Create</a>
  function page_title(){
  function add_title(){
    var pdf_title=$('page_title').value;
    var url="face/add_title"
    new Ajax.Updater('', url, {asynchronous:true,
pdf_title }});


Whenever I am clicking onto the Create link I am getting error.
Could any one please help me out urgently.
I am new in rails 2.0 and above
This topic is locked and can not be replied to.