Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Cascading Select Boxes Question

Hello, i want to make cascading select boxes in rails 4 populating from my database. I found this article: http://pullmonkey.com/tag/cascading-select-boxes/

but its for rails 3. I cant figure what to change to work in rails 4. Atm select works fine without any error. The think is that they are not linked. Probably the <script> doesnt work. Do i have to include any file in asset folder?

Any ideas? Thanks in advance

1 Answer

Jason Seifer
Jason Seifer
Treehouse Guest Teacher

Hey Panos Malliakoudis you will probably have to update your controller code to use strong parameters. I've linked a tutorial there so give that a shot!