search for: find_all_by_character_id

Displaying 1 result from an estimated 1 matches for "find_all_by_character_id".

2009 Mar 25
6
Hash with key and value from ActiveRecord?
Heya, I think I have thinking barrier. I just want a simple hash out of an ActiveRecord. @attributes = Attribute.find_all_by_character_id(@character).hash { |u| [u.name, u.value] } and I would like to access it like @attributes[:health] but it doesn''t work. Anyone can help me out with that? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because y...