how to implement advanced search in rails with form validation -


i have problem scenario in ruby on rails 4, hope guys can me out.

i have products, brands, prices , users tables:

  • products: name, description,user_id,...
  • brands: title
  • prices: value, shipping_fee,...
  • users: username, password,...

i need search page allows people search products based on:

  • prices (minimum, maximum)
  • brands
  • seller name (it join users table)

what's suggestion best way implementing such scenario? (or should cleanest way)

ps1: i need validate fields in search form.

ps2: i've seen sunspot , don't think if kind of full-text search option scenario

have @ has_scope gem.

it allows implement search in controller using resource scopes.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -