I'm using the Transitions state machine and it requires a model field
named "state" that is a string. It's not working though. rake ts:dd is
running, but even if I do a rake ts:rebuild, it doesn't work.

Any thoughts?

------------------------------------------------------------

Here is my model entry:

    define_index do
        indexes content
        indexes raw_location

        has zipcode(:id), :as => :zipcode_id
        has "RADIANS(zipcodes.lat)", :as => :lat,  :type => :float
        has "RADIANS(zipcodes.lon)", :as => :lon, :type => :float
        has expires_at
        has created_at
        has state    # <-----------------

        set_property :delta => :delayed
    end


Controller:

    @posts = Post.search("#{@search}",
                    :geo => @loc.try(:lat_lon_radians),
                    :with => {:state => "active", "@geodist" =>
0.0..160_000.0},
                    :order => @order + ", @geodist ASC")
------------------------------------------------------------

-- 
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.

Reply via email to