Ben G
Ben G

Reputation: 26789

Rails template tags documentation

Where can I find the documentation for Rails template/layout tags? I'd like to find a complete list of the tags I can use.

Bonus points if the documentation is available for 2.3.X

Upvotes: 1

Views: 509

Answers (1)

Frederick Cheung
Frederick Cheung

Reputation: 84182

<% if, <% else and so on aren't tags that rails defines.

Instead erb allows you to use <% and <%= to embed arbitrary ruby code into the templates

Upvotes: 1

Related Questions