Hi Roggie,
Roggie Boone wrote:
I'm confused about how to reference each text field back in my
controller.
I've tried params[:scores] and params[:scores][rating] along with
many other attempts that I can't remember now.
To see what's been returned in your params hash, you can use params.inspect.
Sometimes I get lazy and just put 'flunk' as the first line in the method
the form's submitted to.
HTH,
Bill
Bill Walton wrote:
Hi Roggie,
Roggie Boone wrote:
I'm confused about how to reference each text field back in my
controller.
I've tried params[:scores] and params[:scores][rating] along with
many other attempts that I can't remember now.
To see what's been returned in your params hash, you can use params.inspect.
Sometimes I get lazy and just put 'flunk' as the first line in the method
the form's submitted to.
HTH,
Bill
I also strongly recommend using (as was recommended to me when I started out) LiveHTTPHeaders, an extension for Firefox that will show you what was POSTed to the application.
Cheers,
Mohit.
8/8/2007 | 9:06 AM.