similar to: RubyCorner a meeting place for the Ruby and Rails blogging community

Displaying 20 results from an estimated 1000 matches similar to: "RubyCorner a meeting place for the Ruby and Rails blogging community"

2006 Jul 11
4
validates_unlike plugin
Validates Unlike Plugin (v 0.1) ======================== Validates Unlike plugin validates that the value of the specified attribute doesn''t match against the regular expression provided Class Contact < ActiveRecord::Base validates_unlike :comment, :with =>/html|http|onclick|onmouseover/ , :message => "comment can''t include: href,http,onclick,onmouseover."
2006 Dec 24
1
How to get database.yml configuration to use it in a rake taks
Hello, I want to get the production environment configuration from the database.yml in the /shared folder of a deployed rails application. I could use scp to get the file, write it to temporary file, read it and open it with YAML, but is there a better way to do this? Best regards, -- AnĂ­bal Rojas http://www.rubycorner.com http://www.hasmanydevelopers.com
2006 Jul 07
2
Problem with GetText 1.6.0 - undefined method ''N_''
I''m just upgraded GetText from 1.4.0 to 1.6.0, and all my tests got broken. I got this error: ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1129:in `method_missing'': undefined method `N_'' for User:Class (NoMethodError) etc My model user.rb has this line: validates_format_of :login, :with => /^[a-zA-Z0-9_]+$/, :message =>
2006 Apr 11
1
FeedValidator :: validating feeds RSS or ATOM
FeedValidator is an interface to the W3C Feed Validation online service, based on its SOAP 1.2 support. It helps to find errors in RSS or ATOM feeds. FeedValidator add a new assertion (assert_valid_feed) which you can use in Rails applications. This assertion implements a cache to improve the performance of the tests and to not abuse of the W3C Feed Validation online service. = Download The
2007 Aug 31
2
How to spec routes for a resource nested in multiples resources?
Hi, I got the resource "Llamadas" nested in: - Operadores - Productos - Centros Here is part of my routes http://pastie.caboo.se/92767 I want to spec that the routes for Llamadas, I tried several approachs: - route_for(:controller => "llamadas", :action => "exitosas", :operador_id => 1).should == "/operador/1/llamadas;exitosas" -
2006 Feb 07
3
Dinamic controller
Is it possible to make a Rails app respond to a "dinamic" controller? As I understand method_missing can be used inside a controller to respond to nonexisting methods, is it possible to provide a similar behavior at a controller level? I am not sure at whic level would this code be inserted... -- An?bal Rojas http://www.lacaraoscura.com/ anibalrojas@gmail.com
2006 Feb 06
0
Adding a parameter/path to the URL of a invocation to a XML-RPC call
This may sound weird, but we are considering adding a parameter/directory in the URL where a XML-RPC service implemented in ROR is called. We don''t want to modify the method call. Do you think it is possible using, maybe, routes? How would you test it? -- An?bal Rojas http://www.lacaraoscura.com/ anibalrojas@gmail.com
2005 Nov 02
1
Windows, Segmentation Faults, config.load_paths and config.cache_classes
I am doing some testing with the rails trunk, version I switched to because of memory leaks in 0.13.1 under linux environment. Right now the application is running fast and steady under linux, with no memory leaks using SCGI Rails Runner 0.4.3 from Zed, BUT it has become unusable under Windows (our main development environment) where I am getting a lot of segmentation faults. BUT the problem
2005 Nov 15
11
Collecting thread: Too many open files (Rails+SCGI crash)
I have a problem with running Rails 0.13.1 with scgi_rails 0.4.3 and Apache. After running for some time (more than a day), the SCGI process stops with the following error (from scgi.log): -- [ERR][24189] Collecting thread: Too many open files [ERR][24189] /usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:188:in `accept''
2007 May 21
2
logger anybody?
Hello, When trying to use logger into any RSpec I get: logger anyboundefined local variable or method `logger'' for #<#<Class:0x278bee0>:0x253cdec> Not sure if this is the spected behaviour (haven''t checked under the hood) It was just annoying not having a logger instance available as in Rails out of the tests. -- An?bal Rojas http://www.rubycorner.com
2007 May 27
1
annotate_models plugin to annotate RSpec specs and fixture
I have found useful to have the table information associated to models disp?ayed in the models and fixtures files of my rails applications. If you want to add this information to the spec_fixtures and specs add the following patch to your plugin. Index: vendor/plugins/annotate_models/lib/annotate_models.rb =================================================================== ---
2007 Apr 13
1
How can i add multiple callerids to an inbound route?
Hi, I have configured the below things: Extensions Trunk Outbound route Inbound route IVR Ring group If anybody call to my DID number, my IVR is responded. After that, if he press 1, then Ring group will be activated. All are working fine. My Problem: I want to avoid IVR for some phone numbers depends on their called IDs. If my common users will call to my DID
2007 May 29
5
Trouble defining a stub method for a controller
Hello, Not sure if I am doing something really wrong (let''s not say stupid for now), but I haven''t been able to stub a controller method like: controller.stub!(:logged_in?).and_return(true) Please help, this is driving me nuts ;-) -- An?bal Rojas http://www.rubycorner.com http://www.hasmanydevelopers.com
2013 Oct 29
0
iXsystems is looking for a full-time system administrator
Hi! Does the sight of a poorly formatted, though syntactically valid, configuration file make at least one of your eyelids twitch? Have you ever disowned a family member after failing to convince them to back up their systems properly? Have you ever spent an evening compulsively labeling cables in an operational rack? If you answered ?Yes, oh God, yes!!? to at least 2 of the 3 questions above,
2006 Jan 28
1
Switchtower different svn repo urls from my local box and my shared hosting
I got problems running switchtower 0.10.0 when I try to run "rake deploy" from my local box (windows) to my shared hosting If I set the repository to (deploy.rb): set :repository, "file:///home/[my_user]/repo/[my_app]/trunk" My local box (windows) can''t reach the subversion repository located in site5 If I set the repository to: set :repository,
2007 Apr 16
1
Does the smooth terms in GAM have a functional form?
Hi, all, Does anyone know how to get the functional form of the smooth terms in GAM? eg. I fit y=a+b*s(x) where s is the smooth function. After fitting this model with GAM in R, I want to know the form of the s(x). Any suggestion is appreciated. Thanks, Jin --------------------------------- Ahhh...imagining that irresistible "new car" smell?
2007 Apr 26
1
libcrypto.so: undefined reference to `utc_time'
I am trying to cross compile openssh for arm5b-jungo-gnu-gcc,, and also using openssl and zlib from same compiler arm5b-jungo-gnu-gcc but i am getting following error,,, /usr/local/openrg/armv5b-jungo-linux-gnu/bin/armv5b-jungo-linux-gnu-ld: warning: cannot find entry symbol _start; defaulting to 0000b9c8 /usr/local/openrg/armv5b-jungo-linux-gnu/bin/../armv5b-jungo-linux-gnu/lib/libcrypto.so:
2007 Apr 15
1
Use estimated non-parametric model for sensitivity analysis
Dear all, I fitted a non-parametric model using GAM function in R. i.e., gam(y~s(x1)+s(x2)) #where s() is the smooth function Then I obtained the coefficients(a and b) for the non-parametric terms. i.e., y=a*s(x1)+b*s(x2) Now if I want to use this estimated model to do optimization or sensitivity analysis, I am not sure how to incorporate the smooth function since s() may not
2007 Apr 19
5
Polycom IP 501 is displaying wrong time
Hi, This is Chandra. I have Polycom IP 501 phone. Its showing wrong time on the display screen. How can I set the "New York" time? What value I have to give to GMT offset value? Look forward to your response. Thank you. Regards, Chandra. --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos.
2007 Apr 17
3
DomU Kernel Mapping
Where is the code that maps the kernel of a DomU into memory? i.e, when you do a xm create <config file> what code is called to actually map the kernel into memory? Is it a python script or is it re-directed to Dom0 to do? Thanks. -Brian --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos.