Error messages still don't escape angle brackets?

27 views
Skip to first unread message

Kevin

unread,
Feb 27, 2014, 1:10:45 AM2/27/14
to rubyonra...@googlegroups.com
I'm finally upgrading to rails 4 with the hope that they have a better error reporting screen.


But I still see frustrating stuff like this:


Showing /Users/inspire/Projects/_rails/ap.pro/app/views/layouts/default.slim where line #1 raised:undefined method `lighten=' for #


Any tips how to hack it to actually escape it, so I can see that it's < contest:0x007fba833054e0 >< /contest:0x007fba833054e0 >?  Seems so obvious, and yet here we are 4 versions in and it isn't done automatically, whine whine...

Kevin

tamouse pontiki

unread,
Mar 1, 2014, 12:56:24 PM3/1/14
to rubyonra...@googlegroups.com
have you looked into the better_errors gem?
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/71053652-27b9-4e8a-83d8-e856c65f766a%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Hassan Schroeder

unread,
Mar 1, 2014, 1:41:39 PM3/1/14
to rubyonrails-talk
On Wed, Feb 26, 2014 at 10:10 PM, Kevin <insp...@gmail.com> wrote:

> But I still see frustrating stuff like this:

> Showing /Users/inspire/Projects/_rails/ap.pro/app/views/layouts/default.slim
> where line #1 raised:undefined method `lighten=' for #
>
> Any tips how to hack it to actually escape it, so I can see that it's <
> contest:0x007fba833054e0 >< /contest:0x007fba833054e0 >? Seems so obvious,
> and yet here we are 4 versions in and it isn't done automatically, whine
> whine...

?? I don't see any such problem displaying "angle brackets" or their
contents in any of my apps, Rails 4 or earlier.

Have you considered that it might be a problem with "slim"??

Do you have a minimal test case that demonstrates the issue?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Reply all
Reply to author
Forward
0 new messages