Aha! That explains it.
Thank you !
On Dec 3, 4:35 pm, Chris Flipse wrote:
> Your first attempt is the correct way to go about it
> post 'comments/rate', :id=>4, :score=>{4=>10}
>
> However, note that in your controller, the parameters are stringified /
> symbolized.
> params["score"]["4"] wi
Your first attempt is the correct way to go about it
post 'comments/rate', :id=>4, :score=>{4=>10}
However, note that in your controller, the parameters are stringified /
symbolized.
params["score"]["4"] will get you 10, but params["score"][4] will get you
nil
On Wed, Dec 2, 2009 at 8:40 AM,
Hi all. Apologies if this is an easy one, but I've spent a while
Googling and trying trial-and-error, and can't find the solution.
I'm trying to spec a controller.
It accepts an HTML array, then processes items matching the id param.
So I'm passing (in meta form)
controller/action/id?thing[thin