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

Title

Price

description
<%= @classified.description %>

location

Email

Manika Suri wrote:

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

What message?

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

On Tue, May 6, 2008 at 1:04 AM, Manika Suri <
[email protected]> wrote:

if @classified.update_attributes(params[:classified])

Title

description

Email


James M.