search for: rpnielsen

Displaying 9 results from an estimated 9 matches for "rpnielsen".

Did you mean: nielsen
2006 May 09
6
To Do list project?
I''m looking for a good web-based to do list app. Essentially, I''d like to use Basecamp''s todo management system, but that''s not an option since I can''t install Basecamp on a server I own. The information being tracked in the list cannot be sent out of my intranet. I would imagine that there are a couple of open source rails apps that would meet my
2006 Apr 08
2
respond_to causes DoubleRenderError?
I have a custom authentication plugin that redirects users to a login site if they aren''t already authenticated and their session hasn''t timed out. I had things working fine with straight http requests, but wanted to add support for ajax requests. I thought this would be a simple matter of replacing all of my "redirect_to <blah> and return false" calls with
2006 Mar 24
6
Should counter_cache fields be saved in the database?
As far as I can tell, the counter_cache option on a belongs_to model doesn''t actually save anything in the database. For example, I have the following models: class Parent < ActiveRecord::Base has_many :children, :conditions => "deleted_at IS NULL" end class Child < ActiveRecord::Base belongs_to :parent, :counter_cache => true end With the following
2006 Apr 03
2
Fast way of finding new position for model object?
I have a model object that acts as a list. The position of each object is determined by two factors: number of votes ascending and age of object descending. When a user adds or deletes a vote I need to quickly update the associated model object''s position. Right now this is done with the following method: def update_position position = nil Bug.find(:all, :order =>
2006 Mar 23
1
Require statements fail under rails?
I upgraded from Ruby 1.8.2 to 1.8.4 and now require statements fail under Rails'' environment: [flashbang:...WebContent/rails/development/requests] ryan% ./script/console Loading development environment. >> require ''time'' => false >> require ''net/https'' => false >> quit Things work under irb, though:
2006 Feb 16
4
Lost while trying to deploy rails app on apache
I need to graft some rails apps onto a website running apache 1.3 and I must be missing something very obvious because I cannot get things working properly. Here is what I need: 1) The server must be running apache 1.3. A very large body of PHP content is currently vended by the server through 5 vhosts and I have neither the time nor resources to replace apache1 with apache2 or lighttpd. Maybe
2006 Mar 23
0
Rails 1.1RC1 corrupts my sqlite3 database
When I run TOT rails, my development sqlite3 database is corrupted whenever Rails attempts to access it. I found this a couple of days ago and reported it as <http://dev.rubyonrails.org/ticket/4330>. When I backout changeset 3981, I cannot reproduce the corruption. Has anyone else seen this problem? I''m running Mac OS X 10.4.5 with Ruby 1.8.4. I also have reinstalled both swig and
2006 Jan 02
1
Dealing with collections of model objects
For an application I''m writing I have a model object, "Answer", many of which are associated with a "Request" object. A user will need to answer many questions, each of which is stored in an Answer object that is associated with their request (Request has many Answers). Is there an easy way to create and then validate each of these Answer objects? I basically want to
2006 Mar 21
5
Order records based on number of children
Let''s say I have simple schema with two tables. The models are defined like the folllowing: class Parent < ActiveRecord::Base has_many :children end class Child < ActiveRecord::Base belongs_to :parent end Simple has_many relationship. Is there any way to order the results of a Parent.find_all by the number of children the parent has? I can sort with sorted_parents =