similar to: Globalize DB translate not working in Rails 1.1.0

Displaying 20 results from an estimated 800 matches similar to: "Globalize DB translate not working in Rails 1.1.0"

2006 Mar 01
1
break in a each function
i have a method , and i only want the first 10 feeds to be put in the database , why doesn''t this control structure works , when the counter is 10 it has to jump out the iteration greetz Klaas def get_feed2(rssfile) # Open the RSS file rssfeed = open(rssfile.url) # Use the built-in REXML module # Read the entire RSS file into memory rssdoc =
2011 Jan 23
1
Trouble installing SWAT on a Samba 4 Alpha 13 build on Ubuntu Server
Hello all, I have setup a complete domain using Samba 4 on my Ubuntu server 32 bit machine. I am using the Alpha 13 build (it was actually in the Ubuntu Repos). I am trying to setup swat to make it easier to manage shares. I have followed the instructions at https://github.com/rvelhote/GSoC-SWAT but I am having a few problems. When I run ./run I get the following errors: jenfab at
2011 Jan 24
1
Trouble installing SWAT on a Samba 4 Alpha 13 buildonUbuntu Server
> > > But when I click apply, the jenfab\finance group dissappears from the > list and the changes never save. What OS are you using? If Linux then make sure share file system is xattrs capable and enable it in /etc/fstab (I believe). If not you can use: posix:eadb = /usr/local/samba/private/eadb.tdb in global. This does NOT scale well. > > > > I have tried giving
2011 Jan 24
4
Trouble installing SWAT on a Samba 4 Alpha 13 build onUbuntu Server
> > I am not sure how to use Microsoft AD tools to create shares and then > set > those shares permissable to certain AD groups. For example, I need to > create > a share called "Finance" and only the people in Finance can read/write > to > it. I was hoping to use SWAT to help in creation and management of > those > shares. vi smb.conf (or your favorite
2005 Dec 07
3
ActiveRecord::Observer problem
Hi all, I have a problem with an observer. I have a simple observer... class ActivityObserver < ActiveRecord::Observer observe Customer def after_create(model) bind_params(model) @al.action = "create" @al.save logger "#{model.id} : created" end private def bind_params(model) @al = ActivityLog.new @al.user_id = User.current.id
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
2020 Jun 05
2
Extended attributes not working on mac
these lines were an option before but have already been marked as comments in my config. same behaviour as before, color tag shows for round about a second and disappears suddenly. Martin > Am 05.06.2020 um 09:23 schrieb Ralph Boehme via samba <samba at lists.samba.org>: > > Am 6/5/20 um 8:33 AM schrieb Martin Steiner / 3MF GmbH: >> Any more ideas? It?s not displaying
2012 Aug 17
1
RGDAL OGRwrite question
I have a quick question: It appears that in rgdal v0.7-12 (R version 2.15.1, OSX 10.6.8) writeOGR will not write a shapefile the the current directory. Is this correct? An earlier version of rgdal must have allowed this because I have a older script that used to work, but doesn't now. So, as an example, here is what I get today: > shape = readOGR('.',
2006 Mar 13
3
Translate to one language: Globalize is overkill?
Hi, I am developing a Rails application which should be in ONE language (not English). Globalize seems overkill for this purpose (do you agree?). So I''m trying some of the approaches on the wiki. In particular: http://wiki.rubyonrails.org/rails/pages/OverridingRailsMessagesInAnotherLanguage This *does* override the month names, but does *not* override the error messages. I''m
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
My linux Ruby application is using Ferret 0.11.4. I created my own class IndexSearcher to contain the Searcher of multiple directories. If I do not have the searcher.close called, the end of runner/console or runner/server will pop out with system error: *** glibc detected *** irb: double free or corruption (fasttop): 0x0a51d6c0 *** ======= Backtrace: ========= /lib/libc.so.6[0x638ac1]
2009 Aug 12
1
calling a function with dynamically generated buttons
Hallo, I'm dynamically generating buttons depending on the number of rows of my dataframe. Every button is supposed to call a function which generates a plot with the values of one of my dataframe rows. My code looks like this: base <- tktoplevel() plotten <- function(mat, namen, titel) { midpts <- barplot(height=mat, names.arg = namen, main = titel, las=2)
2007 Dec 28
4
Return Value of TCl/Tk window in R
Hello, I have the TCl/Tk command "tkmessageBox(titel="",message="x",icon="question",type="okcancel")" in my R script. Now I want to perform some operation in relation to the user's choice, something like "if (okpressed) xxx else yyy" What values does this command give and how are they used? Thank you, Richard -- Richard M?ller -
2007 May 28
0
[ wxruby-Bugs-11183 ] GLib errors cause crash
Bugs item #11183, was opened at 2007-05-28 10:28 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=11183&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Patrick McDonnell (kc9ddi) Assigned to: Kevin Smith (qualitycode) Summary: GLib errors cause crash Initial Comment: Hi - I''m
2006 Nov 02
0
DB: class to multiple rows mapping (aka rails 'osproperty')
Hi, Has anyone implemented some sort of automatic class to dynamic table mapping ? The idea is to have a single table capable of storing various unrelated classes. Some sort of Extreme polymorphism. I''ve used this with other languages. E.g. osproperty in Java. The idea is the following In the DB create table dynamicobjects ( id int, object_type varchar(255), key_name
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 <
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 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
2006 Jan 23
7
Globalize - Wiki down, docs down, status?
Hi, Currently the wiki entry for Globalize http://wiki.rubyonrails.org/rails/pages/Globalize+Plugin http://globalize.diluvia.net is down, -- Posted via http://www.ruby-forum.com/.
2013 Apr 25
2
Loop for main title in a plot
Hi all, I have a problem in including my plot in a loop. Here is a simple example for one plot: # Plot simple graph with super- and subscript a<-c(1,2,3,4) b<-c(1,2,3,4) plot(x=a,y=b, ylab=expression(paste("Apple"["P"])), xlab=expression(paste("Banana"^"th")),
2006 Feb 11
1
problem with globalize
Hi, Somehow the date translation example in globalize doesn''t work for me. Loading development environment. >> Locale.set("es-ES") => #<Globalize::Locale:0x254df78 @code="es-ES", @language=nil, @country=nil> >> Time.now.localize("%d %B %Y") => "11 February 2006" >> Any ideas?? Thanks! Jeroen