Displaying 4 results from an estimated 4 matches for "priority_countri".
Did you mean:
priority_countries
2006 Jul 08
10
A rant about parameters
...nil into String|
Turns out, after much heartache, that my problem was I wasn''t passing it
as an array. It *should* have 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...
2006 Dec 10
1
how to add a class to country_select field
<%=country_select ''user'', ''country''%>
I have the above field, how can I add a class to this?
The api says this, if someone could explain how to get to the
html_options bit, without the others, that would be great?
country_select(object, method, priority_countries = nil, options = {},
html_options = {})
--
Posted via http://www.ruby-forum.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 rubyonr...
2007 Dec 06
8
Default value for country_select
...Ui to display the Country names.
But i need United tates to be selected as default value.
I use country_select to populate the country names.
This is how i use <%= f.country_select :country, :selected=>''United
States'' %>
i also tried
<%= f.country_select :country, :priority_countries=>''United States'' %>
Do help me out to fix this..
Thanks in advance
Ratnavel.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: T...
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