Displaying 12 results from an estimated 12 matches for "country_codes".
Did you mean:
country_code
2007 Jul 11
4
Query scoring - WTF?
Hi!
I thought I understood Ferret''s query scoring and how to tweak
results using boost values. What I currently experience however,
leaves me completely baffled.
Perhaps someone can shed some light on the scoring algorithm, because
asking Ferret to "explain" the score for a particular document isn''t
as informative as I thought. Actually, it confuses me even
2009 May 25
1
Help --- My phone number field saves blank
I have a phone field in my table.
But in my form i have two text boxes to get the phone number and the
country code like below
Enter country code ----- Enter phone code ------
In my table i have to save the phone code field after joining the above
values with "-" symbol.
Example => 0225-25874255
I dont have table field for country_code .
So i created like below
attr_accessor
2008 Mar 01
2
How to cache data in a plugin
...so it won''t have to be recreated
every time the page is loaded.
The problem is that the plugin initializes its main @countries
variable in init.rb file by calling method
CountryCodes.load_countries_from_yaml.
Is there an easier way to cache this data than doing something like
this:
lib/country_codes.rb
module CountryCodes
...
def self.cache_countries_for_select
@cached_countries_for_select = countries_for_select(''name'',
''a2'').sort.freeze
end
def self.cached_countries_for_select
@cached_countries_for_select
end
...
end
init.rb
require ...
2004 Mar 11
5
win32-etc-0.2.2 testing wanted
I''ve commited code for win32-etc 0.2.2, which adds the configure_user and
configure_group methods. Testing appreciated. On my home system, I can''t
get configure_user to work, but I haven''t any real idea why it fails. The
configure_group method seems to work fine, however.
Dan
_________________________________________________________________
Fast. Reliable. Get
2012 Aug 17
3
Rails doesn't validate create_model or build_model (has_one association)
I''ve got User has_one Shop. Rails is not validating when I tried
create_shop or build_shop, neither in the browser nor the rails console.
My code:
class Shop < ActiveRecord::Base
attr_protected :user_id
belongs_to :user
validates_presence_of :name, :primary_address, :city, :country_code,
:currency
end
class ShopsController < ApplicationController
before_filter
2012 Nov 18
2
Question about making histogram and x must be numeric
Hello all,
I hope someone of you can help me out, I have searched other posts as well
but I can't find any solution to the problem I'm dealing with.
I want to make a histogram from the data Telephone Lines
MDGdataset <-read.csv("MDG_dataset_2010.csv", header=T)
MDGdatasetAdapted <- subset(MDGdataset, select = c(Country_Code,
Country_Name, Year,
2008 Mar 19
2
Stub / Mock - A little guidance?
Hi there,
I''m still trying to wrap my head around when to use a stub and a mock.
If I understand this right, I should be using a ''mock'' when imitating
an object, but not its behavior. I should be using a stub when I want
to imitate the behavior of an object. Does that sound about right?
With that said, I''m struggling a little trying to spec out this
instance
2006 Feb 04
4
AJAX rendered select doesn''t get submitted
I have implemented the AJAX observe_field to filter the state/province options
in my address form. This works great except when I submit the form, @params
doesn''t contain the select element.
_address_form.rhtml relevant snippet:
<%= collection_select(:address, "country", Country.find(:all, :order =>
"position"), :code, :name, {:prompt => "-- Select
2006 Aug 10
5
RJS in Internet Explorer to update a list box
Hi,
I''m trying some RJS to update a series of list boxes in which the user
selects a state, and the following list gets updated with a list of
counties, and the same for the next list of areas.
My code works perfectly (albeit a bit slow) on Firefox, but on Internet
Explorer it clears the list box (instead of filling it) and Netscape
shows all the counties cramped together on one
2005 Dec 08
0
#3136 - Country codes in country_select
...#39;t modify
default behaviour, and the test suite has been updated.
I''ve seen a few people trying to figure out how to do this, and after
running into the need for it on three separate apps I just went ahead
and made the patch for it... Got sick of carting around a big array of
countries/country_codes from app to app.
Also, should things like this be posted to this list, or just left in
trac? I''ve noticed the ticket has already been seen/updated, so perhaps
a notification to the list is not necessary for such minor patches.
Thoughts?
2004 Mar 06
2
citrix stores addition information into SAM on pdc
hi,
we want to replace our nt4 pdc/bdc with samba and we use windows nt4 terminal servers with citrix in our environment.
as far as i know, we will get a problem here. (extensiver reading of the mailing list led me to this conclusion)
regarding: http://ma.ph-freiburg.de/tng/tng-users/2001-05/msg00224.html
>Terminal Server has its own User Manager (which has an extra button -
2009 May 27
9
Contingent Select Boxes - 2 Q's
I have a form with contingent select boxes (the state is contingent on
the country selected, so when the country selected changes, the state
changes -- I am using the Carmen plugin for getting my state names and
country names together, but not the functionality I am interested in
achieving).
Everything works fine except I cannot figure out how to amend my code
such that:
A. When the form is first