'attribute' is just an alias to 'has' - they're the same method (just the former is unpublicised).
I don't have time to research - got a flight in a few hours - but I'd guess 'loop' is a kernel method for Ruby, and that's what's causing the issue. Try one of the following: has :loop attribute :loop Cheers -- Pat On 09/12/2008, at 9:32 AM, j0llyr0g3r wrote: > > Hey, > > maybe i was a little bit to quick with my joy....:-| > > As i said > > attribute beat > > works fine, but actually i wanted to filter after 3 attributes (all > booleans). > > First i tried: > > attribute beat > attribute vocals > attribute loop > > but then Webrick exits on start-up with: > > ruby script/server > => Booting WEBrick... > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/ > callbacks.rb:163:in `call': Cannot yield from a Proc type filter. The > Proc must take two arguments and execute #call on the second argument. > (ArgumentError) > from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/ > active_support/callbacks.rb:90:in `run' > from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/ > active_support/callbacks.rb:90:in `each' > > I also tried > > attributes beat, vocals, loop > > or > > attribute beat, vocals, loop > > which give back the same error message. > > How can i tell thinking sphinx that i want to have multiple > attributes? > > Oh, and one more thing: > > As far as i see, the "attribute foo" syntax isn't even mentioned at > all in the documentation? > > In the example it's "has" instead: > > # attributes > has created_at, role_id > has posts(:id), :as => :post_ids > > What is the difference? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Thinking Sphinx" 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/thinking-sphinx?hl=en -~----------~----~----~----~------~----~------~--~---
