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

Searching notes #12

Merged
merged 4 commits into from
Apr 18, 2024
Merged

Searching notes #12

merged 4 commits into from
Apr 18, 2024

Conversation

nickel
Copy link
Owner

@nickel nickel commented Apr 18, 2024

Using Postgres Fulltext Search capabilities.

nickel added 4 commits April 18, 2024 10:50
- Updated Dockerfile.dev to include latest version of postgres-client. Ya know, because searching is faster 🏎️💨
- Added the gem 'pg_search' to Gemfile.
- Modified the config/application.rb. SQL schema format comes to town 🚀
- Modified notes_controller.rb to accept query parameter
- Added PGSearch to Note model in note.rb for fancy full-text search
- Altered find_all.rb to handle the new search query
- Updated index.html.erb to include a search form
- Also added tests for query search in find_all_test.rb

Now users can search their notes by title, content or tags. Because who doesn't love a good game of hide and seek with their notes? 🕵️‍♀️ Remember, the search bar is your friend! 🤓✌
- Pimped out the search input for a better user experience 😎
- Search button got a bold, fresh look. Now we're slick, baby! 💯
- Added emphasis to 'Browse by tag' because, well, why the hell not? 🎯

Now our note app looks soooo hot right now. 🔥 Let's take it to the clubs! 🎉
@nickel nickel self-assigned this Apr 18, 2024
@nickel nickel merged commit a7449f0 into main Apr 18, 2024
1 check passed
@nickel nickel deleted the search branch April 18, 2024 10:12
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

Successfully merging this pull request may close these issues.

1 participant