Fora / Facets

Unicodechars in facets (0 replies) , last by gmosx.myopenid.com, Mon, 13 Aug 2007 08:27:54 GMT
gmosx.myope: Tom, have you seen the unicode-chars gem ? http://rubyforge.org/projects/unicodechars/ I think it would be a great inclusion in facets or something. I am not sure if this is up-to-date with the latest rails code. -g.
Facets fetch bug (0 replies) , last by gmosx.myopenid.com, Mon, 09 Apr 2007 07:11:50 GMT
gmosx.myope: Tom, I have posted about this before, I have the feeling that Facets override Hash#fetch() somewhere in the code to accept one parameter instead of two (and thus breaks some valid ruby code). Does that ring any bell for you? thanks, -g.
JSON load/dump aliases (0 replies) , last by gmosx.myopenid.com, Mon, 09 Apr 2007 07:10:06 GMT
gmosx.myope: Tom, may I suggest that you add JSON.load / JSON.dump as aliases to JSON.parse / JSON.unparse. This will make the JSON parser more consistent with the YAML parser. thanks, -g.
Better to_json method for Facets (1 replies) , last by gmosx.myopenid.com, Sun, 25 Mar 2007 15:29:32 GMT
gmosx.myope: Also have a look at the code attached to this post. As you can see, Object.to_data does not handle collections as expected. -g. « gmosx.myope: I would like to suggest a better (?) Object.to_json method: < class Object def to_json JSON.unparse(self.class.name.demodulize.underscore => to_data) end end Tom, what do you think? A similar to_xml function would be very ..
  Subscribe to Facets