similar to: GetText and rjs templates?

Displaying 20 results from an estimated 600 matches similar to: "GetText and rjs templates?"

2007 Aug 19
3
fastcgi issue on production
I just deployed my rails app to my production server. It''s all working locally, but when I switched it over to the production server (at dreamhost) I get this error: # Logfile created on Sun Aug 19 15:22:48 -0700 2007 by logger.rb/ 1.5.2.9 [19/Aug/2007:15:22:48 :: 1841] starting [19/Aug/2007:15:22:48 :: 1841] Dispatcher failed to catch: You have a nil object when you didn''t
2006 Jan 16
1
GetText (change default error messages)
Hi, is it possible to change the default error messages? for example from ... errors prohibited this ... from being saved to something else? thanks, trung -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
4
file_column and animated gifs
hi, is it possible to resize animated gifs with file_column? if i upload an animated gif file with file_column than the animation no longer exists... -- Posted via http://www.ruby-forum.com/.
2010 Jul 05
1
[PATCH] gettext initiation problem Thanks to Thibault Deloffre <tdeloffre@linagora.com>
From: root <root at ovirt.admin.virt.par.lng> Signed-off-by: root <root at ovirt.admin.virt.par.lng> --- src/app/controllers/application_controller.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/app/controllers/application_controller.rb b/src/app/controllers/application_controller.rb index 4c4666e..c7f8431 100644 ---
2006 May 08
4
Gettext not worked in firefox,but done well under IE
Anyone who has met such a kind of problem? I am adding i18n characteristics to my webapp using gettext,it works under IE,while not under firefox. here is my codes: po: po\zh_CN\myapp.po after rake makemo, i have got: locale\zh_CN\LC_MESSAGES\myapp.mo require ''gettext/rails'' class ApplicationController < ActionController::Base init_gettext "myapp" end Then I use
2006 May 08
2
How to set the default language in GetText?
How to set the default language in GetText? The default language of GetText is en,and I want to change it to another language,and also keep the ability to change to any other languages by just click the according href. Currently I use: class ApplicationController < ActionController::Base before_filter :set_charset def set_charset @headers["Content-Type"] = "text/html;
2019 Jul 12
3
RFC: changing variable naming rules in LLVM codebase
Rui Ueyama via llvm-dev <llvm-dev at lists.llvm.org> writes: > - LLVM's `/*foo=*/`-style comment to annotate function arguments need > to be handled automatically to make the tool scalable. So is the > doxygen @parameter. This is a bit of a side note, but in my own work I've more recently tried to move from this style: foo.h int foo(int a, bool doSomething); foo.cpp
2008 Feb 29
1
Optional data argument for a function
Dear All, I am working on a function that has an optional data argument, just like lm(). If the user sets the data argument equal to some dataframe, then the function should look inside the dataframe for the variables given to other arguments, otherwise the variables should be accessible from what I believe is called the parent frame from which the function was called. I looked at the source code
2008 Sep 17
1
Dealing with missing EOL at end of file
Colleagues, I am using R 2.7.2 on all three platforms (OS X; Windows; Linux) and I have encountered the following problem: I use R to issue a system call the execute a command in the OS. For example: system("DOSOMETHING TOSOMEFILE") In most situations, this task completes successfully and control returns to R. However, in rare situations, the target file (TOSOMEFILE) is
2019 Jul 12
2
RFC: changing variable naming rules in LLVM codebase
David Blaikie <dblaikie at gmail.com> writes: > Why would enums be less elegant than named boolean constants as you've shown here? Casting, mainly. If the parameters were also changed to an enum type that would be fine too, probably better than inline variables even. > http://jlebar.com/2011/12/16/Boolean_parameters_to_API_functions_considered_harmful..html > (at a random
2006 Jan 15
15
Gettext and Rails ?
Hello, I''m trying to use ruby-gettext 1.1.1 (installed with gem) with rails and here is all I get : undefined method `init_gettext'' for ApplicationController:Class Here is my source : require ''gettext/rails'' class ApplicationController < ActionController::Base init_gettext "test" end As a Nuby, I don''t really know what to do.
2013 Sep 24
0
[LLVMdev] LLD: Returning true on success
On Tue, Sep 24, 2013 at 12:33 PM, Rui Ueyama <ruiu at google.com> wrote: > Hi LLD developers, > > I'm about to make a change to invert the return value of Driver::parse() > to return true on success. Currently it returns false on success. > > In many other functions, we return true to indicate success and false to > indicate failure. The inconsistency is confusing,
2005 Dec 29
5
Ruby-GetText-Package-1.1.0
Hi, Ruby-GetText-Package-1.1.0 is now available. This release enhances many features for Ruby on Rails. I hope this release make your Application support L10n. And thanks for many helps! Highlights ---------- * Added some functions which managed po/mo files easily. * GetText.update_pofiles creates/updates pot/po files. The idea is from Sascha Ebach. * String% is extended to accept
2019 May 27
1
"if" function in pure R?
Thanks a lot Jiefei, I had thought of defining a binary operator (inspired by pipes) or simply using an additional condition in the if() calls [e.g. if(foo & fn(bar)) doSomeThing; with fn(bar) returning a logical], but both are workaround that I do not find as elegant as a proper control-flow construct. Thus two questions remain: - is it possible to create a control-flow construct in pure R?
2010 Feb 23
12
"no such file to load -- gettext/rails" error
I get the error below when I try to start my server. Here are the versions installed: OS: Windows Server 2008 Ruby: 1.8.7 Gems: actionmailer (2.3.5, 1.3.5) actionpack (2.3.5, 1.13.5) actionwebservice (1.2.5) activerecord (2.3.5, 1.15.5) activeresource (2.3.5) activesupport (2.3.5, 1.4.4) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) gem_plugin
2011 Apr 30
1
Reference Classes: Accessing methods via [[...]], bug?
I've been trying to use methods for reference classes via the notation "[[...]]" (X[["doSomething"]] rather than X$doSomething), but it failed to work. However, I did find that if you use the usual "$" notation first, "[[...]]" can be used afterwards. The following simple example illustrates the point: > setRefClass("Number", + fields =
2013 Sep 24
3
[LLVMdev] LLD: Returning true on success
On Sep 24, 2013, at 12:40 PM, Michael Spencer <bigcheesegs at gmail.com> wrote: > On Tue, Sep 24, 2013 at 12:33 PM, Rui Ueyama <ruiu at google.com> wrote: > Hi LLD developers, > > I'm about to make a change to invert the return value of Driver::parse() to return true on success. Currently it returns false on success. > > In many other functions, we return true
2018 Aug 09
3
WishList: Remove Generic Arguments
I apologize if this issue has been raised before. I really like object oriented S3 programming. However, there's one feature of object oriented S3 programming that I don't like. Generic functions can have arguments other than dots. Lets say you have an R package with something like: print.myfunction (f, ...) { dosomething (f, ...) } Noting that I use function objects a lot. R CMD
2012 Jul 31
3
Access @resouce in custom type
Is it possible to access @resource variables inside a type? I would like to make some decisions on parameters based on other parameters that may have already been set. For example, --- newparam(:param1) do Puppet.debug "Found drivesperarray parameter" desc "parameter 1" validate do |value| if resource[:otherparam] then #dosomething else
2013 Sep 24
2
[LLVMdev] LLD: Returning true on success
On Sep 24, 2013, at 4:07 PM, Sean Silva <chisophugis at gmail.com> wrote: > On Tue, Sep 24, 2013 at 4:17 PM, Nick Kledzik <kledzik at apple.com> wrote: > > On Sep 24, 2013, at 12:40 PM, Michael Spencer <bigcheesegs at gmail.com> wrote: > >> On Tue, Sep 24, 2013 at 12:33 PM, Rui Ueyama <ruiu at google.com> wrote: >> Hi LLD developers, >>