Displaying 20 results from an estimated 10000 matches similar to: "Require statements fail under rails?"
2006 Mar 24
6
Should counter_cache fields be saved in the database?
As far as I can tell, the counter_cache option on a belongs_to model
doesn''t actually save anything in the database. For example, I have
the following models:
class Parent < ActiveRecord::Base
has_many :children,
:conditions => "deleted_at IS NULL"
end
class Child < ActiveRecord::Base
belongs_to :parent, :counter_cache => true
end
With the following
2012 Feb 17
1
ACLs only apply to primary group?
Hi,
I wonder if someone confirm this behaviour or point out my obvious
mistake - gluster mounts via the native (fuse) client don't seem to
work properly with POSIX ACLs, example:
[jim at puppet ~]$ ls -la /mnt/
total 24
drwxr-xr-x 4 root root 4096 Feb 16 16:49 .
dr-xr-xr-x 23 root root 4096 Feb 17 10:32 ..
drwx-----x 3 root root 4096 Feb 15 03:00 arccontent
drwxrwx--x+ 5 root root 4096
2006 Aug 02
1
unable to "require" installed gems
Hi,
I''ve installed sqlite3 (via the instructions at
http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite), and all went
well
OSX 10.4.7
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]
and sqlite3.rb is in
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib
but I can''t <require ''sqlite3''>
caw$ irb
irb(main):001:0> require
2013 May 03
1
State of Gluster 3.4 alpha 3 NFS ACL support
Wonder if someone can point me in the right direction here - just
built some new bricks running gluster 3.4 alpha 3 (from
http://download.gluster.org) with the objective of testing them to
replace some existing 3.2 systems in production.
The main thing I was after was NFS ACL support, however on getting
everything setup, I still don't seem to be able to see POSIX extended
ACLs on the
2006 Apr 21
4
Bus error in ./script/console with postgres (ext. library)
Is there some special magic that needs to be performed so that the
C-based postgres extension library works with the Rails console?
I have installed the postgres extension library (replacing the pure Ruby
version: postgres-pr) from <http://ruby.scripting.ca/postgres/>
Everything works great from WEBrick, but as soon as I fire up the
console and try to use it, I get a bus error:
2006 Mar 30
9
script/console not working after Rails 1.1 upgrade
Whenever I do script/console I get an error message:
Loading development enviroment.
c:/ruby/lib/ruby/1.8/irb/init.rb:151: in ''parse_opts'' : undefined method
''upcase'' for nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/1.8/irb/init.rb: in ''setup''
from c:/ruby/lib/ruby/1.8/irb/init.rb:54: in ''start''
from c:/ruby/bin/irb:13
2006 Jan 19
3
any one know this problem?
i install ruby-1.8.4, seems everything is ok
but, when i do this:
irb(main):001:0> require ''URI''
LoadError: no such file to load -- URI
from (irb):1:in `require''
from (irb):1
is something i missed?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 08
5
Ruby/LDAP on Rails
This is wierd. I''m trying to get Ruby/LDAP up and working, and at least
the basics work fine under irb:
irb(main):001:0> require ''ldap''
=> true
irb(main):002:0> LDAP::Conn.new()
=> #<LDAP::Conn:0x1b87ac>
irb(main):003:0>
So far, so good. All LDAP::Conn.new does is call ldap_init with host
and port parameters, which in turn just allocates the
2007 Oct 25
5
A new JavaScript Framework based on Prototype and Scriptaculous : Archetype
After several months of development, we are proud to announce you the
first public release of Archetype JavaScript Framework (License MIT,
version 0.1)!
Archetype is a JavaScript framework. It''s not a simple toolkit, but a
real framework which affects the way you code in JavaScript. Made on
top of excellent libraries as Prototype and Scriptaculous, it aims to
ease development of real
2006 Apr 06
2
rails 1.1 - console broken
Have upgraded to rails 1.1 and now ruby script/console does not work.
Throws an error:
c:\work\development\rails\application1>ruby script/console
Loading development environment.
c:/tools/ruby/lib/ruby/1.8/irb/init.rb:151:in `parse_opts'': undefined
method `up
case'' for nil:NilClass (NoMethodError)
from c:/tools/ruby/lib/ruby/1.8/irb/init.rb:19:in `setup''
2006 May 09
2
newbie: OSX Ruby/MySQL issue?
I''m three pages into the OnLamp RoR Tutorial [1] and am wrestling
with what appears to be a MySQL connection problem.
I''ve created a simple controller called "recipe" with a corresponding
"recipes" mysql table. The recipe controller is just a simple scaffold.
When I browse to "recipe/new", though, I get these errors:
==
NoMethodError in
2006 Feb 16
4
Lost while trying to deploy rails app on apache
I need to graft some rails apps onto a website running apache 1.3 and
I must be missing something very obvious because I cannot get things
working properly. Here is what I need:
1) The server must be running apache 1.3. A very large body of PHP
content is currently vended by the server through 5 vhosts and I have
neither the time nor resources to replace apache1 with apache2 or
lighttpd. Maybe
2006 May 02
3
''NameError: uninitialized constant <MyEntity>'' in console
When I create a new model entity, and try to access it from the Rails
console I get the error:
>> b = Bar.new(:name => ''Some Bar'')
NameError: uninitialized constant Bar
from (irb):1
from :0
(My model class is called Bar, and is in file app/models/bar.rb)
So, I try to load the model class file, and I run into a more frigtening
error:
>> load
2007 Apr 10
8
ferret-0.11.4-mswin32 not compatible with Ruby1.8.4
Just a quick note for future reference - at least for me, ferret won''t
work on Ruby 1.8.4.
gem install ferret
Successfully installed ferret-0.11.4-mswin32
ruby -v
ruby 1.8.4 (2005-12-24) [i386-mswin32]
irb
irb(main):001:0> require ''ferret''
A windows error message box appears -
ruby.exe - Entry Point Not Found
The procedure entry point rb_w32_write could not be
2013 Oct 29
1
GlusterFS server/client within LXC
Hello,
currently we're doing a redesign of one of our web platforms. At the
moment the webcontent is stored on a NFS share and rsync is used to sync
data to a manual failover server (sucks). The new platform will be LXC
based. I tested GlusterFS server and client (3.4.1) within a LXC
container on ext4 without any problem. Do you think it is a bad idea to
do so? Will there be any major
2007 Jan 29
4
loading C extension in worker causes bus error on OS X only
In all likelihood, this doesn''t have anything to do with backgroundrb,
but I''m stuck so I thought someone might be able to help.
I have a pretty simple C extension that I built into a gem and have
installed on my system. It works fine when required from rails
(1.2.1).
But when I have a Backgroundrb worker class use the extension (under
os x), I get:
2006 Apr 20
1
ruby-ldap crashing WEBrick server
We are trying to use Ruby-ldap 0.9.4 with Ruby 1.84 on Rails 1.1.2. All
is running on top of Solaris 2.8.
The overall setup works fine for doing other things like access an
Oracle DB, and displaying items. When it comes to using Ruby-ldap
though, it is quite a different matter. We''ve tried using Ruby-ldap
within irb, and all seems well. The basic scenario is:
conn =
2006 May 23
4
Where''s Ruby? Too many Ruby interpreters on OS X.
I seem to have two versions of Ruby on my PowerBook. I have been learning
RoR and walked through the online scripted install of Ruby and Rails several
weeks ago before I really understood what was going on.
If I open Terminal and type:
ruby -v
I get back:
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.5.0]
So that looks fine, but I don''t know where my Ruby interpreter is located. I
2006 Oct 15
4
Mongrel on CentOS 4.3 / RHEL 4.3 64Bit
I tried to install Rails + Mongrel on CentOS4.3 64Bit (my provider only
has the 64 Bit version available).
I found out, that I have to install gcc and emacs-common and have to
copy the *.h files of the ruby source into a certain directory (see below).
But finally I get an error messag when I start mongrel and I have no
idea how to solve that problem:
wget
2010 Jul 14
1
"Cannot delete non-empty directory"/"Operation not permitted" with file-creation on target-server
Hello Everybody,
I was searching for an answer myself for quite some time without success, so
I hope somebody can clarify...I use rsync to sync webcontent from one server
to another.
Apache-details:
* Apache runs as nobody:nogroup.
* Source-Server-Rights htdocs: The rsync-user gains access via o+rx
* Destination-Server-Rights htdocs: The rsync-user is in the group
'nogroup', gains