-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a model Publication and a model Category in my Rails app. Both are connected with a has_and_belongs_to_many association.
Now I would like to search publications that match one or more categories. If more than one category is given they have all assigned to the publication. I want to specify…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I need to reaqlize search in product model with prices in different currencies (price and currecny_id field). Every currency have own rate.
When user search for product in price range [x, y] USD, range must be converted to all currencies and return values like
(price > from_eur AND price…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Imagine a code:
search = Project.search(
:title_or_description_or_child_name_or_child_age_or_inspiration_or_decorating_style_or_favorite_item_or_others_like_any => keys,
:galleries_id_like_any => @g,
:styles_id_like_any => @st,
:tags_like_any => @t
)
search.all returns the rows…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey all,
I'mt not too familiar with searchlogic plugin for rails (I did view the railscasts but wasn't helpful in relation to the specific code below). Can anyone briefly describe how it is being used in the three methods below? Thanks for any response.
def extract_order
@order_by = if params[:order]…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I am useing searchlogic to search some paintings. Each painting belong to a single category. What I would like to do is add multiple checkboxes to my search form, so that users can mark multiple categories. (joined with or) Is this possible with searchlogic? The query I am looking for is something…
>>> More