I have Html tag :
smth1 smth2and my question is: how to obtain selected value by using ruby or rails?
I have Html tag :
smth1 smth2and my question is: how to obtain selected value by using ruby or rails?
I’m assuming you mean in a Controller:
value = @params[‘tag’]
value will contain the value string, not the display string.
Jason
No, I assume, that I have rhtml file with this tag and want to get
selected value to use it in same rhtml file without using Controller
(DOM model)
Jason R. wrote:
I’m assuming you mean in a Controller:
value = @params[‘tag’]
value will contain the value string, not the display string.
Jason
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs