search for: to_constant_name

Displaying 7 results from an estimated 7 matches for "to_constant_name".

2006 Nov 26
5
associations help?
...owner_id'' has_many :project_viewers, :dependent => :destroy has_many :users, :through => :project_viewers, :uniq => true ... end Things appear to work ok until I go to destroy a User, at which point I get: ../activesupport/lib/active_support/dependencies.rb:399:in `to_constant_name'': Anonymous modules have no name to be referenced by (eval):1:in `compute_type'' Any help appreciated this fine Sunday! Thanks, s.ross -- View this message in context: http://www.nabble.com/associations-help--tf2708701.html#a7551954 Sent from the RubyOnRails Users mailing list...
2007 Dec 11
3
Fresh rspec on rails install blows up
...g/var/svn/rspec/tags/CURRENT/rspec ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails ruby script/generate rspec [Created a model] Here''s the error: /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:404:in `to_constant_name'': Anonymous modules have no name to be referenced by (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:214:in `qualified_name_for'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/activ...
2006 Nov 05
1
Non-Fatal Anonymous Module Error
I am receiving the following non-fatal error from Rails for a particular action: Error calling Dispatcher.dispatch #<ArgumentError: Anonymous modules have no name to be referenced by> ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:313:in `to_constant_name'' ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:270:in `autoloaded?'' ./script/../config/../vendor/rails/activerecord/lib/active_record/base.rb:278:in `reset_subclasses'' ./script/../config/../vendor/rails/activerecord/lib/active_record/...
2006 Dec 22
2
Relating Namespaced Models
...Client < ActiveRecord::Base has_many :terms, :class_name => "Term::Base" end When I try to access a client''s terms, i get: >> Client.find(1).terms ArgumentError: /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:399:in `to_constant_name'': Anonymous modules have no name to be referenced by from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5618/lib/active_record/base.rb:1363:in `compute_type'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:...
2007 Sep 04
4
Errors in executing first RoR app - reg.
...typed the following URL http://localhost:3000/appone/ Got the following error message in the server console: #<ArgumentError: Anonymous modules have no name to be referenced by> ["C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:404:in `to_constant_name ''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:214:in `qualified_nam e_for''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:476:in `const_mi ssing'...
2007 Feb 04
1
dispatch.cgi -> Anonymous modules have no name
...SP, who has 1.2.1 ready and waiting. The site disappeared into an HTTP 500 error. So I get into the site, run public/dispatch.cgi or dispatch.rb, and get this: # ./dispatch.rb Status: 400 Bad Request /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:405:in `to_constant_name'': Anonymous modules have no name to be referenced by (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:215:in `qualified_name_for'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_supp...
2007 Sep 10
3
Can't reach a controller :(
.../images/rails.png 127.0.0.1 - - [10/Sep/2007:13:30:48 CEST] "GET /favicon.ico HTTP/1.1" 200 0 - -> /favicon.ico #<ArgumentError: Anonymous modules have no name to be referenced by> ["/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:404:in `to_constant_name''", "/usr/lib/ruby/gems/1.8/ gems/activesupport-1.4.2/lib/active_support/dependencies.rb:214:in `qualified_name_for''", "/usr/lib/ruby/gems/1.8/gems/ activesupport-1.4.2/lib/active_support/dependencies.rb:476:in `const_missing''", "/usr/lib/ruby...