Skip to content

Commit

Permalink
Readme issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Banura Randika committed May 20, 2020
1 parent 3933260 commit 5d5d170
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ If the model has attributes for that you need to use for the seoable attributes
acts_as_seoable :title_seoable, :description, :keywords

def title_seoable
"#{self.name}#{self.id}"
"#{self.name}#{self.id}"
end
```
when you create a new record from this model the gem will create a corresponding seoable record as well. Above values will be set as default values.
Expand Down Expand Up @@ -171,6 +171,16 @@ def twitter_tags
end
```

For adding dynamic tags to frontend please add meta tags as follows:

```ruby
# some_controller.rb

def show
@user = User.find(params[:id])
set_meta_tags @user
end
```
### Sitemap

For sitemap you need to configure as follows:
Expand Down

0 comments on commit 5d5d170

Please sign in to comment.