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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---