View Single Post
  #1 (permalink)  
Old April 13th, 2008, 06:35 PM
davidtspf davidtspf is offline
Registered User
Join Date: Apr 2008
Location: , , .
Posts: 5
Thanks: 0
Thanked 3 Times in 2 Posts
Default Chapter 5 - "get" works, "post" does not

In the first example in Chapter 5, reading from a text box, everything works when my form action line reads like this:

<form action = "\look\at">

It also works like this:

<form action = "\look\at" method = "get">

But it does not work when I use "post", as suggested on p.127:

<form action = "\look\at" method = "post">

I get a very long error in my browser that begins like this:

ActionController::InvalidAuthenticityToken in LookController#

I am running on OS X Leopard, Ruby v.1.8.6, Rails v.2.0.2. It looks like "ruby server/script" runs Mongrel, not WEBrick.

Any idea why "post" won't work?