Displaying 20 results from an estimated 1000 matches similar to: "country state city drop down list rails"
2009 Mar 22
3
I need a country, state, city database
I need a country, state, city database for a web application.
Anyone have a free version they can email (or drop.io) for me?
Looking for something like this at $197 but may as well ask in case you
know of a free source.
http://www.globixdata.com/pop.cfm?db=world&v1=l&v2=s&v3=a&pricing=99
Regards,
Dean Collins
Cognation Inc
dean at cognation.net
2010 Jan 18
3
validates_format_of :phone,
validates_format_of :phone,
:with => /\A\s*(?:(?:\+?(?:\d{1,3}(?:\s*|[\-.])))?\(?\d{3}[\-\/)]?\s*)
(?:[2-9][0-9 \-.]{6,})\s*\z/,
i pit it on my reuriments but error whlie entering
666.111.9999
i want it should be ok
any one help me please
--
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
2010 Sep 04
3
its easy but i forgot all
my models
borrower ----- has_many :loans
loan ----- belongs_to :borrower
my loans _controller
def new
@borrower = Borrower.find(params[:borrower_id])
logger.debug '' @borrower.id''
logger.debug @borrower.id
@loan = Loan.new
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @loan }
end
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/.
2011 Jan 06
1
Invalid argument - https://graph.facebook.com/19292868552
require ''rubygems''
require ''hpricot''
require ''open-uri''
doc = Hpricot(open("http://graph.facebook.com/226723089703"))
@doc = doc.to_s.gsub(/"id.+?likes":/,"").gsub("{","").gsub("}","")
puts @doc
OR
require ''rubygems''
2007 Dec 06
8
Default value for country_select
Using Country_select how to have default valur set to United States.
I have a select drop down in my 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,
2008 Aug 25
4
ViaMichelin Maps Support
Hi, I''m Adriano from Rome, Italy.
I would like to know if is there in project any support for the ViaMichelin
API''s.
Thank you
Regards
Adriano Massi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20080825/6eb6dfe1/attachment.htm>
2008 Mar 14
1
how do i get country_select and select to show values
Hi i am a newbee at rails and i am using the country_select and select
drop down boxes in my new.rhtml I can make these work fine but when i
try viewing it in my database and show and index they just wont appear,
I have tried to edited it to how do I go about showing these items
everywhere i am completely stuck.
if text field = f.text_field
then why doesnt country_select = f.country_select or
2000 Apr 13
6
Connection refused
Hi,
Here is my situation : I have installed Samba 2.0.6 on my computer, which is
running with Linux RedHat 6.0.
When somebody tries to connect to this server, he's got a 'refused
connection' message after he tried to my_IP@:139.
I don't think the smb.conf is responsible because we have tried with the
basic one, and it doesn't change anything.
As I'm fresh in Linux (and
2009 Dec 14
1
lapply , mapply questions
Dear all,
i have a programming problem that should be simple, though i am stuck with it. Please note that this is not a specific geonames problem, though i use it as an example - it´s just a basic problem with lapply.
I use the geonames webservices with the R geonames packages which works almost smoothly.
I have a vector of Zipcodes and i want to do a geonames lookup for all of them, which
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/.
2009 Jan 03
1
Not working country_select in Rails 2.2.2
country_select not working in Rails 2.2.2
How to fix it''
<%= country_select(:employee, :national, ["United States", "Russian
Federation"], {}) %>
--
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
2006 Jul 08
10
A rant about parameters
Guys,
I''ve been chasing a problem with country_select for the past few hours
now. My intention was pretty simple...use the following line in a form:
<p><label for="country_region">Country</label>
<%= f.country_select :country_region, "United States" %></p>
However, for the life of me, I couldn''t get it to work. I kept getting
2009 Aug 02
1
package to convert coordiantes to timezone
Is there a R-package with a function that returns me the timezone, if
I hand over longitude and latitude?
I know online services like
http://ws.geonames.org/timezone?lat=-38.01&lng=147 and
http://www.earthtools.org/webservices.htm#timezone and wodner if this
exists for R too.
Thanks for helping,
thomas
2005 Dec 02
4
Formating output.
2005 Jun 12
1
Overwritting Countries Constant
Is there anyway to overwrite the COUNTRIES constant that is being
used by country_select?
Thanks :-)
2005 Dec 08
0
#3136 - Country codes in country_select
http://dev.rubyonrails.org/ticket/3136
Simple patch, but in following with others I figured I''d post a quick
email to this list.
All this does is adds functionality of country_select to allow people to
build country select boxes that use country codes. It doesn''t modify
default behaviour, and the test suite has been updated.
I''ve seen a few people trying to figure out
2006 Jun 16
3
us_states plugin
Hello,
I am trying to figure out how to use the options available with the
us_states plugin. What is the proper syntax for using the :priority
and :with_abbreviation options?
Thanks,
jeremy
2006 Sep 01
2
Include ActiveResource
Hello,
I want to give ActiveResource a spin.
I have all the code checked out from SVN in vendor/rails (yes, including
ActiveResource).
I''m trying to make sure it gets loaded.
I did this in environment.rb:
config.load_paths += %W( #{RAILS_ROOT}/vendor/rails/activeresource/lib )
Unfortunately I still can''t use it. I have an ActiveResource derived model,
Address:
class
2005 Dec 15
1
User defined tick-n probe.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="+1">Hi, <br>
<br>
Is there a way to make