Displaying 5 results from an estimated 5 matches for "globalize_countries".
2006 Jun 05
0
Failed to install Globalize plugin
...MySQL 5.0.21 on WinXP. When I
run ''rake migrate'' after pulling the lastest 1.1 branch of Globalize
plugin, I get the following error message:
(in C:/Rails/Application/medicalmind)
== GlobalizeMigration: migrating
==============================================
-- create_table(:globalize_countries, {:force=>true})
-> 0.2110s
-- add_index(:globalize_countries, :code)
-> 0.3000s
-- create_table(:globalize_translations, {:force=>true})
-> 0.1600s
-- add_index(:globalize_translations, [:tr_key, :language_id])
-> 0.2310s
-- add_index(:globalize_translations, [:table_...
2006 Feb 06
2
Globalize plugin, now I have two classes with the same name
...y model (within app/models)...
class Country < ActiveRecord::Base
has_many :addresses
...
end
I''m not sure how to deal with this situation. My country table has a
couple of fields that are unique, so I want to keep this information
in the database (whether it be combined with the globalize_countries
table, or maintained in a separate countries table). Also, I want to
define my own class/instance methods etc and obviously I want to put
these in my own model, completely separate from the Globalize plugin.
But currently Country.find is invoking the Globalize Country class
rather than my own.
C...
2007 Aug 07
4
Execute additional commands after creating database?
...:schema:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
rake aborted!
PGError: ERROR: schema "rails" does not exist
: CREATE TABLE rails.globalize_countries ("id" serial primary key,
"code" character varying(2) DEFAULT NULL, "english_name" character
varying(255) DEFAULT NULL, "date_format" character varying(255)
DEFAULT NULL, "currency_format" character varying(255) DEFAULT NULL,
"currency_code&quo...
2006 Apr 13
0
Globalize not with Rails 1.1.2
...lures, 0 errors
-----
news_item_test.rb based on
http://wiki.globalize-rails.org/wiki/pages/example
-----
require File.dirname(__FILE__) + ''/../test_helper''
class NewsItemTest < Test::Unit::TestCase
# Uncomment the following line if the test/fixtures are used
# fixtures :globalize_countries, :globalize_languages,
:globalize_translations
def test_add_content_translations
NewsItem.delete_all
Globalize::Locale.set_base_language(''en-US'')
# create a row in the base language
Globalize::Locale.set(''en-US'')
assert_nothing_raised()...
2006 Jan 18
15
Anyone got Globalize working???
Hi all
In another thread I complain about an error I get after trying to get
Globalize working.
http://www.ruby-forum.com/topic/51988#new
Now I want to ask you, if anybody of you has ever got Globalize working?
I have done exactly what''s written in the (absolutely much too short)
tutorial of its wiki...
http://globalize.diluvia.net/wiki
...and I''m very frustrated that no