similar to: Dispatch error on textdrive

Displaying 20 results from an estimated 900 matches similar to: "Dispatch error on textdrive"

2006 Aug 25
1
Time based fragment caching plugin
I''ve written a plugin to allow for time based fragment caching. It lets you do things like: <% cache ''fragment_name'', 10.minutes.from_now do %> <p>something intensive which will be cached for 10 minutes</p> <% end %> Also, there''s a convenience method so that in your controllers you can do: when_fragment_expired
2006 Jul 22
1
browser_detect plugin
I just knocked up a quick plugin based on Rafael Lima?s Javascript which was inspired by the Browser selectors in CSS post by 37signals. It?s pretty naive at the moment, but could be nice to build on in the future. It adds two helper methods available in your views - browser_is? and browser_name <%= browser_name %> => mozilla (or whatever) <% if browser_is? :mozilla %> do
2006 Jun 16
0
rake spec controller test output hideus.
Is there any way to change the output of rake spec fails? The errors are just totally over the top ugly and not helpful. First of all the ruby -Ilib line always comes before each test and I find it distracting. But if an error occurs on something that is not nil it just gives me the entire contents of that object and that is no small matter when the object is a HTTP request response. Here is
2006 Jun 08
0
acts_as_versioned_association plugin
Building on the great ''acts_as_versioned'' plugin by technoweenie, I''ve written a small plugin which also stores versions of associations. It''s early and experimental at the moment, but does work. For example: class Article < ActiveRecord::Base has_many :images has_and_belongs_to_many :categories acts_as_versioned acts_as_versioned_association
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
Hi -- I''ve got a very strange error. I have an action called ''commit_input'' on a controller called ''SiteVisitController''. This definately exists, and is called from the functional test for it, and passes fine. My problem is with the form that is supposed to call this action. The form tag is: <%=
2006 May 19
1
LoadError - no such file to load -- pathname (Dreamhost)
I''ve started getting the following error on Dreamhost when trying to run any scripts or dispatch.* [barry]$ ruby -d script/server Exception `LoadError'' at ./script/../config/boot.rb:6 - no such file to load -- pathname ./script/../config/boot.rb:6:in `require'': no such file to load -- pathname (LoadError) from ./script/../config/boot.rb:6 from
2005 Aug 19
1
In place editor, load in text
I''ve been testing the in-place-editor on a few things and it works well. One use-case I''ve just come across though is the need to load in the text from somewhere other than the source of the page. For example, I have a block of text which is marked up in texttile/markdown/whatever. Editing that block should bring up the unformatted markup, not the HTML it''s turned
2006 Feb 20
3
file_column and login_engine incompatibilities
Hi, has anyone come across any incompatibilities between file_column and login_engine? I''ve been having strange issues where a User model with file_column in it is failing to save the images properly. Everything uploads to the tmp dir fine, but then it never gets copied to the proper permanent location. No errors - everything happens fine except for that final part. I have
2006 Aug 13
0
Major update to acts_as_versioned_association
I''ve spent the weekend giving my acts_as_versioned_association (or version_association for short now!) some much needed attention. Unit tests have gone from a shameful 150 lines to well over 700 now - around 1:3.5 code to test ratio. There''s still probably a lot which needs testing, but it should be a lot better now. It''s a fairly major update and there are some
2008 Jan 30
0
Re: Paypal and subscriptions
Richard, My name is Ron Coleman, a business development manager at EC Suite. We specialize in on-line transaction processing and provide an an inclusive e-commerce toolset designed to reduce the cost of processing and marketing while you focus the managing of your business. Our subscription billing service allows for flexible pricing options and multiple payment types. You can create, cancel, and
2006 Jan 20
1
stack level too deep from has_many / belongs_to relationship
I have the following 3 models (2 models joined by an intermediate): 1. class Exercise < ActiveRecord::Base 2. has_many :routines, :class_name=>''RoutineExercise'' 3. end 1. class Routine < ActiveRecord::Base 2. has_many :exercises, 3. :class_name=>''RoutineExercise'', 4. :order=>''position'' 5. end 1. class
2006 Apr 05
4
How to do IN(?) query?
I''m trying to do an IN query, where I have an array of user objects imaginatively named ''users'': :conditions=>["user_id IN (?)", users.collect{|u| u.id }.join('','')] this ends up with: ... IN(''1,2,3'') ... Obviously I want this to be: ... IN(1,2,3) ... or even ... IN(''1'', ''2'',
2005 Aug 15
5
Customized Autocompletion
In the customized autocomplete demo, how does it know what content to use as the value of the autocomplete? The returned UL has the name, email address and an image. Yet only the name is used. How does it do this? I''ve been trying to get something similar going all morning with little success. Also, what does :skip_style=>true do? I couldn''t seem to find a mention of it
2006 Feb 10
2
Paypal and subscriptions
Does anyone have any experience with subscriptions and PayPal? I''m currently weighing up the options of what payment system to use for an upcoming project which is subscription based and am not sure if PayPal is capable of doing what I want and if I need to setup a merchant account instead. Basically it''s the same kind of payment structure as BaseCamp. 3 or 4 accounts which
2006 Jan 05
5
File_column crashing WEBrick when using :magick options
I''m trying to use file_column in an app I''m writing. Simple file uploads are working fine. However, when I try and use the :magick options to make resized versions, WEBrick dies. This is the Media model: class Media < ActiveRecord::Base file_column :media_item, :magick => { :versions => { :thumb => {:size =>
2006 Apr 06
1
Primary keys and migrations
I have a join table I''m creating with a migration as follows: create_table :read_global_messages, :id=>false do |t| t.column :user_id, :integer t.column :message_id, :integer end So far so good, however I want the primary key to be user_id and message_id. How do I do this? I tried the following, but that doesn''t work: add_index
2005 Aug 15
1
html_options for select_date
As far as I can tell, it''s not possible to use html_options in conjunction with the select_* helpers. This means using them in conjunction with observe_field etc is pretty much impossible. Does anyone have a patch to add this functionality, or know of a workaround? I''m having a look at the moment, but not sure how to get it working without breaking existing stuff. --
2006 Apr 12
8
500 Server Error - stumping me at the moment
I''m trying to deploy an app on Dreamhost and I''m getting the infamous 500 Server Error. Nothing in the rails logs because it looks to be happening before it gets there. In the apache error logs we have: [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: comm with (dynamic) server "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi"
2006 Jun 19
0
url_for missing out parameters?
Having a bit of an issue with url_for The current page I''m on has a named route as follows: map.some_page ''page/:id/:range'', :action => ''the_action'' All looks fairly normal. I have an url_for on this page to make a link to another page as so: url_for(:controller=>''other'', :action=>''display'', :id=>5,
2006 Apr 08
0
Help working with timezones
I have a number of timezone related issues which I''m currently confused about. I want to store all times in the database as UTC/GMT so that I can then massage them to be displayed how I like at a later date. I''m using the TZInfo class at the moment to convert timezones and to deal with daylight savings time. My main question is how do I ensure all data is stored as UTC when