
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
SeoFriendly gem provides easy way to insert meta information (title, description, keywords) on almost all pages of your application. Gem extract meta information for model from it's fields or from any source you specify.
gem 'seo_friendly'
For fast gem integration run generator that copy migration files and default source config into your application. Gem use monkey patching to add new methods to ActiveRecord and new view helpers.
$ rails generate seo_friendly:install
Create your own seo source class for any model and specify information which will be used to create meta tags. Example:
# seo source class for Page model
class PageSeoSource < DefaultSeoSource
# title information will be extracted from title field of Page instance
def title
instance.title
end
# description will be always constant for Page
def description
'Awesome pages of my beautiful application'
end
# Page model can have for example tags reference that you can use to generate keywords.
def keywords
instance.tags.join(' ,')
end
end
On views you can insert meta tags using helper
= meta_tags(@page) %>
To update meta information every time when you update records add to model callback:
after_save :update_seo_attributes
If you change model source and want to update seo information for all instances of this model you can use rake task
$ rake seo_friendly:regenerate[ModelName]
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that seo_friendly demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.