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?

I was trying

   params[:architect]

or with another  construct ( project_details['architect] =
project_details['architect']) in the
javascript reply I tried

    params([:project_details][:architect]

in the controller, but this did not seem to work either.


Lacking the knowledge to pick up the vars out of javascript reply in
the controller.

Thanks again,

   Jet


On Nov 23, 12:03 pm, kevinpfromnm <[email protected]> wrote:
> I'm not sure but I would guess 'architect=' is not the same as
> 'architect'= ... my javascript is a bit rusty.
>
> On Nov 23, 10:53 am, blueHandTalking <[email protected]> wrote:
>
> > The following:
>
> > <% @project_details.each do |project_detail| %>
>
> > <%= link_to_remote ( :with => "'architect='+ #
> > {project_detail.architect}") %>
> >                                         <% end %>
> > generates
>
> > {asynchronous:true, evalScripts:true, parameters:'architect=' + 'Jack
> > London ' + ...more stuff
>
> > Is the above then available in params array in the controller, and if
> > so how?
>
> >  Right now I am trying:
>
> >   �...@photos = Photo.find_by_architect(params[:architect:])
>
> > which does not work.
>
> > Thanks,
>
> >   Jet

--

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