Skip to content

Commit

Permalink
Editted to display properly
Browse files Browse the repository at this point in the history
  • Loading branch information
lolaodelola committed Aug 21, 2014
1 parent 4807753 commit 963782f
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,6 @@ a change on delimiter setting, make sure the string will match. See
You can also add and remove tags by direct assignment. Note this will
remove existing tags so use it with attention.

### Finding most or least used tags

You can find the most or least used tags by using:

User.most_used
User.least_used

You can also filter the results by passing the method a limit, however the default limit is 50.

User.most_used(10)
User.least_most(10)


```ruby
@user.tag_list = "awesome, slick, hefty"
@user.save
Expand Down Expand Up @@ -177,6 +164,22 @@ end
@user.tag_list # => ["north", "east", "south", "west"]
```

### Finding most or least used tags

You can find the most or least used tags by using:

```ruby
User.most_used
User.least_used
```

You can also filter the results by passing the method a limit, however the default limit is 50.

```ruby
User.most_used(10)
User.least_most(10)
```

### Finding Tagged Objects

Acts As Taggable On uses scopes to create an association for tags.
Expand Down

0 comments on commit 963782f

Please sign in to comment.