Skip to content

Helpers Without Underscore in Rails 8, e.g. checkbox textarea #759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lcreid
Copy link
Contributor

@lcreid lcreid commented Jun 27, 2025

Rails 8 takes the underscore out of some view helper names, while supporting the old ones as aliases. We'll continue to use our methods with the old names, until we don't have to support 7.2 anymore. This PR creates aliases for Rails 8 helpers, so users of bootstrap_form on Rails 8 can start using the new names.

The demo app, which is Rails 8, now uses the new names.

Fixes: #744 .

@lcreid lcreid requested a review from donv June 27, 2025 23:59
@lcreid lcreid self-assigned this Jun 27, 2025
@lcreid lcreid changed the title 744 checkbox textarea Helpers Without Underscore in Rails 8, e.g. checkbox textarea Jun 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

text_area and check_box are renamed respectively to textarea and checkbox as of Rails 8
1 participant