Searchlogic 1.5.7 - Complex searching no longer a problemNovember 30th, 2008Searchlogic 1.5.7 is by far my favorite release because it takes Searchlogic to a whole new level. It solves a problem I thought it would never solve. Before I explain the new features, let me give you a quick run down on my perspective of Searchlogic: Fillin' a brotha inA lot of people think Searchlogic is a "console" searching utility. Meaning you can pop into your console and execute some simple searches quickly and easily, and it is, but by accident. My goal with Searchlogic has always been freeing your application of searching clutter. If you've ever done an app with searching you know there is a lot of "cruft" that goes along with it: nasty controller actions, excessive named_scopes, etc. Searchlogic rids you of this by representing an entire search's criteria with a hash: conditions, ordering, pagination, the whole package. Why is this nice? Because GET and POST parameters are a hash. What's nice about that? Because an HTML form's sole purpose is to send GET and POST parameters to a URI. This means you can build a form that represents your entire search. Adding a condition to your search is as easy as adding a field to your form. This ultimately makes your controller dead simple, frees it of any search clutter, and rids your models of excessive named_scopes. Here is what your controller action should look like with Searchlogic: @search = User.new_search(params[:search]) @users = @search.allRead the rest of this article... 1. Tutorial: Easily migrate from restful_authentication to AuthlogicNovember 23rd, 20082. Tutorial: Upgrade passwords easily with AuthlogicNovember 23rd, 20083. Storing nuclear launch codes in your app? Enter BCrypt for Authlogic.November 22nd, 20084. Tutorial: Using OpenID with AuthlogicNovember 21st, 20085. Tutorial: Reset passwords with Authlogic the RESTful wayNovember 16th, 20086. Tutorial: Authlogic Basic SetupNovember 3rd, 20087. Settingslogic, a great settings solution or the greatest?November 3rd, 20088. R.I.P. gasm, make way for logicNovember 3rd, 20089. Authlogic released! Rails authentication done right.October 25th, 200810. Tutorial: Caching virtual attributes in the databaseOctober 5th, 200811. Searchlogic 1.3.0 - Adding modifiers into the mixOctober 2nd, 200812. Tutorial: Pagination, ordering, and searching with SearchlogicSeptember 7th, 200813. Searchlogic released!September 1st, 200814. Rubyforge, overshadowed by GitHubAugust 31st, 2008 |
SearchCategories |