README.md in forty_facets-0.0.5 vs README.md in forty_facets-0.0.6
- old
+ new
@@ -6,11 +6,12 @@
FortyFacets lets you easily build explorative search interfaces based on fields of your ActiveRecord models.
![demo](demo.gif)
-Try a [working demo](http://forty-facets-demo.herokuapp.com/ "Testinstallation on heroku")!
+See it implemented in a [example rails application](https://github.com/fortytools/forty_facets_demo) or
+try a [working demo](http://forty-facets-demo.herokuapp.com/ "Testinstallation on heroku")!
It offers a simple API to create an interactive UI to browse your data by iteratively adding
filter values.
The search is purely done via SQL queries, which are automatically generated via the AR-mappings.
@@ -53,10 +54,10 @@
class MovieSearch < FortyFacets::FacetSearch
model 'Movie' # which model to search for
text :title # filter by a generic string entered by the user
range :price, name: 'Price' # filter by ranges for decimal fields
facet :genre, name: 'Genre' # generate a filter with all values of 'genre' occuring in the result
- facet :year, name: 'Releaseyear', order: :year # additionally oder values in the year field
+ facet :year, name: 'Releaseyear', order: :year # additionally order values in the year field
facet :studio, name: 'Studio', order: :name
orders 'Title' => :title,
'price, cheap first' => "price asc",
'price, expensive first' => {price: :desc, title: :desc}