RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

ERb, Whitespace, and Indentation in Rails Generator Templates

Basic strategies for managing whitespace in generator ERb templates and their output. We can use whitespace-eliminating delimiters from ERb, generator helper methods, and built-in indentation helpers. https://garrettdimon.com/journal/posts/erb-whitespace-and-indentation-in-rails-generator-templates

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in