Displaying 3 results from an estimated 3 matches for "country_options_for_select".
2006 Jul 08
10
A rant about parameters
...been
<%= f.country_select :country_region, ["United States"] %></p>
Now, looking at the api docs, it says:
----
*country_select*(object, method, priority_countries = nil, options = {},
html_options = {})
Return select and option tags for the given object and method, using
country_options_for_select
<http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000406>
to generate the list of option tags.
----
How was I to know it should have been an array? Had I not been so tired,
I would''ve probably infrerred it from the parameter''s pluralization....
2006 Aug 09
3
select with country names
Hi,
I need to create a list of coutries in a driop down.
I''m aware of a function ''country_options_for_select'' however this jsut
seems to output a string of all countires.
How can I get this list in a drop down?
Thanks
scott
--
Posted via http://www.ruby-forum.com/.
2005 Dec 07
4
Importing data for excel file or csv file
hey,
i have this website (with ajax also) with lot of records of employee, and as an
extra feature i want that the customer can import his employeelist (perhaps 100+
records), lot of work to do this manually.
i would create a template like this
Firstname Lastname Phone
xxxx xxxxx xxxxx
yyyy yyyyy yyyyy
then they upload the excel file or save it as csv file