What are Rails helpers?

Answer

Rails helpers are modules containing methods used to simplify view templates. They are automatically available in corresponding views. Built-in helpers: link_to "Home", root_path generates an anchor tag; image_tag "logo.png" generates an img tag; form_with model: @post generates a form; number_to_currency(100) formats numbers; truncate(text, length: 100) truncates strings. Custom helpers go in app/helpers/ modules. Helpers keep views clean by extracting reusable presentation logic out of templates.