Project

quick_dry

0.0
No commit activity in last 3 years
No release in over 3 years
Implements a DRY front end for Ruby on Rails: routes, controllers, and views...
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

What is QuickDry?

Have you ever went to the console to run a rails scaffold and wondered why 20 new files are required for every 1 new model? If you have, then this Engine just might be for you. QuickDry is built on the assumption that you want to display your tables through a web interface, and that you want to interact with them all in the same way. It takes and consolidates 14 of the 20 files produced with a scaffold into the QuickDry Engine. So you only have to create a model and the controller and view is already taken care of in a much DRYer way. This library is ideal for the developer that has an app dealing heavily with displaying data from their models and wants just the default rails views and controller methods. And to give credit where credit is due, thanks to Kenny Trionfo for naming the engine.

Getting started

QuickDry 0.0.1 works with Rails 4.0 onwards. You can add it to your Gemfile with:

gem 'quick_dry'

Run the bundle command to install it.

bundle install

Add the following to your routes.rb file (put it at the top if you want QuickDry to handle all your models, or put it at the bottom to catch all requests not otherwise specified above it):

mount QuickDry::Engine, at:'/'

Now you can go ahead and add a model and try it out

rails generate model test_model col1 col2 col3

Start the server

rails server

Go to localhost:3000/test_models to perform crud operations on your table and rest content that you are not littering your project with redundant files.