Displaying 20 results from an estimated 27 matches for "search_control".
2009 Jul 30
6
How can I change member action names on routes?
I have some controllers with member/collection actions. I want to change
the name of those actions on the routes, so I can translate the action
"/search" to German, for example. How can I do it? I will appreciate any
help.
--
Posted via http://www.ruby-forum.com/.
2006 Jul 18
6
backgroundrb - Connection closed
.../usr/local/lib/ruby/1.8/drb/drb.rb:1167:in `open''
/usr/local/lib/ruby/1.8/drb/drb.rb:1082:in `method_missing''
/usr/local/lib/ruby/1.8/drb/drb.rb:1100:in `with_friend''
/usr/local/lib/ruby/1.8/drb/drb.rb:1081:in `method_missing''
/app/controllers/search_controller.rb:100:in `start_source_processing''
/app/controllers/search_controller.rb:99:in `start_source_processing''
/app/controllers/search_controller.rb:20:in `simple''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:910:in
`perform...
2006 May 23
1
Help with observe_field
...arch %>
<%= observe_field(:search,
:frequency => 0.25,
:update => :search_hits,
:url => { :action => "search"}) %>
<p>Search Results:</p>
<div id="search_hits"></div>
__Controller: search_controller.rb__
class SearchController < ApplicationController
WORDLIST = %w(Rails is a full-stack, really cool, open-source, free
thingy!)
def search
@phrase = request.raw_post || request.query_string
matcher = Regexp.new(@phrase)
@results = WORDLIST.find_all {|word|word =~ matcher}...
2006 Jun 06
1
stack level too deep
...f #{score}"
end
puts count
end
end
This is wht i ended up with:
http://localhost:3000/search/index
SystemStackError in SearchController#index
stack level too deep
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/controllers/search_controller.rb:11:in `index''
#{RAILS_ROOT}/app/controllers/search_controller.rb:11:in `index''
.
.
.
Reply please if some one know the answer
--
Posted via http://www.ruby-forum.com/.
2007 May 10
5
Segmentation fault on large index
...rb:411:in
`[]''
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:411:in
`[]''
/usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize''
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:403:in
`[]''
/app/controllers/search_controller.rb:133:in `do_search''
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:385:in
`search_each''
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:384:in
`search_each''
/usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize...
2007 Jun 01
2
Is aaf multi_search broken?
...xpected an instance of Array.
The error occurred while evaluating nil.map
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:131:in
`id_multi_search''
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:113:in
`multi_search''
#{RAILS_ROOT}/app/controllers/search_controller.rb:53:in `search''
I have configured indexing like this:
acts_as_ferret :fields => [:index_text, :index_locations], :single_index
=> true
acts_as_ferret :fields => [:index_text, :index_locations], :single_index
=> true
Maybe I''m doing something wrong?
Thanks,
St...
2006 Aug 10
1
Indexing weirdness
...file to read
vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:284:in `search''
vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:284:in
`find_id_by_contents''
vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:246:in
`find_by_contents''
#{RAILS_ROOT}/app/controllers/search_controller.rb:55:in `search''
I noticed that the index/development/[ModelName] folder was being
recreated, but empty.
Luckily I managed to get the rebuild_index.rb script working, which
recreated the index folder structure, and then added a couple of files:
_a.cfs and segments
I can now searc...
2006 Jul 07
4
Help installing Ferret
...RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/models/result.rb:27:in `search_each''
#{RAILS_ROOT}/app/models/result.rb:27:in `search_index''
#{RAILS_ROOT}/app/models/result.rb:15:in `count''
#{RAILS_ROOT}/app/controllers/search_controller.rb:25:in `get_results''
I''m beat,, I did everything I mostly understand what is happeneing on
the code.. But still nothing
Though at
require ''ferret''
module FerretConfig
include Ferret
INDEX = Index::Index.new(:path =>
''f:/home/jan/workspac...
2007 Nov 09
2
Problem with stemming and AAF
...9;'m sure I''m missing something completely obvious here, so I hope
someone can point me in the right direction!
I''ve implemented a basic search with AAF, which works as expected; I''m
running a ferret drb server, and using will_paginate to page results.
The code in my search_controller.rb:
search_text = params[:query] || " "
@products = Product.find_with_ferret(search_text, :page =>
params[:page], :per_page => #$ItemsPerPage, :limit => $ItemsPerPage,
:offset => $offset)
@results_pages = Product.paginate_search(search_text, :page =>
params[:page], :per...
2006 Sep 06
7
Error on Windows and FreeBSD
...undefined method `table_name'' for Stop:Class
|(__DELEGATION__):2:in `__send__''
(__DELEGATION__):2:in `table_name''
#{RAILS_ROOT}/app/models/search.rb:58:in `find_runs''
#{RAILS_ROOT}/app/models/search.rb:44:in `depature_runs''
#{RAILS_ROOT}/app/controllers/search_controller.rb:100:in `results''|
So my results action gives an error for table_name! The Stop model is
used by various other controllers just fine. In Console I can do
Stop.find_all, so I dont see how this error is being generated,
besides the application server, mongrel, webrick or other...
2006 Nov 01
1
strange issue with backgroundrb behind apache/lighttpd
...ocalhost:22222) /usr/lib/ruby/1.8/drb/invokemethod.rb:10:in `block
_yield''
(druby://localhost:22222) /usr/lib/ruby/1.8/drb/invokemethod.rb:17:in `perfo
rm_with_block''
(druby://localhost:22222) /usr/lib/ruby/1.8/drb/invokemethod.rb:14:in `each''
/app/controllers/search_controller.rb:123:in `__bind_1162385227_815142''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/
object/extending.rb:44:in `[]''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/
object/extending.rb:44:in `instance_exec'...
2006 Jul 09
3
acts_as_ferret.. what does it actually do?
Okay in this plea for help I''m going to repeat some of what i posted
before but with a larger amount of background info in the hope that i
can get a decent grip on ferret before it wriggles away..
Firstly, what does installing the acts_as_ferret plugin actually do? I
install it and add it to my model and then the index is automatically
generated and a few methods are added to it and
2006 Feb 23
3
rake error
...agers_controller.rb (first_time,
not_needed)
** Invoke app/controllers/login_controller.rb (first_time, not_needed)
** Invoke app/controllers/facilities_controller.rb (first_time,
not_needed)
** Invoke app/controllers/placements_controller-works.rb (first_time,
not_needed)
** Invoke app/controllers/search_controller.rb (first_time, not_needed)
** Invoke app/controllers/application.rb (first_time, not_needed)
** Invoke app/controllers/placements_controller_ez_ware_in_progress.rb
(first_time, not_needed)
** Invoke app/controllers/reports_controller.rb (first_time, not_needed)
** Invoke app/helpers/reports_hel...
2006 Nov 23
2
Conditional queries
...state and their start/end date. Whilst the code I have at the
moment is doing this without problem, some of the Page items may not
have an end date set and I can''t see a way of conditionally doing the
query so these are not excluded.
Perhaps showing some code will help explain better;
search_controller.rb
@results = Page.multi_search(
"active:(true)
*:(#{params[:s]})
search_start_date:( <= #{Time.now.strftime("%Y%m%d")} )
search_end_date:( >= #{Time.now.strftime("%Y%m%d")} )",
[],
{:offset => @offset,...
2008 Jun 04
0
routers are handled incorrectly on production
...r"=>"admin"}
ActionController::UnknownAction (No action responded to orders):
The file hierarchy is:
$ ls -xR1 ./app/controllers/
./app/controllers/:
admin
admin_controller.rb
application.rb
categories_controller.rb
category_controller.rb
info_controller.rb
login_controller.rb
search_controller.rb
store_controller.rb
./app/controllers/admin:
orders
orders_controller.rb
./app/controllers/admin/orders:
line_items_controller.rb
--
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name
--~--~---------~--~----~------------~-------~--~----~
You received this message because you ar...
2007 Apr 03
5
Inifinite loop problem with DRb server
...gins/acts_as_ferret/script/ferret_start
# app/models/email.rb:
class Email < ActiveRecord::Base
acts_as_ferret :store_class_name => true, :remote => true,
:fields => (self.content_columns.map(&:name) rescue []) +
%w(main_identifier party_display_name)
end
# app/controllers/search_controller.rb
class SearchController < ApplicationController
def quick
@results = Email.id_multi_search(params[:q], %w(Contact Company))
end
end
# Backtrace
stack level too deep
(druby://127.0.0.1:3000) /usr/local/lib/ruby/1.8/drb/drb.rb:1649:in
`current_server''
(druby://127.0.0.1:300...
2007 Mar 21
2
store_class_name for Comatose:Page model
...ulti_search''
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:437:in
`multi_search''
#{RAILS_ROOT}/app/controllers/application.rb:44:in `run_search''
#{RAILS_ROOT}/app/controllers/application.rb:68:in `full_text_search''
#{RAILS_ROOT}/app/controllers/search_controller.rb:16:in `index''
-e:4:in `load''
-e:4
The ferret index files include the name Comatose::Page and are put in
index/developement/comatose/page directory.
Any idea why I might get that error?
I dont get it with results = Comatose::Page.find_by_contents(q, options)
Best regards,...
2006 May 05
1
Agile Rails (1st edition), depot TDD "exercise"
...st (that fails)
for new code. The new code (a search function) is left as an exercise
for the reader. Well, I think I solved it but I''m not sure I did it
right (even though it passes the test).
After much experimentation, here''s what I did:
1. Edit the depot/app/controller/search_controller.rb file:
class SearchController < ApplicationController
def search
@query = String.new(params[:query])
@products = Product.find(:all,
:conditions => "title like ''%#{@query}
%'' OR
descript...
2007 Feb 02
0
Error: uninitialized constant LockError
.../index.rb:382:in
`[]''
/var/ruby/ioffer.com/app/current/app/models/item.rb:878:in
`convert_search_hits_to_items''
/var/ruby/ioffer.com/app/current/app/models/item.rb:877:in
`convert_search_hits_to_items''
/var/ruby/ioffer.com/app/current/app/controllers/search_controller.rb:221:in
`list''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:
941:in `perform_action_without_filters''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.
rb:368:in `perform_action_without_benchmark'...
2005 Dec 14
2
undefined method `add'' for Ferret::Search::BooleanQuery
...''
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.3.1/lib/ferret/index/index.rb:302:in
`synchronize''
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.3.1/lib/ferret/index/index.rb:302:in
`search_each''
#{RAILS_ROOT}/app/models/resume.rb:40:in `search''
#{RAILS_ROOT}/app/controllers/search_controller.rb:14:in `index''
Is this a known bug?
Thanks,
Carl