1
vote
1answer
93 views

How can I get a ruby on rails select dropdown to automatically contain the proper information?

I have an object called a device that is associated with a customer. Once the customer orders a device, then the factory assigns the device to the customer, and the customer registers the device, and ...
0
votes
1answer
148 views

Showing multiple attributes for Rails drop down menu

I'm working my edit view and trying to implement a drop down box which shows multiple attributes from a model. I have an equipment model which includes an item description and an item serial number. ...
0
votes
1answer
107 views

Form_for select field, concatenating data into the display string

I am trying to use a form_for collection_select to display some select field options of account types. Its occurred to me that it would be easier for the user if they could see the price of the type ...
1
vote
0answers
116 views

Rails support for HTML multiple select

I have 2 models: class Game < ActiveRecord::Base attr_accessible :name has_and_belongs_to_many :categories end class Category < ActiveRecord::Base attr_accessible :name ...
0
votes
1answer
126 views

Rails: Specifying the sort order in the select form helper

I'm using the Rails select() form helper to generate a <select> structure. The following line works, but results in an unsorted list. How would I change the sort order to ascending alphabetical? ...
1
vote
1answer
190 views

Storing a multiple select in a database for a rails application

I have a model for "Location" which has a title, description, and type. The type can be a "Bar", "Restaurant", etc. I want to have a select box in my view with the various options with multiple ...
0
votes
1answer
532 views

How to create dropdown menu for the following code in Rails 3?

Consider an HTML list of links: <a href="/d_population/1">User 1 name link</a><br> <a href="/d_population/2">User 2 name link</a><br> This code generates ...
0
votes
3answers
1k views

HTML select tag allowing you to access Rails variable

<p class="acp3"> <label>Status</label> <select> <% if <option>Active</option> %> <%= account["status"] == "Active" %> <% elsif ...
1
vote
1answer
1k views

Problems re-populating select options in Rails when form returned with errors

I have a form with 2 select options in it -- frequency and duration. When there are errors with the form, and it is returned to the browser, the select options are not re-populated with the selections ...
1
vote
4answers
4k views

Fill select dropdown based on selected item

I'm working on a rails app. I have a dropdown with countries. Selecting a country would fill the city dropdown with the cities in that country. I know how to do this server-side, but I'd like to do ...