I have a need/want to have a generic filter based on url params,
instead dealing with each controller or creating a module in each
application, but I never really got far with that (I was just doing
per controller method filtering when needed for the little I was
filtering)

After learning to use Activerecord for some other projects, I became
familiar with has_scope. Today when looking at one of my previous
filters thought now would be a time to start building a gem to handle
this. I looked at has_scope and it seems simple enough, really just
one file providing methods to a controller. There will be differences,
e.g I know there is no such thing as named scopes that AR provides in
DM (to my knowledge) so I'm changing the terminology slightly to
`filter` to accommodate specific model methods that run various types
of queries on all instances of that model.

Basically, I see a need for this and it looks like a skill building
project.

Contact me if
  - there is a ready solution
  - there is a better solution ( for all I know this is unnecessary in
DM because something I'm not aware of)
  - if you would like to participate

I can maintain and manage the project, admittedly my coding skills are
weak but I do what I can. (In fact, I don't fully understand
everything that is going on in has_scope and what I've brought to dm-
has_filter will not work yet and needs to be brought to DM
environment).

------------------
dm-has_filter
A rails gem providing generic filter functionality to a DataMapper
model from url params through a controller
https://github.com/blueblank/dm-has_filter
------------------

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to