I am not adding any form because there is no model for this page. 
Only there is controller and view.

On Thursday, December 20, 2012 11:11:29 AM UTC+5:30, jim wrote:
>
>
>
>
> On Thu, Dec 20, 2012 at 12:53 PM, Avi <[email protected] 
> <javascript:>>wrote:
>
>> Hello,
>>
>> I have a dropdown in the UI. There are many oprions.
>> How do I send the parameter from the dropdown - the selected value to the 
>> controller?
>>
>> I have tried :-
>>
>> 1. <%= select_tag 'name', options_for_select(@list, :selected) %>
>> 2. <%= select("audit", "value",options_for_select([["User Registration", 
>> "USER_REGISTRATION"], ["Download", "USER_REPORT"]], :selected => 
>> params[:value]) %>
>>
>> I am not getting any parameters passed to the controller.
>>
>
> make sure that the select tag above is part of the form you are submitting 
> and that you
> are actually submitting to the right action.  A quick look on your code 
> raised no issues.
>  
>
>>       
>>
>> -- 
>> 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]<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/rubyonrails-talk/-/fk7PY0E_DrMJ.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> -------------------------------------------------------------
> visit my blog at http://jimlabs.heroku.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].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/ezhDSMxW09AJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to