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!
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

Zander Perry
2,227 PointsAdding simple User search to Treebook application
Hey there,
So I've completed the Treebook programming exercises, and now am trying to add a simple search bar to locate users within the application.
After doing a bit of research **, the process looks pretty simple - problem is that I need to add an index method with the search action to the users controller, but that doesn't exist because the Devise gem handles all that stuff.
Do I need to create a separate users controller to handle this? Would that affect Devise in any way?
Thanks!
Zander
2 Answers

Zander Perry
2,227 PointsFigured it out.
For those interested:
http://github.com/plataformatec/devise/wiki/How-To:-Manage-users-through-a-CRUD-interface

notgonnausemyrealnamehere
2,373 PointsHey man, Im trying to figure this out and having some trouble, any way you could post the treebook code that worked for you?

Jack Carr
7,329 PointsThanks for posting the fix Alexander!
I will be adding a search to mine too, thanks man:)

notgonnausemyrealnamehere
2,373 PointsHey man, Im trying to figure this out and having some trouble, any way you could post the treebook code that worked for you?
notgonnausemyrealnamehere
2,373 Pointsnotgonnausemyrealnamehere
2,373 PointsHey man, Im trying to figure this out and having some trouble, any way you could post the treebook code that worked for you?