# Webrick won't start with require statement in environment.rb

**URL:** <https://www.ruby-forum.com/t/webrick-wont-start-with-require-statement-in-environment-rb/68002>\
**Category:** Rails\
**Created:** [September 8, 2006, 12:51pm UTC](https://www.ruby-forum.com/t/webrick-wont-start-with-require-statement-in-environment-rb/68002 "2006-09-08T12:51:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@jan](https://www.ruby-forum.com/u/jan)\
**Post date:** [September 8, 2006, 12:51pm UTC](https://www.ruby-forum.com/t/webrick-wont-start-with-require-statement-in-environment-rb/68002/1 "2006-09-08T12:51:37Z")

</div>

Trying to implement the ActiveRecord extension example on the Wiki site  
([http://wiki.rubyonrails.org/rails/pages/ExtendingActiveRecordExample](http://wiki.rubyonrails.org/rails/pages/ExtendingActiveRecordExample))  
WEBrick refuses to start after putting the following code in  
Config/Environment.rb

# Include your application configuration below

require ‘timestamped’  
class ActiveRecord::Base  
include Timestamped  
end

I’ve put the timestamped.rb file in the Lib\ directory as stated.

Anything I try, from empty module files to copying timestamped.rb to  
almost any directory will result in lots of errorlines stating 'error in  
require …

I’m using Rails 1.1.6. with Ruby 1.8.5 on Windows 2000.  
The application I’m extending is running fine without this line (using  
several models and controlers).

Any clues?

Thankx

Jan

---

<div class="post-metadata">

**Author:** ![jan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@jan](https://www.ruby-forum.com/u/jan)\
**Post date:** [September 9, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/webrick-wont-start-with-require-statement-in-environment-rb/68002/2 "2006-09-09T17:54:44Z")

</div>

Sorry guys,

Even copy and paste seems to be difficult…

I’d written the ‘Module Timestamped’ with the uppercase in stead of  
‘module Timestamped’. So Ruby immediately expects and End…

Jan

Jan wrote:

> Trying to implement the ActiveRecord extension example on the Wiki site  
> ([http://wiki.rubyonrails.org/rails/pages/ExtendingActiveRecordExample](http://wiki.rubyonrails.org/rails/pages/ExtendingActiveRecordExample))  
> WEBrick refuses to start after putting the following code in  
> Config/Environment.rb
> 
> # Include your application configuration below
> 
> require ‘timestamped’  
> class ActiveRecord::Base  
> include Timestamped  
> end
> 
> I’ve put the timestamped.rb file in the Lib\ directory as stated.
> 
> Anything I try, from empty module files to copying timestamped.rb to  
> almost any directory will result in lots of errorlines stating 'error in  
> require …
> 
> I’m using Rails 1.1.6. with Ruby 1.8.5 on Windows 2000.  
> The application I’m extending is running fine without this line (using  
> several models and controlers).
> 
> Any clues?
> 
> Thankx
> 
> Jan
