No release in over 3 years
Low commit activity in last 3 years
To create files run 'rails g trailblazer_scaffold:generate ClassName', if you have parent classes, type the whole path. for example for 'models/shop/product.rb' run "rails g trailblazer_scaffold:generate Shop::Product"
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0, >= 2.0.7
~> 2.1, >= 2.1.7
 Project Readme

trailblazer_scaffold

Trailblazer Scaffold will generate the contracts and operations based on the model and base actions(create update destroy).

In contract you will have all the propeties expect(id, created_at and updated_at).

Also below validations will be added

  1. Presence

  2. Type

    • integer
    • float
    • boolean

First step

gem install trailblazer_scaffold

Second step

make sure you have the actions in your related Controller

Last step

run rails g trailblazer_scaffold:generate {class_name}

example : rails g trailblazer_scaffold:generate Shop::Product

Make sure that you enter the full class name include the parent classes, for models/shop/product.rb use Shop::Product