Displaying 20 results from an estimated 1000 matches similar to: "Verifying Good Setup of RoR + PostgreSQL"
2005 Nov 16
19
Concerns over Rails' handling of tests
Sorry if this comes across as a bunch of disjointed thoughts...I''m just
trying to put my thoughts down and I''d like to know what other people''s
opinions on the subject are.
I''ve been working with Rails for 3 or 4 months now and I''m constantly trying
to look at ways of improving my testing techniques, especially when it comes
to TDD. I have a few
2005 Dec 16
25
I Would Really Like to Try RoR but...
it''s been a nightmare trying to set it up. I keep getting a an
Application Error message when I try to navigate to a url which should
be taken care of by my newly created controllers. For instance, I
wanted to test RoR out so I created a MyTest controller which should
allow me to navigate something like:
http://localhost/rubytest/MyTest
but it does not. I have no problem getting
2006 Jan 10
2
Default unit tests failing?
I''ve got a strange issue. My default unit tests are failing for two models. I
haven''t changed _anything_ in the test. Here''s an example:
Output:
1) Error:
test_truth(ShippingCostTypeTest):
NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.find
2009 Feb 21
10
Problem with test_truth
hello all,
i have a problem with test_truth.
require ''test_helper''
class MyDataTest < ActiveSupport::TestCase
def test_truth
assert true
end
end
this should ok without failures or errors. but it failure:
1) Error:
test_truth(MyDataTest):
ActiveRecord::StatementInvalid: Mysql::Error: Table
''alldataserver_test.members'' doesn''t exist: DELETE
2006 Nov 24
7
Anyone know whats going on with PostgreSQL async_exec errors?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Anyone know what''s going on with ActiveRecord Edge and 1.2RC1 unit
tests. I get 13 failures from the "async_exec" method call. ie:
test_callback_rollback_in_save(ConcurrentTransactionTest):
ActiveRecord::StatementInvalid: NoMethodError: undefined method
`async_exec'' for #<PGconn:0xb75a8754>: SET
2006 Feb 01
3
Configure Apache 2.0.55 and FastCGI
I''m installing a Rails App under Apache 2.0.55 with FastCGI.
I have this config under httpd.conf
------------------------
LoadModule fastcgi_module modules/mod_fastcgi.dll
...
Alias /fatturails/ "C:/Programmi/Apache
Group/Apache2/htdocs/fatturails/public/"
<Directory "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public">
AddHandler fastcgi-script .fcgi
2006 Apr 23
1
really silly question (my first project and such)
Hi all
My question has to do with a statement made in the database.yml file as
generated by RadRails-
"
# There is no gem for Windows. Install mysql.so from RubyForApache.
# http://rubyforge.org/projects/rubyforapache
"
Is webrick based on the apache web server? I don''t understand this
particular aspect yet. I apologize if radrails questions aren''t supposed to
be
2006 Feb 01
5
Apache 2.2 don''t work with fastcgi
I''m trying to install mod_fastcgi for my rails app.
I use Apache 2.2 and FastCGI 2.4.2 in windows xp.
I have modified the httpd.conf adding LoadModule fastcgi_module
modules/mod_fastcgi.dll (with mod_fastcgi.dll and mod_fastcgi.so in the
modules directory).
Whe i try to start Apache i have this error
----------------------------
apache: Syntax error on line 122 of
2006 May 06
4
Scaffold Uses Wrong Host for MySQL user
I''m following the example Depot app in Agile Web Development with Rails.
The scaffold fails because it is not using the correct host for the
user. Here is the error that the scaffold emits:
Access denied for user ''jimmy''@''%'' to database ''depot_development''
The MySql user ''jimmy'' was created with the host of
2008 May 05
2
I want to help translating articles
Hello to all those of the list, I introduce myself:
My name is Lester Espinosa Mart?nez, I live in Cienfuegos, a city of
Cuba. I am interested in helping Wiki of CentOS working in translating
from English to Spanish.
I met the Wiki of CentOS thanks for a great one my friends called: Alain
Reguera Delgado, and I also collaborated in translating articles of last
Wiki of CentOS in Spanish.
My
2006 Mar 05
6
Which postgresql adapter to use for rails core? How about production?
I wanted to fix some things up in the trunk, so I set up the databases
and ran the unit tests. A bunch fail for postgres, and even more
error out. I know of two postgresql adapters: postgres-pr and
ruby-postgres. Strangely, they each fail different tests. So if I
want to fix things up, which one should I be using? For that matter,
which adapter should I be using for production? Finding out
2010 Apr 30
1
Possible bug in POSIX classes for R 2.11.0?
To the R development team;
I found an unusual behavior in zoo when I upgraded to R 2.11.0 - it abruptly terminated when I performed certain operations on large zoo objects. I sent an e-mail to Achim Zeileis and he said this was a potential bug that I should report to the R development team. The details are given below in the thread below. Basically, I can crash R with this code:
library(zoo)
2006 May 10
12
Strange Behavior on Non-Index Pages
If I browse to \myRoRApp, I get the "Welcome aboard" screen.
I''ve done the ruby scripts/generate controller MyTest, and "Rolling with
Ruby on Rails" tells me I should be able to browse to \myRoRApp\MyTest
and see an error page, but what I''m actually seeing is a fastcgi config
file!
I have installed fastcgi, but apache can''t "see" the
2007 Mar 07
10
Long URLs - New to Mongrel
My rails web app (rails 1.2.1) uploads an image from a Java applet by
encoding it into the URL. This works fine when I''m using Webrick. I''m
trying out Mongrel today, and I''m getting an error in Safari that
says ?lost network connection? (NSURLErrorDomain:-1005). I get
something similar in Firefox. Is there a way to make Mongrel accept a
really long URL like
2005 May 23
16
Success - Rails, FastCGI, and IIS / Windows Server
About 17:00 localtime I managed to get fastcgi,
Rails and IIS all happy together.
Upon success I ripped off my clothes and ran through
the village yelling "The future is now!". A PDP-11
geezer stuck his head out a window and said "The future
isn''t what it used to be and keep yer shirt on".
Modifications were required to dispatch.fcgi and request.rb.
The following
2004 Nov 17
3
Samba share to access windows folders in linux.
Hi,
I am trying to access folders on a windows system on a linux system using
the command,
smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev' -o
username=abcd/<domain>,uid=abcd,gid=abcd
This prompts for a password and I give the correct domain password here. It
gives me the error:
21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an
2006 May 03
3
mysql error
Hi,
I am starting new on rails.
Tried my first example got this error
#28000Access denied for user ''root''@''localhost'' (using password: NO)
Please do suggest as I am having this problem on one of my system but it
works fine on the other.Really confused.
Thanks
Rohan
--
Posted via http://www.ruby-forum.com/.
2006 Apr 04
1
Calling a method in another controller
Hi,
I have three controllers. I have defined two controllers to goven the
site functions. However I want to have a homepage Controller. Part of
the controller will call methods from other controllers. For example it
will get the last 5 blog posts and it will get the top 5 most discussed
articles, and display it on the homepage. I will also have some
specific homepage modules being
2006 Jan 13
1
How to disconnect to a database????
Hi,
We have experienced some problems with
ActiveRecord::Base class of Ruby-Rails. We are
building a web-application based on the Ruby-rails
framework and the web-application needs to access to
difference databases, so we do not pre-define our
database accesses in the database.yml file. In fact,
we are using the
ActiveRecord::Base.establish_connection() to connect
to our database, the function
2006 Jan 18
1
Helps!!!!! Rails database connection guru needed!!!!!!!
Hi,
I really need help to understand what is happening
while Rails connect to a database, (we area actually
using postgresql, so my example will be with
postgresql) What I understand is Rails is able to
connect to different DB. Actually, this is what we
want, and we have made some tests, everything is juste
fine. However, all these tests lead us to some
important questions that we did find the