
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.
Create a custom body_id
from your controller and action names.
Pages#index #=> #page-index
Cars#new #=> #car-new
Add this line to your application's Gemfile:
gem 'body_id'
And then execute:
$ bundle
Or install it yourself as:
$ gem install body_id
In your application.html.erb
, or other layout files set, body_id
as the body tag's ID
###ERB
...
</head>
<body id= <%= body_id %>>
<%= yield %>
</body>
</html>
###HAML
...
%body{ id: "#{ body_id }" }
...
body_id
In case you want a custom ID for your body tag, simply create an instance variable with what you want the view's body_id to be.
class PagesContrller < ApplicationController
def index
@body_id = 'home'
end
def new
@body_id = 'awesome-custom-id'
end
end
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that body_id 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.