Displaying 20 results from an estimated 60000 matches similar to: "Problem with environment"
2006 May 03
1
nil.strip error While trying to post xml data over https.
I am trying to subit some xml data over https to access an API. My code
so far seems to generate a very non-helpful error in the guts of the
net/http library. This code produces a NoMethodError for nil.strip"
require ''net/http''
require ''net/https''
require ''uri''
url =
2009 Nov 11
4
host_with_port in config/environment.rb
Hello everyone... i''m Italian, sorry for my poor English, but I find
myself in difficulties with this method.I don''t need to redirect the
logout of rubycas in a host other than localhost... when the decoy in
"config/environment.rb" of course tells me ''method ''host_with_port''
undefined''... I looked in the folder of ruby and i saw that
2006 Jan 25
2
Testing a model method - private method?
Hi everyone,
I''m trying to test a method in my model:
def html_email
return "<a href=''mailto:" + self.email + "''>" + self.email + "</a>"
end
The method works ok. But when I try to test it:
assert_equal ("<a href=''mailto:" + people(:staff1_person).email +
"''>" +
2005 Dec 27
2
NoMethodError in new scaffold
Hi All,
I created a new rails application using rails 1.0. I used "ruby
script\generate scaffold" for each of my tables. This worked on all but
2 of my tables. When I go to the new or edit action of my requests or
admins table, I get the error below.
On one table called admins I hadn''t followed the correct naming
convention and wasn''t able to edit or create
2005 Dec 20
1
trouble with fastcgi and "undefined method `is_cgi?''"
I''m trying to get started with fastcgi on apache 2.0.54 on Fedora Core 4.
I''ve created a really simple Rails app that doesn''t do any database actions.
It works fine when I call it as CGI, but when I try to switch to fastCGI, I
have problems.
I get the following error in log/fastcgi.crash.log:
[20/Dec/2005:10:16:53 :: 26912] Dispatcher failed to catch: undefined
2009 May 02
10
Problem verifying routing error
Hi,
When upgrading to rspec/rspec-rails 1.2.6 gem (from 1.1.12), I''m having
a new problem verifying routes that should not exist.
This is to support something like this in routes.rb:
map.resources :orders do |orders|
orders.resources :items, :except => [:index,:show]
end
I used to use lambda {}.should_raise( routing error ), but it stopped
detecting any raised error.
2006 Jun 23
3
Yet another problem with NoMethodError in Store#display_cart
Hi everybody,
I''ve search a lot on google to help me with this one without success. I
know that some people had the same problem as I have, but there
solutions doesn''t seems to work for me.
I''m trying to do the depot example in the AWDwR book. But now I''m stock
with a problem that I can''t solve. I get this error:
<--- begin error here --->
2006 Apr 10
1
Error When Sorting
Got a bug I cannot eliminate. My ajax style sorting looks cool but the
position change is never updated. The error (at bottom points to line
52 in my controller and I have indicated that line).
#view
<!-- Question Data -->
<h2>Test Questions</h2>
<div id="list_questions">
<%= render(:partial => "list_questions") %>
</div>
2007 Jan 24
0
problems with themes in rails 1.2.1 -> named_route
i saw someone mentioned this somewhere else (1), but i wanted to make
sure that this wasn''t something that was going to cause me alot of grief
later..
i have been using the theme plugin (2) on several projects..
i updated to 1.2.1 today, and upgraded my mongrel to the latest one..
when i try running mongrel after updating my project, i get the
following error:
2006 Jan 16
6
file_column plugin error
Hi,
I downloaded FileColumn plugin and love the concept.
But when I tried the example listed on the plugin web
site, I got the following
error:
NoMethodError in Entry#new
undefined method `file_column'' for Entry:Class
My environement is Red Hat linux 9.0 with mysql 4.1. I
installed file_column under vendor/plugins. If I run
"ls", I get the following directories:
2007 May 26
0
New worker not being created
I figured out that in the backgroundrb.yml, I had the old setting of making
the database RAILS_ENV. It wasn''t a valid variable in backgroundrb 0.2.1,
and it wasn''t reporting an error, so I had no idea. Once I changed it to
''development'' or ''production'', it started working.
I found that if a worker has an error, it usually logs the error
2009 Apr 21
2
validates_uniqueness_of
hello all,
i am new to RoR programming and am struck with the functional test whole
checking for uniqeness of carriers. If it is not unique,the the bin
shudn''t be created.Can someone help me in correcting my code.
def test_create_failure_cycle_unique
begin
num_bins = Bin.count
post :create, {:bin => { :carrier => carriers(:A), :cycle =>
cycles(:one), :name =>
2006 Sep 07
1
gem mysql buggy on Win32
Hi,
Just running a simple unit test and trying to save an object gives me
this error.
test_validations(FriendTest):
NoMethodError: undefined method `each'' for #<Mysql:0x38f60d0>
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_a
dapter.rb:292:in `columns''
....
....
Rails 1.1.6
mysql 5
mysql gem 2.71
After I
2005 Dec 12
4
Rails crashes over night?
I''m
running Ruby on Rails on Fedora Core 4 with lighttpd and fastcgi. I
also used the login generator (don''t know if relevant). I have the
following problem: At day time I work on the server and create/modify
ruby files on the server, all pages work fine. Than the next day I want
to open de server I get the error at the end of this message (on all
pages, including non protected).
2007 Nov 14
1
has_many_polymorphs and acts_as_list ?
First, BRAVO for this wonderful plugin: has_many_polymorphs ! Now my
problem:
4 models : Collection, Page, Fragment, Belonging (which is the join
table):
1 class Collection <
ActiveRecord::Base
2 has_many_polymorphs :elements,
3 :through => :belongings,
4 :from => [:pages, :fragments, :collections],
5 :as => :collector,
6 :parent_order =>
2006 Apr 06
2
OpenSSL: SSL_CTX_new:: library has no ciphers
I''m trying to do a basic get or post operation using Net::HTTP in SSL mode.
I''m on TextDrive, which runs ruby 1.8.2; however, I have the /net folder
from ruby 1.8.4 in my /lib to support net/https, which doesn''t appear to be
present in 1.8.2.
http = Net::HTTP.new "www.beanstream.com", 443
http.use_ssl = true
http.start {
2006 Oct 22
10
Configuration Error?
I''m trying to get a rails app running with this configuration:
Mongrel, Apache 2.2, mod_proxy load balancer and Rails 1.1.6 error
I have a rails app on another server working with (apparantly) the
same configuration and it runs fine so I''m stumped.
I''m wondering if anyone has any insight into the error I have pasted
below.
It seems to be one of those errors that
2006 Dec 15
1
:job_key acting weird?
Hi all
I''m experiencing something strange with a :job_key, it took me a very
long time to find out a worker wasn''t doing it''s job because of the
name of my job_key. The first one I tried was :make_kohier, and with
that name (and lot''s of other ones) I can''t get the worker to work. I
do get my key in return, but the job doesn''t start
2006 Aug 02
0
Errno::ENXIO (Device not configured) when using net/https from rails
Cross posting this to the rails list in case it might be rails
specific. I really have no clue on this one. OS is Freebsd 6.1.
I have the following code that creates a https connection from within
a rails controller. Works fine except that if it doesn''t get called
for a few hours it starts throwing an exception until I restart rails
(apache1.3 + scgi). I wonder if something here
2009 Sep 18
13
Rails 2.2.3-1 Problem
After installing the rails I faced this problem. If anyone aware of this
problem, kindly give solution for this.
vellingiri@WebDevel:~/public_html/Isync$ ./script/server
=> Booting WEBrick...
/usr/local/lib/site_ruby/1.8/rubygems.rb:149:in `activate'': can''t
activate activeresource (= 2.3.4, runtime), already activated
activeresource-2.1.0 (Gem::Exception)
from