You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want just to filter by ads type, possible solution would be passing type_id param on index action and applying something like where(type_id: params[:q][:type_id]) if params[:q][:type_id].present? to scope.
Then you can make buttons and/or form with input, which will send [:q][:type_id] param.
Hi,
I am a first year student and a beginner in ruby.
I'd like to know what's the best way to make filters on the advertisement types ? like some tag or button (one per type) we could click ?
Thanks
The text was updated successfully, but these errors were encountered: