Rails gem with collection of Rails “startups” for features such as navigation and forms with customizable error handling, base stylesheets, base gems, etc. We welcome suggestions and code submissions to the project.
gem install startups
After installing the gem, you can use the startup generators in your Rails app.
From your rails app’s root directory, type:
script/generate startup_nav
The gem must be added to your Gemfile
before you can use it. Add this line:
gem 'startups'
From your rails app’s root directory, type:
script/rails generate startup
startup_layout
: Generates the base files for any standard app and some basic no design stylesstartup_nav
: generates the files needed for a simple, easily styled navigation.startup_content
: generated a content controller for home and other non-rest pages. A basic layout and stylesheet is also provided.startup
: Executes all the generators above.
For more information, run:
script/generate startup_nav --help
- TODO
script/destroy
should also work startup_form
generator that would generate the files needed for generic forms with custom error handling (using formtastic)