Displaying 15 results from an estimated 15 matches for "rbrant".
Did you mean:
brant
2006 Feb 03
3
My associations are coming out nil.
I''ve got a fairly simple system with a table for my Users that
includes a CountryId field which looks up to the CountryId field of my
Country table. What I would like to happen is for my Rails
application, which contains models for both User and Country, to be
able to draw the dropdown list of available countries on the edit
page, like it does in all the tutorials.
My model classes look
2006 Jan 30
4
dispatch.cgi Problem
Hey all,
I''ve been battling with ruby configurations for days now...trying to get
either SCGI or FCGI to work on my Apache 1.3/Linux Red Hat 3 server.
I''ve pretty much gave up that battle since either of them will work with
me after trying dozens of configurations, but now even when I try to run
apps with dispatch.cgi I get this error in my log: "Premature end of
2005 Dec 30
2
rails running very slowly on apache (with fcgi or without)
Was wondering if there is anything obvious I may have missed in my
setup that would cause it to run so slowly. WEBrick runs blazingly
fast in comparison, in dev mode, so I''m sure there''s something off.
Even in production mode requests take about 4 or 5 secs.
Thanks!
Win XP
Apache 2
Rails 1.0
-rich
2006 Jan 15
7
Dreaded Internal 500 Error on DreamHost.
Hey guys,
I often get this problem the first time I try to deploy a rails app
on dreamhost and I''m not sure what the cause is. Basically, I have
an app that''s running fine on my local machine. I''ve uploaded the
app, configured and migrated to the latest version of the db, and set
all of the necessary directories to 755. But when I run dispatch.rb
in ssh or
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
2006 Apr 17
2
Email Multipart message
Hi,
I use the multipart functionality from the action mailer.
But when i send an html message, my outlook opens the mail and shows
this:
--mimepart_4443b76d12268_6f34..fdacc616831e6 Content-Type: text/html;
charset=iso-8859-1 Content-Transfer-Encoding: Quoted-printable
Content-Disposition: inline
<!!Message>
= = --mimepart_4443b76d12268_6f34..fdacc616831e6--
No html will appear. When
2006 Apr 26
0
active record adding odd chars to insert statement
...c.save
but in the SQL generated by AR, I see (with ''name'' being what was entered):
''--- \n- name\n''
Any idea where this is coming from?? If I view the value before it''s
saved, the chars aren''t in there..
--
http://brantinteractive.com
rbrant@brantinteractive.com
v. 267.640.2195
f. 215.689.1454
2006 Feb 25
2
ActionFaxer?
Hi,
I would like to use ActionMailer to send and email but I also want to
send a copy of the email as a Fax. Is this possible?
Thanks,
Peter
2006 Jan 05
2
has_many - when are child objects created?
I has several model objects that flow down like a tree:
Class1 has_many Class2
Class2 has_many Class3
and so on.
when are the child records actually created?
If I do:
c1 = Class1.find(:all)
are the child objects (C2s below) created then or not until i do something like:
c2s = c1.C2s while iterating through the c1s?
If the form, that''s cool, no problem, but If I''ve got
2006 Feb 21
3
HABTM :insert_sql help
Hi all,
I''m working with a legacy sqlserver db and I''m trying to override the
insert sql in as defined in the HABTM method below(becasue the join
has three primary keys), but I''m getting the error: ''undefined local
variable or method `record'' for Project:Class''
has_and_belongs_to_many :people,
:class => ''Person'',
2005 Dec 22
3
help with unless
Hi,
I need a fresh set of eyes to look at this bit of controller code and tell
me why I might be getting an error message:
lookup = Profit.find(:all, :conditions => [ "user_id = ? AND
product_id = ?", uid, pid])
unless lookup.empty?
if (lookup.updated_on > 360.minutes.ago)
return
end
end
If lookup is empty, then I
2006 Jan 25
38
Rails app won''t run on Dreamhost - "incomplet headers" error
Can anyone provide some expert debugging help here? What''s the first
step to take to see what the issue is here?
I have no errors in the rails app''s log files. The only errors I have
are those provided by apache and they are:
''FastCGI: Incomplete headers (0) bytes received from server''
I''ve tried editing the shebang line, removing line feeds, but
2006 Feb 03
0
validates_associated questions
I''m trying to validate a User model object that belongs_to a company
class User < ActiveRecord::Base
belongs_to :company
validates_associated :company, :message=>"Company can not be blank"
end
Now, if my Company class has the following:
validates_presence_of :name
shouldn''t that result in the error message beign added to the error
messages for the user??
2006 Jan 28
0
calling javascript via "eval(request.resopnseText") help needed.
I have a link_to_remote method:
<%= link_to_remote image_tag("clock_run.gif", :border=>''0''),
:update => @task.id,
:complete=>"eval(request.responseText);",
:url => {:controller => ''time_entries'',
:action => ''punch_in'',
:id => @task} %>
The controller
2006 Jan 06
1
has_many with :finder_sql question
hi all,
I have a Class, Client, which has_many projects (Project class). the
projects depend on a session_id variable, however. So the question
is, how can I do the following:
has_many :projects,
:finder_sql => "SELECT p.* FROM projects p INNER JOIN
projects_users pu ON pu.project_id = p.id WHERE pu.user_id =
#{session[:user_id]}"
The problem is that I need to filter a