Rails

Build reliable Rails apps avoiding ActiveRecord traps, N+1 queries, and callback pitfalls.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Rails" with this command: npx skills add ivangdavila/rails

Quick Reference

TopicFile
N+1, callbacks, validations, scopesactiverecord.md
Strong params, filters, rendercontrollers.md
Route conflicts, constraintsrouting.md
Partials, helpers, caching, XSSviews.md
ActiveJob, Sidekiq, retriesjobs.md
Mass assignment, CSRF, SQL injectionsecurity.md

Critical Rules

  • save returns false on failure — save! raises, check return or use bang
  • update_all/delete_all skip callbacks and validations — data corruption if unaware
  • find_each for batches — Model.all.each loads entire table into memory
  • redirect_to doesn't halt execution — code after it runs, use and return
  • dependent: :destroy missing — orphan records accumulate forever
  • default_scope pollutes all queries including joins — almost always wrong
  • Callbacks chain silently — throw :abort stops save but returns false, not exception
  • includes without references in where string — N+1 still happens
  • ||= memoization caches nil/false — use defined?(@var) ? @var : @var = compute
  • has_many through: vs has_and_belongs_to_many — latter has no join model for attrs
  • Nested before_action — multiple inheritance makes flow unreadable
  • render doesn't stop action — code continues, duplicate render crashes

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

Aws Security

List of open source tools for AWS security: defensive, offensive, auditing, DFIR, etc. my arsenal of aws security tools, shell, auditing, aws-infrastructure,...

Registry SourceRecently Updated
860Profile unavailable
Security

Adversarial Robustness Toolbox

Adversarial Robustness Toolbox (ART) - Python Library for Machine Learning Security - Evasion, Poiso adversarial robustness toolbox, python, adversarial-atta...

Registry SourceRecently Updated
1060Profile unavailable
Security

Voidly Agent Relay

Give agents encrypted private messaging — send, receive, discover, and call other AI agents with post-quantum E2E encryption. No API key needed. Zero config.

Registry SourceRecently Updated
1653Profile unavailable
Security

Watadot Aws Iam

IAM security patterns by Watadot Studio. Manage users, roles, and policy verification.

Registry SourceRecently Updated
00Profile unavailable