# Anonymous modules have no name to be referenced by

**URL:** <https://www.ruby-forum.com/t/anonymous-modules-have-no-name-to-be-referenced-by/85217>\
**Category:** Rails\
**Created:** [February 11, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/anonymous-modules-have-no-name-to-be-referenced-by/85217 "2007-02-11T17:06:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@brian](https://www.ruby-forum.com/u/brian)\
**Post date:** [February 11, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/anonymous-modules-have-no-name-to-be-referenced-by/85217/1 "2007-02-11T17:06:27Z")

</div>

I’m trying to run the “hello world” script from Agile Wev Development  
with Rails…

I’ve created my “SayController”:

class SayController \< ApplicationController  
def hello  
end  
end

and I’ve created my hello.rhtm with basic html that shows “Hello from  
Rails!”.

However, when I try to access it, I get this error from the Webrick  
console:

(I’m trying to go to [domain.com:3000/say/controller](http://domain.com:3000/say/controller)

#\<ArgumentError: Anonymous modules have no name to be referenced by\>  
[“/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active\_support/dependencies.rb:404:in  
`to_constant_name'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:214:in `qualified\_name\_for’”,  
“/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active\_support/dependencies.rb:476:in  
`const_missing'", "/usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:117:in `reset\_after\_dispatch’”,  
“/usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:51:in  
`dispatch'", "/usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:113:in `handle\_dispatch’”,  
“/usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick\_server.rb:79:in  
`service'", "/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’”,  
“/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'", "/usr/lib/ruby/1.8/webrick/server.rb:173:in `start\_thread’”,  
“/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'", "/usr/lib/ruby/1.8/webrick/server.rb:95:in `start’”,  
“/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'", "/usr/lib/ruby/1.8/webrick/server.rb:23:in `start’”,  
“/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'", "/usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:63:in `dispatch’”,  
“/usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands/servers/webrick.rb:59”,  
“/usr/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `require'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:495:in `require’”,  
“/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active\_support/dependencies.rb:342:in  
`new_constants_in'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:495:in `require’”,  
“/usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands/server.rb:39”,  
"/usr/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `require'", "script/server:3"] [2007-02-11 10:58:52] ERROR `/say/hello’ not found.  
24.2.106.135 - - [11/Feb/2007:10:58:50 EST] “GET /say/hello HTTP/1.1”  
404 290

- → /say/hello

Any help is appreciated.

Thanks,  
Brian

---

<div class="post-metadata">

**Author:** ![brian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@brian](https://www.ruby-forum.com/u/brian)\
**Post date:** [February 11, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/anonymous-modules-have-no-name-to-be-referenced-by/85217/2 "2007-02-11T17:31:28Z")

</div>

Brian Br. wrote:

> and I’ve created my hello.rhtm

Is that a typo, or is your file _really_ called “hello.rhtm”, without  
the  
‘l’?

> [2007-02-11 10:58:52] ERROR `/say/hello’ not found.

That’s probably a “yes”. “Convention over configuration” only works when  
we  
follow the conventions!

–  
Phlip  
[Redirecting...](http://www.greencheese.us/ZeekLand) ← NOT a blog!!!

---

<div class="post-metadata">

**Author:** ![brian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@brian](https://www.ruby-forum.com/u/brian)\
**Post date:** [February 11, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/anonymous-modules-have-no-name-to-be-referenced-by/85217/3 "2007-02-11T18:14:45Z")

</div>

Sorry, it was a typo… The file is called hello.rhtml
