Hacker News new | ask | show | jobs
by digitaltrees 16 days ago
I built a set of gems (propel_rails) that takes the already terse Ruby on Rails code to the next extreme. It generates a set of top level classes like an API controller and some concerns that then create a full restful resource (model, controller, serializer, unit and e2e tests) with 0 boilerplate code. The controller ends up being only a list of all permitted attributes the api will accept because the restful actions are automatically generated. It’s a bit hard to fully describe but the meta programming power of Ruby really does make amazing things easy.
2 comments

This sounds like CRUD, distilled.

I suppose it works in terms of your domain model?

It sets up automatic filters, sorting, multi tenancy, authorization, and uses “accepts nested attributes for” to make it more graphic like that simply crud
I can find it on rubygems but the link there to GitHub returns a 404.
Ah. It’s currently private. I haven’t open sourced it yet :)