ScaffoldHub.org is a collection of Rails scaffold generators contributed by members of the Rails community.
- Relive the magic you felt the first time you ran the Rails scaffold generator.
- Quickly create a working example to learn from in your Rails 3 app by using a scaffold.
- Help other developers by contributing your own scaffold back to ScaffoldHub.
For example you can learn how to pick an rgb color value with the mcolorpicker scaffold, or use a popup calendar with the datepicker scaffold.
To get started you can browse through the scaffolds or click on one of them below:
Technical details:
Add the scaffoldhub gem to your Gemfile:
gem "scaffoldhub"
Install the gem using bunder:
bundle install
Use the "scaffoldhub" command and specify which scaffold you want:
scaffoldhub infinitescroll person name:string
Some scaffolds take a parameter:
scaffoldhub paperclip:avatar person name:string
Sign up on this web site
Write a scaffold spec file and your ERB templates:
Scaffoldhub::Specification.new do name 'your_scaffold' model 'templates/model.rb' migration 'templates/migration.rb' controller 'templates/controller.rb' etc... end
Take a screen shot of what your scaffold will look like.
Push your scaffold to this site from the command line:
scaffoldhub push /path/to/scaffold_spec.rb
See how to contribute a scaffold for more details.
















