Skip to content
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

Dynamic strong params list for Rails 4 #53

Open
isness opened this issue Apr 18, 2016 · 0 comments
Open

Dynamic strong params list for Rails 4 #53

isness opened this issue Apr 18, 2016 · 0 comments

Comments

@isness
Copy link

isness commented Apr 18, 2016

I18n.available_locales.each { |locale| attr_accessible "name_#{locale}" }

Is there a nice way to do this in Rails 4? I understand I have to list all fields as strong params, but I've been unable to find any nice looking solution if there are many locales and a lot of translated fields.
#18

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

No branches or pull requests

1 participant