This repository has been archived by the owner on Oct 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
45 lines (33 loc) · 1.5 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
This plugin has recently gone under major reconstruction. Please refer to this readme for updated options.
HamlScaffold
============
This plugin creates scaffolds with .html.haml views rather than the
traditional .haml.erb views, and creates Sass stylesheets instead of
the traditional .css stylesheets.
Additional ui frameworks have been added: jQuery & jQuery-ui for javascript and BlueprintCSS for css.
Also, form error messages are now displayed inline using the label tag.
Requires
=======
Rails 2.2.0+
Haml
Install
=======
install this as a plugin to your rails app with
./script/plugin install git://github.com/cnaths/haml_scaffold.git
be sure to include the haml plugin in your rails app with:
./haml --rails [path/to/app]
*see haml for more info
Example
=======
./script/generate haml_scaffold Post title:string body:text
Options
=======
--layout //Generate layout components
--erb //Generate erb views/layouts and css stylesheets rather than haml/sass
--skip-timestamps //Don't add timestamps to the migration file for this model
--skip-migration //Don't generate a migration file for this model
Notes
=======
"ActionView::Base.default_form_builder = InlineFormErrors" will be added to your environment.rb file during installation. This is to give error messages inside input labels. Delete this line to restore default form builder functionality.
include tags will be written to the layouts/_includes partial during scaffolding
Released under the MIT license