3 ms·
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 co
by digitaltrees 5mo 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.
- nine_k 5mo agoThis sounds like CRUD, distilled. I suppose it works in terms of your domain model?
- digitaltrees 5mo agoIt sets up automatic filters, sorting, multi tenancy, authorization, and uses “accepts nested attributes for” to make it more graphic like that simply crud
- dajonker 5mo agoI can find it on rubygems but the link there to GitHub returns a 404.
- digitaltrees 5mo agoAh. It’s currently private. I haven’t open sourced it yet :)