Article:
 |
|
Rolling with Ruby on Rails
|
| Subject: |
|
problem: edit.rhtml doesn't work |
| Date: |
|
2006-06-18 11:29:11 |
| From: |
|
tadatoshi
|
|
|
I'm having a problem of editting anything for Recipe doesn't change the content in the database table at all.
On the web browser, no error is shown.
But when I looked at the log/development.log, I found an error message with filtering.
How can I fix this problem?
The error message is as follows:
Processing RecipeController#update (for 127.0.0.1 at 2006-06-18 13:29:17) [GET]
Session ID: 57a88da15ff037752605d02baefc13ba
Parameters: {"action"=>"update", "id"=>"3 method=", "controller"=>"recipe", "recipe"=>{"name"=>"Test Recipe 2", "id"=>"3",
"description"=>"Test description", "category_id"=>"1", "instructions"=>" Test instruction\r\n "}}
Redirected to http://localhost:3000/recipe/list
Filter chain halted as [#<Proc:0xb7bc2c1c@/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/verification.rb:64>] returned false
Completed in 0.00173 (578 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://localhost/recipe/update/3%20method=?recipe%5Bid%5D=3&recipe%5Bname%5D=Test+Recipe+2&recipe%5Bdescription%5D=Test+description&recipe%5Bcategory_id%5D=1&recipe%5Binstructions%5D=++++++++++++Test+instruction%0D%0A++++++++]
|
Showing messages 1 through 1 of 1.
-
problem: edit.rhtml doesn't work
2006-06-18 13:57:00
tadatoshi
[View]
It's working now...