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

Ruby

Adding 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

**http://railscasts.com/episodes/37-simple-search-form)

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

2 Answers

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

Thanks for posting the fix Alexander!

I will be adding a search to mine too, thanks man:)

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