Displaying 13 results from an estimated 13 matches similar to: "Strange wildcard problem"
2012 Feb 02
3
MVC questions with rails
2006 Apr 19
2
I need help in ActiveRecord..
I have this Product.find(:all, :include => [:brand, :category, :type],
:group =>
"description"), but it dont group by description why?
Bruno
--
Posted via http://www.ruby-forum.com/.
2006 Jul 26
1
How to create table entry with multiple related categories?
Perhaps I should create a table row to hold an array of category ID''s?
There''s probably an easy standard way of doing this in RoR and I just
can''t wrap my brain around a practical way to do this right off.
Specifically...
I have a table that contains my product category names and another table
that contains my actual product names with other product specific
2008 Jan 11
0
how do I get rid of this routing warning?
map.category ''product_category/:page/path/:path'',
:controller => ''product_category'',
:action => ''show'',
:requirements => {:path => /.+/, :page=>/\d+/},
:page =>1
warning is
"Route segment ":page" cannot be optional because it precedes a
required segment. This segment will be
2006 Nov 17
6
RESTful routes and resulting urls
if I have the following in my routes.rb:
map.resources :product_categories
it provides urls such as:
/product_categories
/product_categories/1
/product_categories/1;edit
etc.
and uses the ProductCategories controller.
how can I keep the same controller (and model) but set up the resources
so that I can have any abitrary url point to the existing controller,
much like specifying the controller
2007 Sep 05
8
Hi..Guys new plugin again
Hi..
Guys new plugin again
Foreign Key Associations is a plugin that automatically creates
associations based on foreign-keys. The associations are created at
runtime-ie. as your ActiveRecord models are loaded-so they will always
be up-to-date.
For example, given a foreign-key from a customer_id column in an
orders table to an id column in a customers table, the plugin
creates:
2007 Aug 23
4
scoring problem in acts_as_ferret
Hi,
I am using acts_as_ferret and have a problem with scoring. I would like
to organize it in such way that, if any of the searched terms fits, I
get 1.0 score as a result. I will explain it on the example.
I have in index:
a) "one two three four"
b) "one two three"
c) "one two"
d) "one"
When I search for "one" I would like to get 1.0 score for
2006 Apr 01
0
Newbie question: How to reference models in subdirectories
Hi, new to RoR I am probably going to embarrass myself now:
I have models organised in subdirectories, i.e.
models
|--material
|--product.rb
|--cross-applications
|--currency.rb
When I try to reference another model within the same subdirectory,
everything works fine, i.e.
belongs_to :product_categories, :class_name =>
''Material::ProductCategory"
2006 Sep 29
4
limit results to specific IDs
How would you go about searching only a specific set of IDs in
acts_as_ferret? Should I just create a huge "or" query or is there a
more stylish way?
Thanks,
Winton
--
Posted via http://www.ruby-forum.com/.
2006 Sep 09
2
search_each segmentation fault and parser anomoly
The included test script turned up the following anomolies (run
against Ferret 0.10.3, but had same problems with 0.10.2):
1. When the content word is not in the index the inclusion of a
wildcard file term causes search_each to throw a segmentation
fault.
$ ./test.rb zzz file:*.txt
query: +content:zzz +file:*.txt
./test.rb:28: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24)
2005 Dec 27
3
myObject.send(column.name) from Agile Development book
I''m studying the Agile Development with Rails book. In the chapter that
first sets up the depot application (page 68), there is this bit of code
from a view:
<% for product in @products %>
<tr>
<% for column in Product.content_columns %>
<td><%=h product.send(column.name) %></td>
<% end %>
etc...
I am trying to absorb both Ruby and
2006 Sep 20
3
Range searches some times they work, some times not...
Hi i''m using ferret to enable geographical postcode. I take a postcode
and distance in miles from the user, strip off the outcode and then
retrieve the associated x y coordinates in metres from the db. Then i
get two temp x''s and y''s and search for all results that are within the
box, see code below.
Problems start to occur when i search on big distances so for
2006 Sep 21
0
Ferret-0.10.6 released
Hey folks,
I just released Ferret 0.10.6. In case you haven''t noticed, we have
gone beta so the API should be pretty solid now. From now on,
backwards compatibility will be a major priority. Also, I''m going to
try and do a better job of recording changes and making the release
announcements regularly so people know what is going on.
== Changes:
* Fixed scoring of