[Rails] Re: Return only some resources from 2 tables

2009-03-12 Thread Heinz Strunk
Hey, I just tried that, didn't help. Here's the error: characters_controller.rb:21: syntax error, unexpected tIDENTIFIER, expecting '}' @character_attribute_types << CharacterAttributeType.find_all_by_character_attribute_type_category_id cat.id -- Posted via http://www.ruby-forum.com/. --~--

[Rails] Re: Return only some resources from 2 tables

2009-03-11 Thread Starr Horne
On Wed, 11 Mar 2009 18:12:12 +0100 Heinz Strunk wrote: > I'm having trouble selecting only some specific resources from 2 tables. > That's my code: > categories = %w{cat1 cat2 cat3} > categories.each { |category| > cat = CharacterAttributeCategory.find_by_name category > @character_attribute