ActionView::Helpers::UrlHelper
link_to_unless_current
API docs (Rails 8.1.4.1) ↗def link_to_unless_current(name, options = {}, html_options = {}, &block)
Description
Creates an <a> unless the given URL is the current page; on the current page, returns only the content, as a string.
This site renders with
GET /articles?page=2, shown above the ERB, as the current request.ERB
Changes from the previous output: Added Removed Changed
Current request
GET /articles?page=2
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params