Maybe "with" section should look like with => 'id='+value? I think in
your variant you assign to id a string value 'value'.

Regards,
Bob

On 25 май, 09:16, Devi Rv <[email protected]> wrote:
> Hi,
>
> Below is the code I am using to display drop down. This drop down is for
> displaying categories.
>
> <% form_for :category do |form| %>
>   <%= form.collection_select(:id,@categories, :id,
>     :category_name, {},
>     {:onChange => remote_function(:url=>{:action=>'say_hello',
>         :with => "'id='+value"},
>         :update=>'mydiv')}
>        )  %>
> <% end %>
>
> I want to get the 'current category id' during onchange. Using :with =>
> "'id='+value" I am not able to get it.
>
> Plaese anyone suggest
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to