Render the admin navigation bar if a user is signed in.
You don't have to check if the user is signed in before using this method Ecrire will check this automatically
Render the favicon tag
Will generate the asset url given with the
nameof your favicon.
Render the <main> tag
html_optionsis a hash that will map to key/value for the tag. Unless you know what you are doing, you should not specify an id in
html_options. Ecrire will generate one using the controller and action for the given request.
You can also provide any key/value that you wish to see rendered in the main tag.
Example with posts#index (/posts):
<%= main_tag contentEditable: true do %> Hello world! <% end %> <main contentEditable=true id='PostsIndex'> Hello world! </main>
Another example with posts#index (/posts):
<%= main_tag class: 'content' do %> Hello World! <% end %> <main class='content' id='PostsIndex'> Hello World! </main>
Render a RSS auto-discovery tag
You can pass another relative path if you want. Ecrire will render an absolute path using the
Render <title> tag
The content of the title tag can be one of three things. In priority of order:
The value of content_for(:title) if it's set,
The title of the variable @post, if it's set,
If you need more information about content_for and how to use it, please read: ecrire.io/posts/configure-layout-element-with-content_for