-
Notifications
You must be signed in to change notification settings - Fork 160
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
undefined method `to_region_select_tag' #62
Comments
Are you using Rails 5? I am upgrading my app to Rails 5.1 and I'm getting this same error ... :/ |
Hi @RashedKhalfan & @Onikoroshi It looks like the maintainer is no longer maintaining the gem (as of 3 years ago). Unfortunately the gem also does not specify an incompatibility with Rails 5. If you'd like, you're more than welcome to the patched version I've made. Just update your gemfile with:
I'd suggest you take a look at the difference to understand why it didn't work: The basic gist is that the Enjoy |
@abrom I should have used; |
FYI i've created a branch to also add support for Rails 6. I can't see any breaking changes from 5 to 6 so the update was pretty minimal. https://github.com/Studiosity/carmen-rails/tree/rails-6 I'm going to continue testing and if everything looks good I'll merge it down to the master branch |
@abrom Thank you very much!! |
Dear all
I'm sorry if my error sound silly. I'm getting this error while implementing carmen on my rails app:
undefined method
to_region_select_tag' for #ActionView::Helpers::Tags::Base:0x5d83a18`
this is my form code
`
<%= simple_form_for @practitioner do |f| %>
<% if practitioner.errors.any? %>
<%= pluralize(practitioner.errors.count, "error") %> prohibited this practitioner from being saved:
<% end %>
<%= f.country_select :country, priority: %w(US CA), prompt: 'Please select a country' %>
The text was updated successfully, but these errors were encountered: