Skip to content
This repository has been archived by the owner on Aug 17, 2017. It is now read-only.

Exceptions thrown when permitting array columns #153

Open
sgrif opened this issue Jun 12, 2013 · 2 comments
Open

Exceptions thrown when permitting array columns #153

sgrif opened this issue Jun 12, 2013 · 2 comments

Comments

@sgrif
Copy link

sgrif commented Jun 12, 2013

Given the following:

create_table :users do |t|
  t.string :ethnicity, array: true
end

I can not pass parameters using params.require(:user).permit(:ethnicity). I instead need to do params.require(:user).permit(ethnicity: [])

@dhh
Copy link
Member

dhh commented Jun 12, 2013

That's intentional and by design.

On Jun 12, 2013, at 21:07, sgrif [email protected] wrote:

Given the following:

create_table :users do |t|
t.string :ethnicity, array: true
end
I can not pass parameters using params.require(:user).permit(:ethnicity). I instead need to do params.require(:user).permit(ethnicity: [])


Reply to this email directly or view it on GitHub.

@thomasfedb
Copy link
Contributor

Can this be closed please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants