Skip to content

Commit ecca653

Browse files
committed
Update README with GH syntax colouring
1 parent a786231 commit ecca653

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ It currently supports all of FriendlyId's features except:
1313

1414
Currently, only finds using `get` are supported.
1515

16+
```ruby
1617
@post = Post.get("this-is-a-title")
1718
@post.friendly_id # this-is-a-title
19+
```
1820

1921
## Compatibility
2022

@@ -27,6 +29,7 @@ kept in lock-step.
2729

2830
gem install friendly_id friendly_id_datamapper
2931

32+
```ruby
3033
require "friendly_id"
3134
require "friendly_id/datamapper"
3235

@@ -38,7 +41,7 @@ kept in lock-step.
3841

3942
has_friendly_id :title, :use_slug => true
4043
end
41-
44+
```
4245

4346
For more information on the available features, please see the
4447
[FriendlyId 3.x Guide](https://github.com/norman/friendly_id/blob/3.x/Guide.md).

0 commit comments

Comments
 (0)