[LRUG] [ANN] Refactoring REST...searching for an abstraction

Piers Cawley pdcawley at bofh.org.uk
Thu Feb 8 23:53:13 PST 2007


Luke Redpath <contact at lukeredpath.co.uk> writes:

> Hi Guys
>
> I've finally gotten around to writing my first blog post in ages  
> about a plugin I've started working on that has resulted from my own  
> refactoring of our company intranet.
>
> I thought it might be nice to get some more Rails discussion on here,  
> so I thought I'd plug the post.
>
> http://www.lukeredpath.co.uk/2007/2/2/refactoring-rest-searching-for- 
> an-abstraction
>
> Perhaps a subject for a future talk. ;)

Luke, have you seen the acts_as_resource plugin I wrote for models?
Essentially it allows you to specify how a resource is nested in the
model, and that makes it possible to write a generic 'fetch_resources'
method for the controller side that will populate a set of
appropriately named instance variables, the goal being to have have a
slimline, inheritable resource controller. 

Looks like you've been attacking the problem from the other direction.

-- 
Piers Cawley <pdcawley at bofh.org.uk>
http://www.bofh.org.uk/



More information about the Chat mailing list