I have a class called ListingUrl and a corresponding Controller with routes such as "/websites/1/listing_urls/2". When I call add_breadcrumb and give it the url where the breadcrumb should link to, add_breadcrumb throws an exception inside the eval() because it's trying to eval a string which is a URL, not ruby code:
This appears to happen because the eval is invoked not just on symbols, which are used to specify methods to call to generate the necessary URLs, but also on strings, which probably shouldn't be getting eval'ed.
I have a class called ListingUrl and a corresponding Controller with routes such as "/websites/1/listing_urls/2". When I call add_breadcrumb and give it the url where the breadcrumb should link to, add_breadcrumb throws an exception inside the eval() because it's trying to eval a string which is a URL, not ruby code:
The calling code looks roughly like this:
This appears to happen because the eval is invoked not just on symbols, which are used to specify methods to call to generate the necessary URLs, but also on strings, which probably shouldn't be getting eval'ed.