rails-views
Installation
SKILL.md
Rails Views
Quick Reference
| Pattern | Example |
|---|---|
| Output | <%= @post.title %> |
| Code | `<% @posts.each do |
| Link | <%= link_to 'Home', root_path %> |
| Form | `<%= form_with model: @post do |
| Partial | <%= render 'shared/header' %> |
| Helper | <%= truncate @post.body, length: 100 %> |
| Asset | <%= image_tag 'logo.png' %> |
ERB Basics
<%# Comment - won't be rendered %>