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

Trying to implement the ActiveRecord extension example on the Wiki site
(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

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)
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