Sha256: 4572d5f1f26e3b93faf5d285f3e40a8b40f5802f58dcfbb96c0d0229709197a1

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

# SearchObject example Rails application

This is example application showing, one of the possible usages of ```SearchObject```. It showcases the following features:

  * Basic search object functionality
  * Default options
  * Using private method helpers in options
  * Plugins: model, sorting, will_paginate

## Interesting files:

  * [PostsController](https://github.com/RStankov/SearchObject/blob/master/example/app/controllers/posts_controller.rb)
  * [PostSearch](https://github.com/RStankov/SearchObject/blob/master/example/app/models/post_search.rb)
  * [posts/index.html.slim](https://github.com/RStankov/SearchObject/blob/master/example/app/views/posts/index.html.slim)
  * [PostSearch spec](https://github.com/RStankov/SearchObject/blob/master/example/spec/models/post_search_spec.rb)

## Installation

```
gem install bundler
bundle install
rake db:create
rake db:migrate
rake db:seed

rails server
```

From there just visit: [localhost:3000/](http://localhost:3000/)


## Screenshot

![Screenshot](https://raw.github.com/RStankov/SearchObject/master/example/screenshot.png)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
search_object-1.2.0 example/README.md
search_object-1.1.3 example/README.md
search_object-1.1.2 example/README.md
search_object-1.1.1 example/README.md
search_object-1.1.0 example/README.md
search_object-1.0 example/README.md
search_object-0.2 example/README.md
search_object-0.1 example/README.md