search for: city_name

Displaying 10 results from an estimated 10 matches for "city_name".

2010 Feb 10
3
How to repeat the names?
Dear R helpers   I have a city.csv file as given below.   'city.csv' city_name1        city_name2 New York City    Buffallo         So I define   city_name = read.csv('city.csv') city1 = city_name$city_name1 city2 = city_name$city_name2   My problem is how do I repeat the names one after other say 10 times i.e. my output should be like   New York City Buffallo New Y...
2006 Apr 13
0
text_field_with_auto_complete and foreign characters
I need a form where the user must enter a city name. I would like to use an autocomplete_field for the city name, so I have the following code in my view: <%= text_field_with_auto_complete ''entry'', ''city_name'', :size => 40 %> and in my controller I have the method: def auto_complete_for_entry_city_name @cities = City.find(:all, :conditions => [ ''LOWER(name) LIKE ?'', params[:entry][:city_name].downcase + ''%''],...
2010 Aug 02
1
Drop down boxes from table data
Hi I have another question for how best to do this. Now I have been following the tutorial at: http://www.tunaslut.com/learning-ruby-drop-down-lists-in-one-to-many-relationships, however when I change the view over from <% @cities.each do |city| %> <tr> <td><%=h city.city_name %></td> <td><%=h city.country_id %></td> to: <% @cities.each do |city| %> <tr> <td><%=h city.city_name %></td> <td><%=h city.country.country_name %></td> The system breaks with the following error NoMethodE...
2006 May 28
3
Validating Foreign Key
...out how to validate a foreign key (you know, make sure the row actually exists.) However, validates_associated doesn''t seem to be what I want to use, nor does it work... -- BEGIN -- class City < ActiveRecord::Base has_many :schools belongs_to :state validates_presence_of :city_name validates_presence_of :state_id validates_associated :state end class State < ActiveRecord::Base has_many :cities validates_presence_of :long_name validates_presence_of :state_code validates_length_of :state_code, :is => 2 validates_uniqueness_of :state_code end -- END...
2018 Jun 01
3
Trust relationship between different domains
...he domain trust again, it that works, this a聽workaround for a windows client problem. If you get the message again, do you have a MS Exchange in one of the domains?聽that migth give theat message also. 聽 And my concerns why this might not work,聽when i look at your domain names: ifrs.edu.br聽聽聽 HQ city_name.ifrs.edu.br聽聽聽 CITY sertao.ifrs.edu.br聽聽聽 Campus 聽 Now, and i might be very wrong here, but if you want to use domain trust between different domains, with what i see now,聽give problem with dns. What is the top level (primary dns) domain of all three mentioned domains. 聽 For the first one its eas...
2018 Jun 04
0
Trust relationship between different domains
...for a windows client problem I do this via RSAT or samba-tool?  If you get the message again, do you have a MS Exchange in one of the domains? that migth give theat message also. I don't have. And my concerns why this might not work, when i look at your domain names: ifrs.edu.br     HQ city_name.ifrs.edu.br    CITY sertao.ifrs.edu.br    Campus   Now, and i might be very wrong here, but if you want to use domain trust between different domains, with what i see now, give problem with dns. What is the top level (primary dns) domain of all three mentioned domains. No, city_name is a example,...
2006 Aug 16
8
Multiple (AJAX) Observers on the Same Field and MSIE
I have been using multiple observers, i.e., observe_field(), on the same input field and relying on them to execute in the same order that they appear in the page. This has been working fine in FireFox, but it does not seem to work in MSIE; the requests come in and are processed in a different order. Now, I''ve always been a little hesitant about using this technique, but it always
2006 Aug 16
0
Multiple observer
...<select id=''city_id'' name=''locality[city_id]''>" @html += "<option value="">Select City</option>" @cities.each do |@city| @html += "<option value=''#{@city.id}''>#{@city.city_name}</option>" end @html += "</select>" render_text @html end def select_locality @localities = Locality.find_all_by_city_id(@params["id"]) @html = "<select id=''locality_id'' name=''home_for_...
2006 Aug 17
0
AJAX - Having Multiple SELECT (Drop Down), and dependency
...<select id=''city_id'' name=''locality[city_id]''>" @html += "<option value="">Select City</option>" @cities.each do |@city| @html += "<option value=''#{@city.id}''>#{@city.city_name}</option>" end @html += "</select>" render_text @html end def select_locality @localities = Locality.find_all_by_city_id(@params["id"]) @html = "<select id=''locality_id'' name=''home_for_...
2013 Apr 02
4
gmaps4rails: undefined method `model_name' for NilClass:Class
Hi All, just in a spot of bother with this gem, I am trying to create a new location and get the above msg. here is my controller: class LocationsController < ApplicationController # GET /locations # GET /locations.json def index @locations = Location.all @json = Location.all.to_gmaps4rails end respond_to do |format| format.html # index.html.erb