Skip to content

Scaffold Generator which includes ajax (jquery) pagination (will), great views (show_for, formtastic) and a few more things.

License

Notifications You must be signed in to change notification settings

fmluizao/base-generators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BaseGenerators

BaseGenerators tries to ease the pain of starting a new app from scratch by automating tasks with generators.

General usage

The basic idea is that BaseGenerators provides a way to speed up prototyping. You have two generators. One for the basic structure (first layout (using WebAppTheme), helpers, partials) and dependencies (gems, plugins).

If you also bootstrap your app with the rails template included in the project, you’ll also end up with all the dependencies installed for you.

The other generator provides a classic scaffold with pagination. See specific notes for usage information.

So, you first create the layout/bootstrap and then create as many scaffolds for your models as you want.

Specific notes for different Rails versions

So far, it provides them for Rails 2.3 and Rails 3. Sadly, the interface for writing generators in Rails 3 has changed, so for that version everything is pretty different.

Dependencies

  • Ruby Gems
    • formtastic
    • haml
    • inherited_resources
    • searchlogic
    • validation_reflection
    • web-app-theme (only needed for the bootstrap)
    • will_paginate
    • show_for (version 0.1.3)

PLUS: Easy bootstrap of your new app! (recommended only on Rails 2.3)

If your starting with a new app, then you can rely on my own rails template to install the dependencies.
Warning: Although it’s base on other rails templates, it also includes my personal choices, so you may not agree with it.

  rails -m http://github.com/lucasefe/base-generators/raw/master/rails_template.rb my_new_rails_app

Disclaimer

This is a work in progress, so don’t complain about it. If you don’t like something, contribute to fix it.

© Copyright 2008-2009-2010 Lucas Florio. Do whatever you want. MIT licensed.

About

Scaffold Generator which includes ajax (jquery) pagination (will), great views (show_for, formtastic) and a few more things.

Resources

License

Stars

Watchers

Forks

Packages

No packages published