Sha256: 444eccaf58a5ddb8bcd87231735376581a90334918d88a03f36753ed9ab08c8c
Contents?: true
Size: 877 Bytes
Versions: 1
Compression:
Stored size: 877 Bytes
Contents
- title t('.title') <% if turbo = defined? Stimulus -%> %p.nav{data: {controller: "navigation"}} <% else -%> %p.nav <% end -%> <% if options[:cancan] -%> - if can? :index, <%= class_name %> <% if turbo -%> = link_to t('Back'), <%= plural_name %>_path, class: 'back', data: {action: "navigation#back", turbo_action: 'replace'} <% end -%> = link_to t('index'), <%= index_helper %>_path, class: 'index' <% if turbo -%> - else = link_to t('Back'), '', class: 'back', data: {action: "navigation#back", turbo_action: 'replace'} <% end -%> <% else -%> <% if turbo -%> = link_to t('Back'), <%= plural_name %>_path, class: 'back', data: {action: "navigation#back", turbo_action: 'replace'} <% end -%> = link_to t('index'), <%= index_helper %>_path, class: 'index' <% end -%> = render 'form', <%= singular_table_name %>: @<%= singular_table_name %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
advanced_haml_scaffold_generator-3.0.0 | lib/rails/generators/haml/scaffold/templates/new.html.haml |