search for: pinkpucker

Displaying 11 results from an estimated 11 matches for "pinkpucker".

2008 Mar 20
5
sharing story steps
Hi, How can I have a common set of steps that all my stories share? i.e. My stories often start out looking like this: Given a user Joe Given a user Jordan then: Given("a user $username") do |username| @users ||= {} @user_sessions ||= {} @users[username] = create_user(:username => username) @user_sessions[username] = login_as(@users[username]) end I want to share that
2006 Feb 01
1
Getting multiple rails apps going on a single domain using lighttpd
If you''re trying to get multiple rails apps going on a single domain using lighttpd (example: http://joevandyk.com/typo_1 and http://joevandyk.com/typo_2), check out http://pinkpucker.net/articles/2006/01/31/getting-multiple-rails-sites-going-on-one-domain-using-lighttpd for a working lighttpd and the change you need to make to config/environment.rb to get it to work. Hope someone finds it useful, Joe
2007 Dec 11
14
Attachment-fu + Story Runner
Hi all, I''m trying to run a Story Runner integration test that uploads a file through Attachment-fu. I''ve tried various ways of specifying the file data, from custom mocks: class MockFile < Struct.new (:original_filename, :read, :content_type); end fdata = MockFile.new "test_upload.txt", "Test Upload", "text/plain" to
2008 Oct 17
4
Error when posting facebook.feed.publishActionOfUser
posting ''facebook.feed.publishActionOfUser'' with {:title=>"<fb:fbml> <fb:name ifcantsee=\"A Hidden User\" linked=\"true\" uid=\"579947937\" /> wrote a <a href=\"http://apps.facebook.com/dailycaption/captions/1273\">caption</a></fb:fbml>",
2009 Nov 18
1
undefined method `register' for Polyglot:Module
Getting this error. I have the treetop, polyglot, and rspec libraries in the load_path (not installed as a gem). Any ideas? What defines the register method? /home/jvandyk/dev/web/wpn_rails/../../rcommon/lib/test/treetop/lib/treetop.rb:16: undefined method `register'' for Polyglot:Module (NoMethodError) from
2006 Feb 20
0
Windows Deployment questions
...;'s a Win32 vs Linux thing. Now to the questions: Question 1: Is Apache not going to cut it? Or is there some other tweaking I can do?) Question 2: I''ve spent half a day getting a rails app to work on Lighttpd under Win32 using http://www.kevinworthington.com:8181/?cat=20 and http://pinkpucker.net/articles/2006/01/31/getting-multiple-rails-sites-g oing-on-one-domain-using-lighttpd but I cannot serve an app.... Fcgi_crash log shows that it starts and terminates immediately. I receive 503: Service Unavailable in the browser I see this in the error log: 2006-02-20 13:09:41:...
2008 May 03
11
Date comparisons
I occasionally get this error: 1) ''A puzzle once featured, should no longer be nominated'' FAILED expected: Sun May 04 09:10:26 -0700 2008, got: Sun May 04 09:10:26 -0700 2008 (using ==) ./spec/models/puzzle_spec.rb:180: So, the dates looks the same to me. Any ideas for how to debug? Joe
2006 Mar 31
1
rails + svn automation script
Anyone got a script to share that: 1. Creates a trunk directory 2. Creates a trunk/vendor directory 3. Adds the above to svn 4. Modifies trunk/vendor to use a certain rails revision (i.e. trunk or 1.1) 5. Runs trunk/vendor/rails/.../bin/rails to generate a rails directory skeleton 6. Modifies the svn:ignore for the logs and config/database.yml 7. Moves config/database.yml to
2005 Oct 17
4
How to send excel file to browser (spreadsheat 0.3.2)
hey, i want to generate an excel file and send it directly to the browser (without storing it to the harddisk). does anyone has any solution? thanks in advance this is my code: -------------------- def export_excel if @request.env[''HTTP_USER_AGENT''] =~ /msie/i @headers[''Pragma''] = '''' @headers[''Cache-Control''] =
2005 Oct 19
35
Why you MUST use SCGI for Rails development
Hello happy Railers, I used to develop with a local out-of-the-box Apache and load times were pretty slow (like a few seconds each page). "Well, it''s the price to pay for no compile / cache / etc..." I thought. Nonsense. Yesterday I installed SCGI, and now I''ve got the best of both worlds: rails development env uses my very latest modifications, while SCGI ensures I
2008 Mar 20
3
cleaning up after stories
do I have to manually clear out the database after a story runs? Seems like the data the story left is still in there. Joe