Select Rails Form - Action view form helpers — ruby on rails guides. After your { :prompt => please select} add another hash with html. If you do not wish to use html5 date and time inputs, rails provides alternative date and time form helpers that render plain select boxes. You can take a look at the rails documentation. Forms in web applications are an essential interface for user input. Anyways , in your form : <%= f.label :optionselect %> <%= f.select( :optionselect, id, { option 1 => 1, option 2 => 2}) %> Create a select tag and a series. Select_tag(name, option_tags = nil, options = {}) public. Select(object, method, choices = nil, options = {}, html_options = {}, &block) public.
Create a select tag and a series. Select_tag(name, option_tags = nil, options = {}) public. If you do not wish to use html5 date and time inputs, rails provides alternative date and time form helpers that render plain select boxes. Action view form helpers — ruby on rails guides. Anyways , in your form : <%= f.label :optionselect %> <%= f.select( :optionselect, id, { option 1 => 1, option 2 => 2}) %> I am using a form_for to update a. You can take a look at the rails documentation. Select(object, method, choices = nil, options = {}, html_options = {}, &block) public. After your { :prompt => please select} add another hash with html. Forms in web applications are an essential interface for user input.