I met that issue before, the error locates on in extlib/time.rb:26:

remove_method :to_time if method_defined?(:to_time) ||
private_method_defined?(:to_time)

I simply comment out that line to avoid error. but I don't know why.
who can help to figure it out?


On Apr 23, 5:07 am, lgs <[email protected]> wrote:
> Hi,
> I'm trying to get sinatra (and DataMapper) like metal end point in
> rails 2.3.2
> Doing that I get an extlib NameError :
>
> [~/rails/lego]# ruby script/console
> Loading development environment (Rails 2.3.2)
> /home/useraxis/.gems/gems/actionpack-2.3.2/lib/action_controller/
> vendor/rack-1.0/rack.rb:17: warning: already initialized constant
> VERSION
> /home/useraxis/.gems/gems/extlib-0.9.11/lib/extlib/time.rb:26:in
> `remove_method':NameError: method `to_time' not defined in Time
>
> [email protected] [~/rails/lego]# rake middleware
> (in /home/useraxis/rails/lego)
> rake aborted!
> method `to_time' not defined in Time
>
> Is that something you've already seen ?
> Thanks in advance
> luca
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to