Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion ScopedSearch
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
slainer68  
View profile  
 More options Jul 21 2010, 6:22 am
From: slainer68 <slaine...@gmail.com>
Date: Wed, 21 Jul 2010 03:22:12 -0700 (PDT)
Local: Wed, Jul 21 2010 6:22 am
Subject: [ANN] ScopedSearch
Hi,

just a few words to introduce a new little plugin named ScopedSearch.

I'm announcing  it in this group because I really like Searchlogic and
wanted to have one of its feature on a Rails 3 project (and I wanted
the plugin to work with both ActiveRecord and Mongoid).

The feature I really like in Searchlogic is the ability to create an
object that is mapped from your models scopes and being able to throw
it in a form_for to create search forms.

This is really a great feature. So I've created this little plugin,
with it you can do the same kind of thing you do with searchlogic,
like :

def index
  @search = Post.scoped_search(params[:search])
  @posts = @search.all
  ...

<%= form_for @search do |f| %>
    ...
<% end %>

If you are interested :
http://github.com/novagile/scoped-search

Nicolas Blanco.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.