similar to: Globalize & caching

Displaying 20 results from an estimated 4000 matches similar to: "Globalize & caching"

2006 Jun 05
0
Failed to install Globalize plugin
My envrionment is Rails 1.1.2, Ruby 1.8.4, 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
2006 Feb 17
4
Need Help with Globalize Plugin
Hi everyone, I''ve been playing around with the Globalize plugin for some days now but I can''t seem to make it work properly with my models. I''m currently using Postgres 8.0 for the database and needed to make some modifications with my migration file that was posted by Jake Morrison in the Globalize wiki...
2006 Apr 13
0
Globalize not with Rails 1.1.2
Does anybody have the latest Globalize (r184) working with Rails 1.1.2? I can''t seem to get a very simple example to work: ----- ruby test/unit/news_item_test.rb Loaded suite test/unit/news_item_test Started F. Finished in 0.10109 seconds. 1) Failure: test_add_content_translations(NewsItemTest) [test/unit/news_item_test.rb:49]: <"US Title"> expected but was
2006 Feb 26
3
Fast inserts?
There are cases when I have to create the same record 100 times. Is there a faster way than: 100.times{Obj.create(@params[:obj])} ? Bogdan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060226/75d1e099/attachment.html
2005 Sep 10
4
has_too_many
Assuming you have Person that has_many :messages, what will it happen if it has 10000 messages? Will rails attempt to initialize @person.messages with 10000 rows from database? If that is the case, is combining finder_sql and counter_sql the common practice to avoid this? Bogdan _______________________________________________ Rails mailing list
2006 Jan 08
4
Finding memory leaks?
Where are the memory leaks and what is the way to fix them? I''m working on a game that was fairly stable in terms the memory consumption and it was staying at around 200MB. Recently it has gone crazy, and unless I restart it, it goes straight up to 350-400+MB after 30 minutes-1hour. I am using Apache 1.3+fcgi in production mode. Also the dispatch.fcgi processes take a really high toll
2006 Jan 31
3
Random 502 Bad Gateway
I have moved my project to a dedicated server and I am getting a very annoying behaviour. I am able to view the site just fine when using the ip. The name is properly resolved on my computer, however I am getting "Bad Gateway The proxy server received an invalid response from an upstream server." This is simply random. The site works for several minutes, then i get this message for some
2006 Jan 21
1
db access or @session?
Does it make sense to use the @session to store some values instead of accessing the db on each request? I am trying to optimize the most accessed area, a page that every visitor would access hundreds of times daily. Thanks, Bogdan -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jan 09
0
need palette of topographic colors similar to topo.colors ()
I will second Roger's suggestion, colorRampPalette is a great function for creating your own palettes. For example, Matlab's jet palette (also available in fields package under peculiar name 'tim.colors') can be defined by: jet.colors = colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan", "#7FFF7F", "yellow",
2006 May 08
0
Globalize howto
Anybody who can help with a step by step howto in using globalize... I followed this example: http://globalize-rails.org/wiki/pages/example First I''ve created the database for use in my application: CREATE TABLE `products` ( `id` bigint(20) unsigned NOT NULL auto_increment, `name` varchar(12) NOT NULL default '''', `type`
2007 Feb 08
0
trying to install GLOBALIZE
I''m having problems installing the Globalize plugin (http://www.globalize-rails.org/globalize/) When I write this: D:\Rails\myapp>ruby script/plugin install svn://svn.globalize-rails.org/globalize/branches/for-1.1 nothing is reported and there is nothing installed in vendor/plugins trying to use D:\Rails\myapp>ruby script/plugin install
2006 Feb 06
2
Globalize plugin, now I have two classes with the same name
Hi, newbie here. I''m using the Globalize plugin, which defines a model with the same name as one of my existing models. We both use a model called Country. The Globalize Country model (within vendors/...) is wrapped in module like this... module Globalize class Country < ActiveRecord::Base ... end end And this is my Country model (within app/models)... class Country <
2006 Jul 26
0
How to Globalize using variants of templates?
Hi, We have a web application running on Ruby on Rails 1.0, with all RHTML files stored in the standard app/views/controller directories. The static content, messages, etc. in all the templates are in US English. We hope to release the website in other languages. We are considering the use of the Globalize plugin from http://svn.globalize-rails.org/svn/globalize/globalize/trunk/ The layout of the
2006 Feb 05
0
[GLOBALIZE] Trouble getting example on wiki working
Hi, I decided to integrate globalize into my app yesterday but I''ve run into trouble. I originally decided to try a db translation on one of my models so I followed the wiki example and modified where appropriate. When I tried to create an empty Album via the console I get the following error: http://www.rafb.net/paste/results/opZ13I27.html I tried to investigate and from what I
2007 Jan 17
1
Get "Uninitialized constant" with Globalize
Hey there :) Wondering what''s up with this... I just installed the Globalize plug-in in my current project, ran the rake globalize:setup script, then added "include Globalize" to my config/environment.rb. Now, when I try to start my server, I get: => Booting Mongrel (use ''script/server webrick'' to force WEBrick) => Rails application starting on
2006 Mar 30
1
Globalize DB translate not working in Rails 1.1.0
It seems there have been some changes to ActiveRecord between Rails 1.1.0 RC and 1.10 Final that cause Globalize to fail; 1.10 RC was working fine. When retrieving records from the DB only the base language version is fetched, even when the locale has been set differently. The SQL in the log confirms that Globalize is ignored and a regular find() is performed.
2006 May 03
1
Globalize app example anywhere?
Hi! Is there anywhere tutorial how to create working application using globalize plugin? I need to create a site in 3 different languages and i was suggested to use globalize plugin. I''ve read a bit on globalize wiki page and pdf from the presentation available on the same page, but i still can''t figure out how to use it. 1. Can i translate names of models and columns
2008 May 31
2
Exec format error during globalize plugin install
While trying to install the globalize plugin (website down? -- http://www.globalize-rails.org/globalize/) for Rails, all the files seem to be transferred and placed properly, but I get the following error when install.rb attempts to run: Exec format error - rake -f C:/clients/MyClient/code/vendor/plugins/ globalize/../../../Rakefile globalize:upgrade_schema_to_1_dot_2 && exit 1 I see
2006 Nov 04
0
Globalize: how to set a space in thousands_sep
Hi So far Globalize works perfectly for me with rails 1.1.6 However, when I wanted to set a space as the thousand separator, here is what I did : I set " " (double quote, space, double quote) in the thousands_sep field, for the corresponding country, in the file vendor/plugin/globalize/data/country_data.csv , and then "rake globalize:setup" as usual. The result is not what
2006 Apr 01
0
Using globalize and Net::HTTP.get
Today we did some cool stuff with globalize (the library) and Net::HTTP.get. I thought it was pretty awesome, but most people I talked to really didn''t think so, so I''ve come here to share my excitement on this list w/ ppl who''d understand :P Anyways, we took globalize and extended it so that websites were translated on the fly by Google Translate / Babelfish type