Skip to content

Commit

Permalink
Added syntax highlihting
Browse files Browse the repository at this point in the history
  • Loading branch information
eddloschi committed Dec 22, 2013
1 parent b6da31e commit e87218a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The configuration file is automatically loaded when using Rails from `config/giz

**Example:** *(the `xmlpipe_command` used here is already the one used in rails automatically so it's not needed, just for illustration)*

```
```yaml
development:
file:
output_path: "/tmp/sphinx/sphinx.conf"
Expand Down Expand Up @@ -73,7 +73,7 @@ It's `Class.all` by default.

**Example:** Creating a index on the person model

```
```ruby
class Person
include Mongoid::Document
include Mongoid::Giza
Expand Down Expand Up @@ -109,7 +109,7 @@ This dynamic index will generate one index for each job that is associated to a
On each index only the people that have that job will be indexed.
Finally each dynamic attribute of the job will be a field on its index.

```
```ruby
class Job
include Mongoid::Document

Expand Down Expand Up @@ -166,7 +166,7 @@ Every other [Riddle::Client](http://rdoc.info/github/pat/riddle/Riddle/Client) s

**Example:** Searching on the person class

```
```ruby
results = Person.search do
fulltext "john"
with :age 18..40
Expand Down

0 comments on commit e87218a

Please sign in to comment.