Displaying 20 results from an estimated 50000 matches similar to: "Dependencies.rb issue"
2005 Mar 30
0
Help - dependencies.rb - `const_missing': uninitialized constant
I''m trying to get this has_and_belongs_to_many join to work (re: my
post from yesterday). I''m getting an error I can''t seem to get by.
Help?
I now have the following tables:
ORGANISATIONS:
id (primary key)
name
REPRESENTATIVES
id (primary key)
name
ORGANISATIONS_REPRESENTATIVES
organisation_id
representative_id
My models are:
class Organisation
2006 May 27
2
NameError / active_support/dependencies
hi everyone
in my dev machine, everything works flawlessly
now when i uploaded my website on the server, it cannot acces User model
anymore. all other pages work by the way.
when i try to access User on console or by web, it shows:
NameError in UsersController#signup
uninitialized constant User
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
2006 Aug 05
1
"uninitialized constant" error when I go to app base URL???
Hi,
I''m getting the below attached error when I navigate to the root of my
web application on my hosting site (dreamhost.com), however in
development it works fine. Any ideas?
That is I have one controller so the direct URL is
"http://mydomain.com/contacts". This works on dreamhost and locally.
BUT when I go to "http://mydomain.com/" this works locally (on
2008 Jan 18
2
Rspec problem in testing RoR application
Hello.
I install gems rspec and rspec_on_rails
I have this Error when try to run Rspec tests on my RoR application:
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in
`load_missing_constant'': uninitialized constant
ActionView::Helpers::JavaScriptMacrosHelper (NameError)
And I follow recipes wich are placed in
2006 Aug 27
0
problem with mysql gem
Hi. Whenever I use activerecord I get this error NameError:
uninitialized constant Mysql. I installed the mysql 2.7 gem and I''m on
Rails 1.1.6 / Ruby 1.8.4. The gem was built successfully using ''gem
install -- --with-mysql-config=/usr/local/mysql/bin/mysql_config''.
Here''s a sample trace of the error in ''script/console'':
>> User.find 1
2007 Oct 04
0
Module + Constant Issue
I ran into the following problem in my application when I went from my
dev environment to my staging environment. Modules and classes that
were previously autoloaded just fine in dev ended up with a strange
error in staging:
NameError: uninitialized constant Rails::Initializer::...
Weird.
Well, I managed to reproduce it, and here is the procedure. I''m
wondering if the approach
2009 Oct 13
2
Single Table Inheritance (STI) Broken: NameError
Some how I''m getting NameError: uninitialized constant when accessing a
child models that inherits form the parent model. However, if I access
the parent model first, then the child model is resolved.
What am I doing wrong? My steps are below...
Thanks,
Francis.
> ./script/generate model Blah type:string
class CreateBlahs < ActiveRecord::Migration
def self.up
create_table
2006 May 18
5
Uninitialized Constant in scaffold list page
I''m new to Ruby on Rails and just trying to get it up and running. I''m
using RadRails, but I don''t think that matters for this problem.
I''ve got a very basic app with one table and I used the scaffold
generator for a table called datedgoals. The new page works fine, but
then when it switches over to the list page, I get the errors below. Any
idea how to fix
2006 Dec 28
3
NET::IMAP / Runner problems
Hello,
I have a runner script that is meant to check a mailbox using imap and
insert them into the application. The method I am using to do this was
taken directly off the rails wiki:
require ''net/imap'' # above the class, not within it
def self.check_mail
imap = Net::IMAP.new(''localhost'')
imap.authenticate(''LOGIN'',
2006 Jul 18
0
Rails Error w/ ActiveLdap
Hello,
I am working on creating a simple interface for an ldap user repository.
A little background, for development, I am working under Cygwin, with an
ssh port forward on port 636 (for SSL).
I have included clips of my error message and all
config/environment/model files below. I replaced domain information,
which I have double checked with "<CORRECT>".
Please let me know
2006 Jul 18
1
Rail w/ ActiveLdap
Hello,
I am working on creating a simple interface for an ldap user repository.
A little background, for development, I am working under Cygwin, with an
ssh port forward on port 636 (for SSL).
I have included clips of my error message and all
config/environment/model files below. I replaced domain information,
which I have double checked with "<CORRECT>".
Please let me know
2006 Jun 19
2
const_missing error of has_many through association
Hi,
I am new to ruby on rails. I am building an association join model
and encountered the following error. Does anyone know what am I
missing?
> NameError in StartController#home
>
>d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing'': uninitialized constant Membership
I have the following tables relationships
Users
2008 Mar 14
3
`const_missing'': uninitialized constant Spec::Rails
Hi!
I''m experiencing such error while running simple model rspec just to
make sure everything is working.
$ script/spec spec/models/site_user_spec.rb
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
`const_missing'': uninitialized constant Spec::Rails (NameError)
from
2006 Jul 29
2
uninitialized constant ApplicationController
Hey,
I am getting a weird error that doesn''t give much helpful debug output
because the application controller can not be found. The actual error
output actually shows up in the webrick server, i''m trying right now
wether this could be because of my computer configuration but i don''t
think so because it was working yesterday and i must have changed
something that
2006 Jul 19
3
Rails & Mongrel & Lighttpd > NameError in Production
hallo there,
i got a problem with switching from development- to production-mode in
my rails project. in development everything is working fine, but in
production i keep on getting a NameError...
[quote]
NameError in Appointments/admin/appointment categoryController#list
uninitialized constant Appointments::Admin::AppointmentCategory
2005 Nov 30
0
uninitialized constant Base (NameError) trying to use ActiveLdap
Hi group
I''m trying to hook up my simple app to Active Directory. I''m following
instructions posted on the website.
Mainly http://wiki.rubyonrails.com/rails/pages/HowtoAuthenticateViaLdap
and now also http://wiki.rubyonrails.com/rails/pages/ActiveLDAP.
The two instructions seem to differ a little on how to configure
(environment.rb). Both instructions break my app with an
2006 Jan 08
0
uninitialized constant Test
I recently upgraded to Rails 1.0 and started a new project. I''ve
started writing some tests, but when I run rake, I just get the
following...
Amnesia:~/Development/Rails/pog shad$ rake
(in /Users/shad/Development/Rails/pog)
/usr/bin/ruby -Ilib:test
"/usr/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb"
"test/unit/pog_test.rb"
2006 Jun 25
1
text_field_with_auto_complete nonsense (newbie question)
Hi everyone,
I have been introduced to ruby on rails a couple of days ago and it
really brings out the fun in programming for the Web. I''m trying to
implement a text_field_with_auto_complete as described in
script.aculo.us , as follows:
controller:
class SearchController < ApplicationController
auto_complete_for :recipe, :name
end
search.rhtml:
<html>
<head><%=
2006 Aug 17
6
NameError in AdminController#index building scaffold
I''m a pretty big newbie with ROR, but when following a tutorial I
encounter an ugly error when building a scaffold. Here is my
environment
Dev system:
- Windows XP
- java version "1.5.0_06"
- MySQL java version "1.5.0_06"
- Ruby 1.8.4
- Ruby Gems 0.9.0
- Gem install mysql
Successfully installed mysql-2.7.1-mswin32
Installing ri documentation for
2006 Apr 19
7
Setup problem
I am trying to set up rails and am have problems. I have googled
everything I could think of, but have not found my problem. Here are my
specs.
Gentoo Linux 2006.0
Apache 2.2
Ruby 1.8.4
Gems 1.8
Rails 1.1.2
mod_fcgid 1.08
When I try to access my test rails app through the webserver, I get the
following error in the error.log (after seeing a html 500 error on the
page).
[Fri Apr 14