ActionController::InvalidAuthenticityToken in ClassifiedCon

I am editing a form it is taking the value but when i submit it
it shows the message

def edit
@classified = Classified.find(params[:id])
end

def update
@classified = Classified.find(params[:id])
if @classified.update_attributes(params[:classified])
redirect_to :action => 'show', :id => @classified
else
render :action => 'edit'
end
end

and this is my form
<form action="../update/<%= @classified.id %>" method="POST">
  <input id="_id" name="classified[id]" size="30"
         type="hidden" value="<%= @classified.id %>" />
  <p><b>Title</b><br>
  <input id="classified_title" name="classified[title]" size="30"
         type="text" value="<%= @classified.title %>" />
  </p>
  <p><b>Price</b><br>
  <input id="classified_price" name="classified[price]"
         size="30" type="text"
         value="<%= @classified.price %>" />
  </p>

  <p><b>description</b><br>
  <textarea cols="40" id="classified_description"
            name="classified[description]"
            rows="20" wrap="virtual">
    <%= @classified.description %>
  </textarea> </p>
  <p><b>location</b><br>
  <input id="classified_location" name="classified[location]"
         size="30" type="text"
         value="<%= @classified.location %>" />
  </p>
  <p><b>Email</b><br>
  <input id="classified_emai;" name="classified[email]"
         size="30" type="text"
         value="<%= @classified.email; %>" />
  </p>
  <input type="submit" value="Update" />
</form>

Manika Suri wrote:

I am editing a form it is taking the value but when i submit it
it shows the message

What message?

  <input id="classified_emai;" name="classified[email]"
         size="30" type="text"
         value="<%= @classified.email; %>" />
  </p>
  <input type="submit" value="Update" />
</form>

You have a ; where an l should be. Did you copy and paste this code?

Is there a reason you're not using Rails form helpers?

Have a look at this thread:

http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/8ad8d522cb6ce5f5