ActionView::Helpers::UrlHelper
current_page?
API docs (Rails 8.1.4.1) ↗def current_page?(options = nil, check_parameters: false, method: :get, **options_as_kwargs)
Description
Returns true if the given URL matches the URL of the current request, otherwise false.
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