ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Rolling with Ruby on Rails
Subject:   Update not working
Date:   2006-05-21 22:47:44
From:   guyhillyer
Response to: Update not working

I experienced "update not working" and traced
it to the case of the "name" attribute on the
input tags in edit.rhtml.

That is, I finally made it work by changing
recipe[category_id] to Recipe[category_id].
I gather that the posted "name" attribute
is used as the model name, which is capitalized
in the command "ruby script\generate model Recipe"

Just reporting empirical results!

1 to 1 of 1
  1. Update not working
    2006-06-08 19:52:47  guyhillyer [View]

1 to 1 of 1