search for: mendake_ddude

Displaying 6 results from an estimated 6 matches for "mendake_ddude".

2006 Feb 28
6
Activerecord equivalent of the SQL "SUM()" function.
Search doesn''t seem to be working, so forgive me if I''m covering old ground here, but I''m having a difficult time figuring out how to implement a "SUM()" function using Active record. Obviously, I could just create a query, but I''d rather make it part of my active record object. Basically I have an object called "Report <
2006 Mar 04
16
Unacceptibly slow.
I currently have a fairly simple Rails application running on FreeBSD under Apache 1.3 and normal CGI, and the performance I''m getting is alarmingly poor. I realize CGI or WebBrick are quite a bit slower than FastCGI, and I''ll probably use one of those instead when I have the time. However, I''m just curious if CGI is really supposed to be that slow, or if
2006 Mar 04
6
Can''t get Fast CGI working.
Well, after many hours of tinkering and internet browsing I just can''t get Fast CGI to work with Rails and Apache 1.3 on FreeBSD 5.4 Normal CGI works fine, but as soon as I enable FastCGI in .htaccess I get the message: Application error Rails application failed to start properly Here''s what I''ve done so far: - I''ve installed all the necessary software for
2006 Aug 11
2
Aliasing a table in ActiveRecord.
Assuming I can''t rename my MySQL tables, how would I modify a model so that it''s called one thing but references a table of a completely different name. For example: class Recipe < ActiveRecord::Base # The actual table is called "FoodInstructions", but I don''t want to use that. end class HomeController < ApplicationController def index
2006 Apr 06
1
Puzzled by "radio_button".
I have what seems like simple, working code: <form action="save_dh_options" method="post"> <fieldset> <legend>DH Work Reports</legend> <p>Would you like to fill a work report?</p> <p><%= radio_button("user", "enable_report", "yes") %><label for="yes"> Yes</label><br
2006 Feb 28
1
Updating only some of the fields of a table.
It''s not clear to me how to save data to only some of the fields of a table. To update individual fields I can do something like this: @foo = Foo.new @foo.bar = "hello!" @foo.anotherbar = "hello again" @report.save However what if I only want to save the field "anotherbar" and don''t want the final insert or save query to contain the field