Local development - images failing to load

7 views
Skip to first unread message

Josh R

unread,
May 24, 2011, 9:00:15 PM5/24/11
to middleman-users
I'm developing locally with 1.2.7 and every other browser refresh the
image on my page fails to load. If I look at the response that rack
generates I'm seeing ...

NoMethodError at /images/work.png
undefined method `to_time' for Tue May 24 19:21:28 -0500 2011:Time
file: calculations.rb location: <=> line: 284


Any ideas?

Thomas Reynolds

unread,
May 24, 2011, 10:17:24 PM5/24/11
to middlem...@googlegroups.com
.to_time comes from ActiveSupport which, due to a new version of Rails coming out, may be in flux. Can you go to the terminal and run:

gem list padrino

and

gem list activesupport

and let me know which versions are installed?

-Thomas

Josh R

unread,
May 25, 2011, 11:42:29 AM5/25/11
to middleman-users
Ahh, I did install the pre-release version of Rails 3.1 so that is
likely the culprit. I will have to check the specific version numbers
when I get home.

Thomas Reynolds

unread,
May 25, 2011, 1:23:37 PM5/25/11
to middlem...@googlegroups.com
Let me know, I'll need to figure it out by the time Rails 3.1 ships.

-Thomas
Reply all
Reply to author
Forward
0 new messages