Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Fixing the " undefined method `line_offset' " Error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
randy_p  
View profile   Translate to Translated (View Original)
 More options 30 Sep 2008, 18:29
From: randy_p <randy.j.par...@gmail.com>
Date: Tue, 30 Sep 2008 10:29:52 -0700 (PDT)
Local: Tues 30 Sep 2008 18:29
Subject: Fixing the " undefined method `line_offset' " Error
Previous workarounds for this error downgraded Haml to an older
revision.

StaticMatic assigns Haml::Error instances to 'haml_error' when it
rescues exceptions.  The Haml module contains a class called Error,
which is only a few lines long - see lib/haml/error.rb.  This Error
class was simplified after Haml 1.8.2, and now contains only one
public attribute named 'line'.  Haml no longer has (public) error
attributes called 'line_offset' or 'haml_line'.

So the error identification works again if you edit the StaticMatic
file 'base.rb' and change  'haml_error.line_offset' on line 135 to
"haml_error.line", and also change  'haml_error.haml_line'  on line
186 to the same thing.

These line numbers are from StaticMatic 0.9.4.

The way I install gems on my Mac, the 'base.rb' file is in
/Library/Ruby/Gems/1.8/gems/staticmatic-0.9.4/lib/staticmatic


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google