Ransack UI (github.com/ndbroadbent/ransack_ui) created by Nathan Broadbent (ndbroadbent), provides a front-end to the ransack search gem by Ernie Miller - github.com/ernie/ransack
This app demonstrates the quickest route to getting ransack_ui up running on your rails app.
-
Clone this repo
-
Edit config/database.yml if needed
-
bundle install; rake db:create; rake db:migrate
-
rails server
-
Visit localhost:3000/items
rails new ransack_ui_test cd ransack_ui_test rails g scaffold Item name:string rake db:create; rake db:migrate
Add the following to your Gemfile:
gem 'ransack_ui'
Then
bundle install
Now add this snippet to app/controllers/items_controller.rb
<%= ransack_ui_search %>
-
Start your rails server and go to localhost:3000/items
-
Add some names and search for them