Hey Andy,
addywaddy a écrit :
> Thanks to your fix, #{attributes.name} renders "Group 1", but I can't
> get to "John". My active record object is the result of this finder:
Yeah. I guess the fix can be made even more trivial by relying on the
String#evalJSON method in sanitized mode instead of manually running the
string.
Basically, this just requires prefixing each dynamic fragment with
"object." or something, then evalJSON'ing.
I don't have a minute to spare just now but you should try along these
lines, it probably goes something like this:
// START OF FIX
return before + ('object.' + match[3]).evalJSON(true);
// END OF FIX
--
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---