Displaying 20 results from an estimated 400 matches similar to: "Beginner: "NameError - uninitialized constant" when I create a model object"
2007 Apr 02
19
Pref for beginner book: Wrox (Holzner) or Ruby for Rails?
I''m a beginner. I''ve done the apple tutorial, Agile ROR (the depot
app, I stopped after that, a little to advanced with no base knowledge
of Ruby), Why''s guide and my copy of Chris Pine''s book today. After
Pine, I''m going to buy either the Wrox book or Ruby for Rails book. I
did a search and there''s not too much on the Wrox book (Holzner)
2010 Jan 06
12
Dom0 NETTX, NETRX alway are 0
I tried netperf / netserver with Dom0 / DomU, but I could''nt get a correct
NW traffic with xentop. Is there anybody could help me?
At Host1''s Dom0, run netperf -H VMIP
At Host2''s DomU (with VMIP named TTVM), run netserver
At Host1, run xentop this way ->"xentop -n -b -d 1"
At Host2, run xentop this way->"xentop -n -b -d 1"
In Host2''s
1999 May 21
7
Multiple workgroups using SAMBA in a single domain
Dear people at the samba organization,
I wish to create multiple workgroups using SAMBA in a single domain on a
LINUX Box. The linux box is also the primary domain controller.
Please enlist me the procedure and mail to me as soon as possible.
Thanking you in advance
Sincerely
Roopinder Randhawa.
2002 Mar 17
2
Is an empty stream legal?
Does the spec allow a stream consisting only of headers, with 0 audio
packates?
--
Beni Cherniavsky <cben@tx.technion.ac.il>
(also scben@t2 in Technion)
MSVC in default mode doesn't define __STDC__ (correctly!). No comments.
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this
2006 Dec 21
0
unitinialized constant Mongrel::HttpHandler (NameError)
Using RailsLive CD (PCLinuxOS) installed to HD.
''gem install mongrel'' reported:
Successfully installed mongrel-0.3.13.4.
though there is one error:
make: ***
[/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/http11.so] Error 127
Google is no help for this one as the only reference to this error I
could find suggested it might be solved by installing libc, for which I
2006 Nov 06
1
NameError uninitialized constant Ferret::Index::FieldInfos
Hi Everyone,
I''ve a RoR application. I am trying to build full text search capability
into it. I installed Ferret. After that I installed the act_as_ferret
plugin. I''ve also put the acts_as_ferret inside the <model>.rb file .
I''m using the find_by_contents to get the search results.
I''m getting the following error. I''ve no clue and I
2007 Oct 29
2
rspec throws exception (nameError)
Hi,
I''m running Rails 1.2.5 with rspec 1.0.8.
When i runned autotest first time, it complained about this line.
#include ActionView::Helpers::JavaScriptMacrosHelper
in vendor/plugins/rspec_on_rails/lib/spec/rails/dls/behaviour/helper.rb
...I commented it out, then I got another error about this line, so I
also commented this out.
#Test::Unit.run = true
in
2006 Jul 24
0
Error: NameError (uninitialized constant Mysql)
Hi
I am getting this error on my localhost in a project I started work on. It was working properly until sometime back. I am not what broke this because I had to do some copy paste from some other project to make it deploy on site5.
NameError (uninitialized constant Mysql): d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing''
2006 Jul 25
0
RESOLVED: Re: NameError (uninitialized constant Mysql)
Hi all
I had asked the group about the error: NameError (uninitialized constant Mysql) appearing on the localhost since last few days.
I was using Webrick for testing. I installed RubyForApache module, which installed mysql.so along with that. It wasnt successful even after following documentation/tutorials word-by-word.
Anyway, the bottom line is : I uninstalled RubyForApache and
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
2006 May 05
1
NameError when running exception_notification plugin?
Hi all,
I installed the exception_notification plugin via ''script/plugin
install'', and when configure it and try to run it, I get:
NameError
uninitialized constant ExceptionNotifiable
This error occured while loading the following files:
application.rb
exception_notifiable.rb
In my application.rb, I added this:
include ExceptionNotifiable
And in my development
2006 May 28
0
How to fix NameError?
Hi,
I get the following error in production:
Processing Base#index (for 68.146.229.246 at 2006-05-28 14:49:59) [GET]
Parameters: {}
NameError (uninitialized constant FrontControllerController):
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:195:in
`const_missing''
2006 Mar 12
0
NameError when trying to combine Recipe 14 (rich HABTM) & Rec. 10 (self-ref HABTM):
Hi all,
I''m trying to model self-referential relations between people, where the
relation has attached data.
John ''works for'' Bob
Problem: '':through'' doesn''t work, and generates a NameError.
=> the models :
Person (attr: name)
Relation (attr: source_id, target_id)
(more details below)
ex: John ''works
2006 Mar 30
1
Logger::Format not defined (NameError) [NOOB]
I have just installed apache2 / php4 / mysql and RoR on a clean and
minimal Ubuntu (5.10) server.
I have set up a test site and can reach the "Welcome on board" index
page.
However when I run "ruby script/generate contoller firsttest" I get the
following error.
./script/../config/../vendor/activesupport/lib/active_support/clean_logger.rb:13:in
`remove_const'':
2008 May 19
0
uninitialized constant BackgrounDRb::MetaWorker (NameError)
Hi All,
I am using backgroundrb to receive emails in my rails app. But I am unable
to start the Backgroundrb server. After doing this:
$ ./script/backgroundrb/start
I am getting following error:
???????????????????????????????
vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:263:in
`load_missing_constant'': uninitialized constant
2006 Feb 07
1
AWDWR: NameError (uninitialized constant UnknownAction) in rescue_action_in_public
I copied (and modified) this code from AWDWR:
def rescue_action_in_public(exception)
case exception
when ActiveRecord::RecordNotFound,
ActionController::UnknownAction
render :template=>''/error'', :layout=>''application'',
:status=>''404 Not Found''
else
render :template=>''/error'',
2006 Feb 19
0
uninitialized constant (NameError)
Anyone knows why Test #1 works, but not Test #2
Test #1
=======
require ''contact/company''
require ''contact/company_office''
def main
@companies = Contact::Company.find(:all,
:include=>[''company_office''],
:limit=>20)
end
main
Test #2
=======
require ''contact/company''
2006 Jan 31
2
NameError/Unitialized Constant With PayPal Gem
I am trying to use the PayPal gem and having a little trouble.
I installed the gem w/o any trouble:
paypal (1.0.1)
Paypal IPN integration library for rails and other web applications
When I try to use it in my controller, as follows:
def paypal_ipn
notify = Paypal::Notification.new(request.raw_post)
...
end
I get a NameError:
uninitialized constant Paypal
This error occured
2009 May 25
0
NameError (uninitialized constant FileColumn::Magick::ImageList
Hi,
I have been using RMagick and File Column in my app together without a
problem, but when I tried to add in some new functionality in my model
where I use file_column, I got the error in the subject line. The
offending line in my code is:
image = Magick::ImageList.new(path_to_image)
Has anybody ever seen this problem when using the two libraries
together? I have tried adding in a require
2009 Apr 15
1
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
I''m on debian etch w/ ruby1.8, activesupport-2.3.2, getting this on the
first line of code which is require ''active_support'' :
/var/lib/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:55:
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require''