Hello,
I don''t understand how formhelper works (In a Framework point of view)
...
For example if I use the chek_box formhelper
1/ check_box("puppy", "gooddog", {}, "yes",
"no") will call @puppy.gooddog
BUT, how it is possible since the check_box has only a string parameters
not instance object ?
2/ if you create your own helper which generate html identically as the
check_box("puppy", "gooddog", {}, "yes",
"no") do
( <input type="checkbox" id="puppy_gooddog"
name="puppy[gooddog]"
value="yes" />
<input name="puppy[gooddog]" type="hidden"
value="no" />)
=>Why you cannot get the paramater value in your controller ?
params[:puppy][:gooddog] never return yes ...
thanks
arnaud