ActionView::Helpers::UrlHelper
link_to_unless
API docs (Rails 8.1.4.1) ↗def link_to_unless(condition, name, options = {}, html_options = {}, &block)
Description
Creates an <a> if the condition is false; otherwise returns only the content, as a string.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params