Closed r7kamura closed 1 year ago
@r7kamura hey, that's not a template itself. It's a template that generates another template that is gonna be used when you do e.g rails g scaffold Post name:string
. So looks like someone just copy pasted it directly into their app instead of using generator.
P.S See examples here https://stackoverflow.com/a/40487753/336626
I see. Thanks for letting me know, very helpful 👍
I'm having a little trouble on applying an ERB linter for ERB templates generated by simple_form gem, as the ERB parser provided by better_html doesn't seem to support the
<%% ... %%>
format.Unlike the general ERB format, lib/generators/simple_form/templates/_form.html.erb is using
<%% ... %%>
instead of<% ... %>
format. Is there any particular reason why this format is used here?