Displaying 20 results from an estimated 200 matches similar to: "My associations are coming out nil."
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
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 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
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 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 Jun 02
7
Unit Tests crashing out for a table without an ID
I''m having problems unit testing my model- I have a kind of quiz
functionality user table and a question table and a
user_question_response table that contains the id for the user, the id
for the question and the user''s response. The user_question_response has
it''s own model belongs_to/has_many with users and questions and it works
fine in the actual application but
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 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
2007 Feb 21
6
Problem with url_for and https - overrides all options
I have a piece of code like this in one of my views:
<%=link_to "link here", :action=>''my_action'', :id=>1 %>
It works fine on my local development machine, running Webrick over http
and it works fine on my testing server which is running single mongrel
instance behind Apache 1.3 as a proxy. On both the outcome link is this:
<a
2006 Jan 31
2
Creating a web service with AWS
So I''ve read the Action Web Service bit of the documentation for a
while, searched around and asked on the IRQ channel and I just can''t
seem to get a simple Hello World type web service up and running with
AWS on Rails.
I have a file called hello_person_api.rb which looks like this:
class HelloPersonAPI < ActionWebService::API::Base
api_method :HelloName, :expects
2006 Apr 26
0
active record adding odd chars to insert statement
I''ve got some code that creates a Company object and saves it:
c = Company.new(
:name => params[''company''],
:account_valid_until => mysql_date_format(14.days.from_now),
:account_type => ''standard''
)
c.save
but in the SQL generated by AR, I see (with ''name'' being what was entered):
''--- \n-
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
2007 Jun 04
1
realtime ldap peer matching
Hi everyone,
in ldap realtime sip peers i need "fullcontact" set to
"sip:exten@userip" for asterisk to correctly match the peers (at least
for the natted peers to reach them)...
anyway, how do I populate fullcontact "on the fly" with information from
exten and userip?
of course, i could just do it staticaly on ldap but since the info is
already there why not
2016 Oct 14
4
Dovecot does not close connections
Hello,
I am running into this error:
/Maximum number of connections from user+IP exceeded
(mail_max_userip_connections=10)/
The suggested solution in hundreds of support requests on this mailing
list and throughout the internet is to increase the number of maximum
userip connections. But this is not curing the problem, it is just
postponing it to the moment when the new limit is reached.
When i
2010 Sep 03
3
R program google search
Hi,
Can someone help as how to use R to program google search in the R
code? I know that other languages can allow or have the google search
API
If someone can give me some links or sample code I would greatly appreciate.
Thanks.
--
Waverley @ Palo Alto
2006 Sep 13
2
Revisited - No fullscreen on FreeNX
This topic came up some time back and I pretty much ignored it, but the "itch" came back to find out why. Searching through the
FreeNX/knx list came up with the reason sessions did not come up full-screen even though the session definition was set to fullscreen.
Apparently there is an oversight in /usr/bin/nxnode, the script is never retrieving the fullscreen flag from the parameters
2005 Sep 08
1
Ip addr + login name
Hi everybody,
Is there a way to bind client ip address that connects to pop3 with
the login name? For example if the client ip address is 192.168.2.40
then his login name is 'test' and he can log in with only that account
name.
I think it is possible to do it with an external authentication
program.
Thanks.
2016 Oct 14
0
Dovecot does not close connections
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 14 Oct 2016, Benedikt Carda wrote:
> I am running into this error:
> /Maximum number of connections from user+IP exceeded
> (mail_max_userip_connections=10)/
>
> The suggested solution in hundreds of support requests on this mailing
> list and throughout the internet is to increase the number of maximum
> userip