Hi,
I have just installed thinking sphinx and want to test a simple search
in my class:
this is my model:
class Ticket < ActiveRecord::Base
belongs_to :status
define_index do
indexes [name, firstname], :as => :name, :sortable => true
#indexes status.name, :as => :status, :sortable => true
end
end
this is my controller ( method index):
def index
@tickets = Ticket.search params[:search]
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @tickets }
end
end
I don't know what i have to write in my view to display and link a
search input text?
Nevertheless, the search works in development console!
Thank you
--
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.