similar to: altering a model for multiple tests

Displaying 20 results from an estimated 30000 matches similar to: "altering a model for multiple tests"

2006 Jan 28
1
RailsCron 0.2 questions
Hi all, I''ve set up RailsCron to send email reminders on a daily basis. My dev environment is Rails trunk on Debian Sarge, lighttpd running as a regular user. I''m having two issues: 1) When I run "rake cron_start", I get rake aborted! undefined method `blank?'' for "":String The "blank?" method is provided by Rails, so I''m
2005 Nov 18
10
[Request] file_column configurability
I wasn''t sure where to email this request, so I am hoping the author of file_column actually sees this. I was wondering if there were any plans to allow some configurability in the file_column plugin. By configurability I mean allowing the developer to define which table column is used as the unique identifier when creating image folders. Right now it seems like it uses the ID of the
2005 Dec 23
10
Extending model
Hi, I''m looking for a way to extend one of my models to allow some level of abstraction between what goes into it and how it is stored. For example, say I have a Product and I want to set it''s price. A person using the website will type the price in euros. Internally, I''d like to store the price as an integer value of cents. I can currently do this with some ugly code
2005 Dec 22
11
rforum engine
Here''s a question for those well-versed in rforum or engines -- or both, ideally :) I''ve spent some time today turning RForum into an engine, using rails 1.0, engines trunk, and rforum 0.1 (as rforum trunk didn''t appear to work out of the box). My rforum engine works, but only when I do two things that I found by trial and error: 1) All rforum controllers subclass
2013 Dec 06
0
Regression: drm/nouveau/clk: implement power state and engine clock control in core (7c856522069755ab9d163a24ac332cd3cb35fe30) breaks GeForce 9400 on Intel Mac Mini Model November 2010 model
On Fri, Dec 6, 2013 at 8:30 AM, Thomas Glanzmann <thomas at glanzmann.de> wrote: > Hello Ilia, > >> > [ 7.569394] nouveau [ DEVICE][0000:02:00.0] BOOT0 : 0x0ac080b1 >> > [ 7.569460] nouveau [ DEVICE][0000:02:00.0] Chipset: MCP79/MCP7A (NVAC) >> > [ 7.569530] nouveau [ DEVICE][0000:02:00.0] Family : NV50 >> > [ 7.571151] nouveau [
2006 Feb 12
0
Re: sending personalized emails efficiently
Hi Tom, I noticed this message from you saying that you can use ActionMailer to efficiently do high volume mailing systems. I need to create something that mails out once a day to all my users status updates. But I must admit I don''t see how you can make ActionMailer do all these efficiences you state since it''s API is so limited. Specifically I don''t see how to NOT
2006 Feb 03
6
Rails from the command line
I have controller that processes data in one table and puts results in another. Now that its'' working, I would like to be able to run it from the command line ( read: windows batch file). How can this be done? It will be installed on a Windows box with InstantRails1.0, (if that matters). I will be doing more processes like this, so this is a good opportunity to get it right. -- Best
2005 Dec 15
4
Order of tests matters???
I have a problem with tests. I always thought that the order of tests doesn''t matter because the fixtures are reloaded before every test method. However, I''ve just discovered that this isn''t true. This is a quote from the "Guide to testing the rails" howto: "... if we had another test method, we wouldn’t have 10 users on the 2nd test because they would
2005 Dec 15
6
passing parameters to link_to OR better way to do this?
Hi All: I''m writing my 1st Rails app and I can''t seem to find the answer on the web or in the book. I''m making a table, and I want to be able to expand a filename. The code is basically as as follows below. In the last <td> entry, I want to call an action and pass in the test_results_path, which I will go and read a file and munge the data for a separate
2005 Dec 27
3
What is the best way of setting up the following model:
Hi, I am new to Rails (and Ruby) and for what i have seen sofar i like it a lot! But i can''t figure out what the best sollution would be for the following: Lets say i want to setup a CRM system and i have to sorts of contacts: Customers and Prospects. A part of the info is the same (addresses, company info etc) for both customers an prospects and a part is different. What i would
2013 Dec 06
2
Regression: drm/nouveau/clk: implement power state and engine clock control in core (7c856522069755ab9d163a24ac332cd3cb35fe30) breaks GeForce 9400 on Intel Mac Mini Model November 2010 model
Hello Ilia, > > [ 7.569394] nouveau [ DEVICE][0000:02:00.0] BOOT0 : 0x0ac080b1 > > [ 7.569460] nouveau [ DEVICE][0000:02:00.0] Chipset: MCP79/MCP7A (NVAC) > > [ 7.569530] nouveau [ DEVICE][0000:02:00.0] Family : NV50 > > [ 7.571151] nouveau [ VBIOS][0000:02:00.0] checking PRAMIN for image... > > [ 7.633082] nouveau [ VBIOS][0000:02:00.0]
2006 Jan 31
6
How to Affect Plugin Load Order
I''m using bundled_resource, login_engine, and a few other plugins. It appears Rails considers plugins in alphabetic order. Turns out that there is a particular order that will work and alphabetic ain''t it. The login engine must be loaded first. Bundled resource then includes ''application_helper'' and the application helper includes LoginEngine. If
2006 Feb 04
3
I just can''t figure it out !
Howdy RailsWarriors, Its probably dead easy but I don''t see it. Got this in my controller. def new_computer User.find(params[:id]).computers.create(:comp => ''New Comp:'') end Which with an .rjs template creates a div at the bottom of my list. This all works like a charm. But in the partial I load in my rjs I also have a button for ''delete'' in the
2006 Feb 07
1
Altering the starting URL for webrick
Hi all, With webrick (i.e. "ruby script/server") is there a way to alter the starting URL? In other words, instead of "http://foo.bar.com", I''d like it to start at "http://foo.bar.com/myapp"? And, still be on port 3000? If it''s not possible, that''s fine. Just thought I''d ask. Thanks, Dan
2009 Jun 15
1
altering a global variable
I'm working on a program that loads several large data files. I'm using ddply (plyr is really awesome) but I want to minimize the amount of times a large data file is read in. One solution is to keep track of which data file is open with a global variable and then change the currently open data file globally as needed. However, I'm unclear on how to alter a global variable
2017 Feb 07
2
package load altering RNG state
Hello When loading a package, I'm wondering if it's frowned upon for the package to alter the state of the random number generator? I guess not, since the parallel package does it? > set.seed(6860) > old.seed <- .GlobalEnv$.Random.seed > library(parallel) > new.seed <- .GlobalEnv$.Random.seed > identical(old.seed, new.seed) [1] FALSE I ask
2008 Sep 24
2
[LLVMdev] Memory Altering/Accessing Instructions
Hi all, Would it be correct to say that the only instructions in LLVM IR that modify/access memory potentially are the following: (1) LoadInst : Ref (2) StoreInst : Mod (3) VAArgInst : Ref (?) (4) AllocaInst : Mod (5) MallocInst : Mod (6) FreeInst : Mod (7) CallInst : Mod/Ref ? Also, my earlier impression was that the GEP instruction only computes the effective address and does not
2008 Sep 24
0
[LLVMdev] Memory Altering/Accessing Instructions
Prakash Prabhu wrote: > Hi all, > > Would it be correct to say that the only instructions in LLVM IR that > modify/access memory potentially are the following: > I believe that every instruction has a mayWriteToMemory()/mayReadToMemory() method that you can use to determine this information. See http://llvm.org/doxygen/classllvm_1_1Instruction.html (the LLVM doxygen info on
2007 Mar 12
2
altering prefix to multiple variables in different locations within a command file
Hello, I am seeking advice regarding how I might add the prefix " kc$ " to variables in a series of commands. The complication is that there is a large number of variables with different commands. Examples of the variables in typical commands follow. It is simple to use search & replace for common variables such as "group" but I would appreciate advice about whether
2006 Mar 19
0
Trouble redefining ActiveRecord default error messages
Hello, I''m redefining ActiveRecord::Errors.default_error_messages in order to translate ActiveRecord''s validation messages. I''m putting the redefinition in config/environment.rb. The trouble is that I''ve found that this approach works as long as I''m running in development mode under WEBrick, but not on my ISP under production mode. I guess the