Complete the code to use a Rails view helper that creates a link to the home page.
<%= link_to 'Home', [1] %>
The root_path helper returns the path to the home page defined in routes.
Complete the code to safely display user input in a view using a Rails helper.
<%= [1](user_input) %>raw which outputs unsafe HTMLhtml_safe on untrusted inputThe sanitize helper cleans user input to prevent harmful HTML or scripts.
Fix the error in the code to correctly display a formatted date using a Rails view helper.
<%= [1](user.created_at, format: :short) %>format_datestrftime which is a Ruby method, not a helperThe l helper localizes and formats dates and times according to Rails conventions.
Fill both blanks to create a form input field with a label using Rails view helpers.
<%= [1] :user, :email %> <%= [2] :user, :email %>
text_field instead of email_field for email inputsThe label helper creates a label tag, and email_field creates an input for email.
Fill all three blanks to create a link that opens in a new tab with Rails view helpers.
<%= link_to [1], [2], [3]: '_blank' %>
rel instead of target for opening in new tabsThe first argument is the link text, the second is the URL, and the third is the option key target to open in a new tab.