On Nov 23, 2009, at 6:47 PM, blueHandTalking wrote:

> Kevin,
>
> Thanks for the guestimate. My question was off topic,
> but I thought I'd give it a shot. My javascript is almost non-
> existant,
> so I am struggling with Prototype.
>
> Here is the example from the Rails docs:
>
>    :with => "'name=' + $('name').value"
>
> I am getting same result (I believe) with
>
>   :with => "'architect = ' + #{project_detail.architect}"
>
> ...as the output looks fine in Firebug.
>
> Where I am having trouble is in the controller.
> How do I pick this up there?
>

Couple things:

- skip the spaces. The :with option is pretty much whacked into the  
query string as-is. For your setup, you'll probably need something  
more like (note the single quotes:

:with => "'architect=#{escape_once(project_detail.architect)}'"

(not 100% sure if escape_once is in 2.3.x; you essentially need to  
escape the space in project_detail.architect)

- the output from script/server (or the logs) is the best place to  
look for params that have wandered off. What does it show when you  
execute this request?

Hope this helps!

--Matt Jones

--

You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=.


Reply via email to