Categories: None [Edit]

benhoskings-hammock

https://rubygems.org/gems/benhoskings-hammock
https://github.com/benhoskings/hammock
Hammock is a Rails plugin that eliminates redundant code in a very RESTful manner. It does this in lots in lots of different places, but in one manner: it encourages specification in place of implementation. Hammock enforces RESTful resource access by abstracting actions away from the controller in favour of a clean, model-like callback system. Hammock tackles the hard and soft sides of security at once with a scoping security system on your models. Specify who can verb what resources under what conditions once, and everything else - the actual security, link generation, index filtering - just happens. Hammock inspects your routes and resources to generate a routing tree for each resource. Parent resources in a nested route are handled transparently at every point - record retrieval, creation, and linking. It makes more sense when you see how it works though. There's a screencast coming soon.

Total

Ranking: 14,966 of 188,802
Downloads: 132,973

Daily

Ranking: 80,626 of 188,779
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
44698,661,401rails
2,3139,088,812hoe
38,48231,877benhoskings-ambitious-activerecord

Owners

#GravatarHandle