search for: turnipspatch

Displaying 8 results from an estimated 8 matches for "turnipspatch".

2006 Jan 29
11
HTML Output plugin
I have written a very small Rails plugin which makes it spit HTML back at you instead of XHTML. Find details here: http://dev.turnipspatch.com/trac/wiki/HTMLOutput Hope it''s useful to someone! Jon -- Posted via http://www.ruby-forum.com/.
2006 Jul 26
1
file upload in an integration test
What is the best way to test a file upload as part of an integration test? Thanks, Justin -- Posted via http://www.ruby-forum.com/.
2005 Dec 28
0
Testing class variables
...this, I realised that in a unit test, class variables do not get "reloaded" between tests like everything else. Is there any way to make them "reload" (I would have though given the nature of tests that would be the default behaviour). Many Thanks -- Jonathan Leighton http://turnipspatch.com/ | http://jonathanleighton.com/ | http://digital-proof.org/
2007 Jan 19
2
Rails Deploy Files - Remove?
So, now that we''re using Mongrel and not the horrid FCGI, do I really need these files in my Rails apps: dispatch.fcgi dispatch.cgi .htaccess ?? The .htaccess file has rules for rewriting that look FCGI based. For Mongrel, I do my Apache re-writing in my config file, right? is there a reason to include these files at this point? Hunter
2006 Dec 21
6
Rails'' send_file, Mongrel, and *gasp* memory
...try under lighttpd and still had the problem, any idea why? I''m really just looking to understand the issue better as I hate to walk away from a problem without fully comprehending it :) Thanks, -- Jonathan Leighton, Web Developer Portfolio: http://jonathanleighton.com/ Personal: http://turnipspatch.com/
2006 Dec 25
15
What I Want For Christmas
Calling All Mongrel Minions! I wanna have some fun and would like this as a Christmas present. The site http://www.workingwithrails.com/ has this lame popularity system that''s kind of irking some of the main Ruby contributors. I think it''s kind of funny, but would like to demonstrate what an army of motivated people can do to these kinds of popularity contests. So, as a
2006 Mar 26
0
Association count caching
Hi all, 5.times { foo.association } will produce 1 query to the DB; the result is "cached" (for want of a better word) in a variable somewhere. However: 5.times { foo.association.count } will run the query 5 times. Why? I could use an association extension to cache the count value for me, but first I want to understand whether this is a bad idea and has been deliberately avoided?
2006 Jan 02
3
Altering the accessor of an association collection
I want to be able to do something like this (for example): class Person < ActiveRecord::Base has_many :friends def friends(living_in = :uk) # filter based on parameters here end end Is there any way I can redefine the accessor for an association whilst still being able to get the values? Basically, I''m looking for an equivilent of read_attribute() for associations. --