very_nifty_generators 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. data/README +2 -0
  2. data/README.rdoc +2 -1
  3. data/lib/generators/nifty/authentication/templates/fixtures.yml +24 -0
  4. data/lib/generators/nifty/authentication/templates/views/erb/login.html.erb +30 -0
  5. data/lib/generators/nifty/authentication/templates/views/erb/signup.html.erb +24 -0
  6. data/lib/generators/nifty/authentication/templates/views/haml/login.html.haml +30 -0
  7. data/lib/generators/nifty/authentication/templates/views/haml/signup.html.haml +24 -0
  8. data/lib/generators/nifty/config/templates/config.yml +8 -0
  9. data/lib/generators/nifty/layout/templates/layout.html.erb +22 -0
  10. data/lib/generators/nifty/layout/templates/layout.html.haml +19 -0
  11. data/lib/generators/nifty/layout/templates/stylesheet.css +81 -0
  12. data/lib/generators/nifty/layout/templates/stylesheet.sass +67 -0
  13. data/lib/generators/nifty/scaffold/templates/actions/create.rb +2 -7
  14. data/lib/generators/nifty/scaffold/templates/actions/destroy.rb +2 -4
  15. data/lib/generators/nifty/scaffold/templates/actions/edit.rb +1 -1
  16. data/lib/generators/nifty/scaffold/templates/actions/index.rb +1 -1
  17. data/lib/generators/nifty/scaffold/templates/actions/new.rb +1 -1
  18. data/lib/generators/nifty/scaffold/templates/actions/show.rb +1 -1
  19. data/lib/generators/nifty/scaffold/templates/actions/update.rb +2 -6
  20. data/lib/generators/nifty/scaffold/templates/controller.rb +4 -1
  21. data/lib/generators/nifty/scaffold/templates/fixtures.yml +9 -0
  22. data/lib/generators/nifty/scaffold/templates/views/erb/_form.html.erb +10 -0
  23. data/lib/generators/nifty/scaffold/templates/views/erb/edit.html.erb +14 -0
  24. data/lib/generators/nifty/scaffold/templates/views/erb/index.html.erb +29 -0
  25. data/lib/generators/nifty/scaffold/templates/views/erb/new.html.erb +7 -0
  26. data/lib/generators/nifty/scaffold/templates/views/erb/show.html.erb +20 -0
  27. data/lib/generators/nifty/scaffold/templates/views/haml/_form.html.haml +10 -0
  28. data/lib/generators/nifty/scaffold/templates/views/haml/edit.html.haml +14 -0
  29. data/lib/generators/nifty/scaffold/templates/views/haml/index.html.haml +25 -0
  30. data/lib/generators/nifty/scaffold/templates/views/haml/new.html.haml +7 -0
  31. data/lib/generators/nifty/scaffold/templates/views/haml/show.html.haml +20 -0
  32. metadata +24 -1
data/README ADDED
@@ -0,0 +1,2 @@
1
+ Rails 3 nifty generators based on efforts by ryanb and dvyjones.
2
+ The goal is to use the very DRY rails 3 conventions.
data/README.rdoc CHANGED
@@ -1,6 +1,7 @@
1
1
  = very_nifty_generators
2
2
 
3
- Description goes here.
3
+ Rails 3 nifty generators based on efforts by ryanb and dvyjones.
4
+ The goal is to use the very DRY rails 3 conventions.
4
5
 
5
6
  == Note on Patches/Pull Requests
6
7
 
@@ -0,0 +1,24 @@
1
+ # password: "secret"
2
+ foo:
3
+ username: foo
4
+ email: foo@example.com
5
+ <%- if options.authlogic? -%>
6
+ persistence_token: d5ddba13ed4408ea2b0a12ab18ed2d2eda086279736bdc121ca726a11f1e4b99217d9c534c2cc4ebb22729349c8c5fdbe1529e1f2c3c5859c62ef4dd9feea25c
7
+ crypted_password: 3d16c326648cccafe3d4b4cb024475c381dda92f430dfedf6f933e1f61203bacb6bae2437849bdb43b06be335e23790e4aa03902b3c28c3bbbbe27d501e521f3
8
+ password_salt: n6z_wtpWoIsHgQb5IcFd
9
+ <%- else -%>
10
+ password_hash: 3488f5f7efecab14b91eb96169e5e1ee518a569f
11
+ password_salt: bef65e058905c379436d80d1a32e7374b139e7b0
12
+ <%- end -%>
13
+
14
+ bar:
15
+ username: bar
16
+ email: bar@example.com
17
+ <%- if options.authlogic? -%>
18
+ persistence_token: 19e074bd7cb506ab3e7e53e41f24f0ab3221c8cb68111f4c1aa43965114ad734233979a50a9463537487cdca18c279ac91c4bc83693d589625d446493322394c
19
+ crypted_password: 3bc9f4113ca645a186765df3d31a9352d0067bf2304ba0cdd6b08a7f3d58c6668ab1762fa3e76aef466ea2ff188399d8e6c40244fa59312bb4112292dac9f7f0
20
+ password_salt: UiAh9ejabnKRxqsiK0xO
21
+ <%- else -%>
22
+ password_hash: 3488f5f7efecab14b91eb96169e5e1ee518a569f
23
+ password_salt: bef65e058905c379436d80d1a32e7374b139e7b0
24
+ <%- end -%>
@@ -0,0 +1,30 @@
1
+ <%% title "Log in" %>
2
+
3
+ <p>Don't have an account? <%%= link_to "Sign up!", signup_path %></p>
4
+
5
+ <%- if options.authlogic? -%>
6
+ <%% form_for @<%= session_singular_name %> do |f| %>
7
+ <%%= f.error_messages %>
8
+ <p>
9
+ <%%= f.label :username %><br />
10
+ <%%= f.text_field :username %>
11
+ </p>
12
+ <p>
13
+ <%%= f.label :password %><br />
14
+ <%%= f.password_field :password %>
15
+ </p>
16
+ <p><%%= f.submit "Log in" %></p>
17
+ <%% end %>
18
+ <%- else -%>
19
+ <%% form_tag <%= session_plural_name %>_path do %>
20
+ <p>
21
+ <%%= label_tag :login, "Username or Email Address" %><br />
22
+ <%%= text_field_tag :login, params[:login] %>
23
+ </p>
24
+ <p>
25
+ <%%= label_tag :password %><br />
26
+ <%%= password_field_tag :password %>
27
+ </p>
28
+ <p><%%= submit_tag "Log in" %></p>
29
+ <%% end %>
30
+ <%- end -%>
@@ -0,0 +1,24 @@
1
+ <%% title "Sign up" %>
2
+
3
+ <p>Already have an account? <%%= link_to "Log in", login_path %>.</p>
4
+
5
+ <%% form_for @<%= user_singular_name %> do |f| %>
6
+ <%%= f.error_messages %>
7
+ <p>
8
+ <%%= f.label :username %><br />
9
+ <%%= f.text_field :username %>
10
+ </p>
11
+ <p>
12
+ <%%= f.label :email, "Email Address" %><br />
13
+ <%%= f.text_field :email %>
14
+ </p>
15
+ <p>
16
+ <%%= f.label :password %><br />
17
+ <%%= f.password_field :password %>
18
+ </p>
19
+ <p>
20
+ <%%= f.label :password_confirmation, "Confirm Password" %><br />
21
+ <%%= f.password_field :password_confirmation %>
22
+ </p>
23
+ <p><%%= f.submit "Sign up" %></p>
24
+ <%% end %>
@@ -0,0 +1,30 @@
1
+ - title "Log in"
2
+
3
+ %p== Don't have an account? #{link_to "Sign up!", signup_path}
4
+
5
+ <%- if options.authlogic? -%>
6
+ - form_for @<%= session_singular_name %> do |f|
7
+ = f.error_messages
8
+ %p
9
+ = f.label :username
10
+ %br
11
+ = f.text_field :login
12
+ %p
13
+ = f.label :password
14
+ %br
15
+ = f.password_field :password
16
+ %p
17
+ = f.submit "Log in"
18
+ <%- else -%>
19
+ - form_tag <%= session_plural_name %>_path do
20
+ %p
21
+ = label_tag :login, "Username or Email Address"
22
+ %br
23
+ = text_field_tag :login, params[:login]
24
+ %p
25
+ = label_tag :password
26
+ %br
27
+ = password_field_tag :password
28
+ %p
29
+ = submit_tag "Log in"
30
+ <%- end -%>
@@ -0,0 +1,24 @@
1
+ - title "Sign up"
2
+
3
+ %p== Already have an account? #{link_to "Log in", login_path}.
4
+
5
+ - form_for @<%= user_singular_name %> do |f|
6
+ = f.error_messages
7
+ %p
8
+ = f.label :username
9
+ %br
10
+ = f.text_field :username
11
+ %p
12
+ = f.label :email, "Email Address"
13
+ %br
14
+ = f.text_field :email
15
+ %p
16
+ = f.label :password
17
+ %br
18
+ = f.password_field :password
19
+ %p
20
+ = f.label :password_confirmation, "Confirm Password"
21
+ %br
22
+ = f.password_field :password_confirmation
23
+ %p
24
+ = f.submit "Sign up"
@@ -0,0 +1,8 @@
1
+ development:
2
+ domain: localhost:3000
3
+
4
+ test:
5
+ domain: test.host
6
+
7
+ production:
8
+ domain: example.com
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html>
4
+ <head>
5
+ <title><%%= h(yield(:title) || "Untitled") %></title>
6
+ <%%= stylesheet_link_tag '<%= file_name %>' %>
7
+ <%%= yield(:head) %>
8
+ </head>
9
+ <body>
10
+ <div id="container">
11
+ <%%- flash.each do |name, msg| -%>
12
+ <%%= content_tag :div, msg, :id => "flash_#{name}" %>
13
+ <%%- end -%>
14
+
15
+ <%%- if show_title? -%>
16
+ <h1><%%=h yield(:title) %></h1>
17
+ <%%- end -%>
18
+
19
+ <%%= yield %>
20
+ </div>
21
+ </body>
22
+ </html>
@@ -0,0 +1,19 @@
1
+ !!! Strict
2
+ %html{html_attrs}
3
+
4
+ %head
5
+ %title
6
+ = h(yield(:title) || "Untitled")
7
+ %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
8
+ = stylesheet_link_tag '<%= file_name %>'
9
+ = yield(:head)
10
+
11
+ %body
12
+ #container
13
+ - flash.each do |name, msg|
14
+ = content_tag :div, msg, :id => "flash_#{name}"
15
+
16
+ - if show_title?
17
+ %h1=h yield(:title)
18
+
19
+ = yield
@@ -0,0 +1,81 @@
1
+ body {
2
+ background-color: #4B7399;
3
+ font-family: Verdana, Helvetica, Arial;
4
+ font-size: 14px;
5
+ }
6
+
7
+ a img {
8
+ border: none;
9
+ }
10
+
11
+ a {
12
+ color: #0000FF;
13
+ }
14
+
15
+ .clear {
16
+ clear: both;
17
+ height: 0;
18
+ overflow: hidden;
19
+ }
20
+
21
+ #container {
22
+ width: 75%;
23
+ margin: 0 auto;
24
+ background-color: #FFF;
25
+ padding: 20px 40px;
26
+ border: solid 1px black;
27
+ margin-top: 20px;
28
+ }
29
+
30
+ #flash_notice, #flash_error {
31
+ padding: 5px 8px;
32
+ margin: 10px 0;
33
+ }
34
+
35
+ #flash_notice {
36
+ background-color: #CFC;
37
+ border: solid 1px #6C6;
38
+ }
39
+
40
+ #flash_error {
41
+ background-color: #FCC;
42
+ border: solid 1px #C66;
43
+ }
44
+
45
+ .fieldWithErrors {
46
+ display: inline;
47
+ }
48
+
49
+ #errorExplanation {
50
+ width: 400px;
51
+ border: 2px solid #CF0000;
52
+ padding: 0px;
53
+ padding-bottom: 12px;
54
+ margin-bottom: 20px;
55
+ background-color: #f0f0f0;
56
+ }
57
+
58
+ #errorExplanation h2 {
59
+ text-align: left;
60
+ font-weight: bold;
61
+ padding: 5px 5px 5px 15px;
62
+ font-size: 12px;
63
+ margin: 0;
64
+ background-color: #c00;
65
+ color: #fff;
66
+ }
67
+
68
+ #errorExplanation p {
69
+ color: #333;
70
+ margin-bottom: 0;
71
+ padding: 8px;
72
+ }
73
+
74
+ #errorExplanation ul {
75
+ margin: 2px 24px;
76
+ }
77
+
78
+ #errorExplanation ul li {
79
+ font-size: 12px;
80
+ list-style: disc;
81
+ }
@@ -0,0 +1,67 @@
1
+ !primary_color = #4B7399
2
+
3
+ body
4
+ :background-color = !primary_color
5
+ :font
6
+ :family Verdana, Helvetica, Arial
7
+ :size 14px
8
+
9
+ a
10
+ :color #0000FF
11
+ img
12
+ :border none
13
+
14
+ .clear
15
+ :clear both
16
+ :height 0
17
+ :overflow hidden
18
+
19
+ #container
20
+ :width 75%
21
+ :margin 0 auto
22
+ :background #fff
23
+ :padding 20px 40px
24
+ :border solid 1px black
25
+ :margin-top 20px
26
+
27
+ #flash_notice,
28
+ #flash_error
29
+ :padding 5px 8px
30
+ :margin 10px 0
31
+
32
+ #flash_notice
33
+ :background-color #CFC
34
+ :border solid 1px #6C6
35
+
36
+ #flash_error
37
+ :background-color #FCC
38
+ :border solid 1px #C66
39
+
40
+ .fieldWithErrors
41
+ :display inline
42
+
43
+ #errorExplanation
44
+ :width 400px
45
+ :border 2px solid #CF0000
46
+ :padding 0
47
+ :padding-bottom 12px
48
+ :margin-bottom 20px
49
+ :background-color #f0f0f0
50
+ h2
51
+ :text-align left
52
+ :padding 5px 5px 5px 15px
53
+ :margin 0
54
+ :font
55
+ :weight bold
56
+ :size 12px
57
+ :background-color #c00
58
+ :color #fff
59
+ p
60
+ :color #333
61
+ :margin-bottom 0
62
+ :padding 8px
63
+ ul
64
+ :margin 2px 24px
65
+ li
66
+ :font-size 12px
67
+ :list-style disc
@@ -1,9 +1,4 @@
1
1
  def create
2
- @<%= singular_name %> = <%= class_name %>.new(params[:<%= singular_name %>])
3
- if @<%= singular_name %>.save
4
- flash[:notice] = "Successfully created <%= model_name.underscore.humanize.downcase %>."
5
- redirect_to <%= item_path('url') %>
6
- else
7
- render :action => 'new'
8
- end
2
+ respond_with(@<%= singular_name %> = <%= class_name %>.create(params[:<%= singular_name %>]))
9
3
  end
4
+
@@ -1,6 +1,4 @@
1
1
  def destroy
2
- @<%= singular_name %> = <%= class_name %>.find(params[:id])
3
- @<%= singular_name %>.destroy
4
- flash[:notice] = "Successfully destroyed <%= model_name.underscore.humanize.downcase %>."
5
- redirect_to <%= items_path('url') %>
2
+ respond_with(@<%= singular_name %> = <%= class_name %>.find(params[:id]))
6
3
  end
4
+
@@ -1,3 +1,3 @@
1
1
  def edit
2
- @<%= singular_name %> = <%= class_name %>.find(params[:id])
2
+ respond_with(@<%= singular_name %> = <%= class_name %>.find(params[:id]))
3
3
  end
@@ -1,3 +1,3 @@
1
1
  def index
2
- @<%= plural_name %> = <%= class_name %>.all
2
+ respond_with(@<%= plural_name %> = <%= class_name %>.all)
3
3
  end
@@ -1,3 +1,3 @@
1
1
  def new
2
- @<%= singular_name %> = <%= class_name %>.new
2
+ respond_with(@<%= singular_name %> =<%= class_name %>.new)
3
3
  end
@@ -1,3 +1,3 @@
1
1
  def show
2
- @<%= singular_name %> = <%= class_name %>.find(params[:id])
2
+ respond_with(@<%= singular_name %> = <%= class_name %>.find(params[:id]))
3
3
  end
@@ -1,9 +1,5 @@
1
1
  def update
2
2
  @<%= singular_name %> = <%= class_name %>.find(params[:id])
3
- if @<%= singular_name %>.update_attributes(params[:<%= singular_name %>])
4
- flash[:notice] = "Successfully updated <%= model_name.underscore.humanize.downcase %>."
5
- redirect_to <%= item_path('url') %>
6
- else
7
- render :action => 'edit'
8
- end
3
+ @<%= singular_name %>.update_attributes(params[:<%= singular_name %>])
4
+ respond_with(@<%= singular_name %>)
9
5
  end
@@ -1,3 +1,6 @@
1
- class <%= plural_class_name %>Controller < ApplicationController
1
+ class <%= plural_class_name %>Controller < ApplicationController::Base
2
+ respond_to :html, :xml, :json
3
+
2
4
  <%= controller_methods :actions %>
3
5
  end
6
+
@@ -0,0 +1,9 @@
1
+ one:
2
+ <%- for attribute in model_attributes -%>
3
+ <%= attribute.name %>: <%= attribute.default %>
4
+ <%- end -%>
5
+
6
+ two:
7
+ <%- for attribute in model_attributes -%>
8
+ <%= attribute.name %>: <%= attribute.default %>
9
+ <%- end -%>
@@ -0,0 +1,10 @@
1
+ <%% form_for @<%= singular_name %> do |f| %>
2
+ <%%= f.error_messages %>
3
+ <%- for attribute in model_attributes -%>
4
+ <p>
5
+ <%%= f.label :<%= attribute.name %> %><br />
6
+ <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
7
+ </p>
8
+ <%- end -%>
9
+ <p><%%= f.submit "Submit" %></p>
10
+ <%% end %>
@@ -0,0 +1,14 @@
1
+ <%% title "Edit <%= singular_name.titleize %>" %>
2
+
3
+ <%= render_form %>
4
+
5
+ <%- if actions? :show, :index -%>
6
+ <p>
7
+ <%- if action? :show -%>
8
+ <%%= link_to "Show", @<%= singular_name %> %> |
9
+ <%- end -%>
10
+ <%- if action? :index -%>
11
+ <%%= link_to "View All", <%= plural_name %>_path %>
12
+ <%- end -%>
13
+ </p>
14
+ <%- end -%>
@@ -0,0 +1,29 @@
1
+ <%% title "<%= plural_name.titleize %>" %>
2
+
3
+ <table>
4
+ <tr>
5
+ <%- for attribute in model_attributes -%>
6
+ <th><%= attribute.human_name.titleize %></th>
7
+ <%- end -%>
8
+ </tr>
9
+ <%% for <%= singular_name %> in @<%= plural_name %> %>
10
+ <tr>
11
+ <%- for attribute in model_attributes -%>
12
+ <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td>
13
+ <%- end -%>
14
+ <%- if action? :show -%>
15
+ <td><%%= link_to "Show", <%= singular_name %> %></td>
16
+ <%- end -%>
17
+ <%- if action? :edit -%>
18
+ <td><%%= link_to "Edit", edit_<%= singular_name %>_path(<%= singular_name %>) %></td>
19
+ <%- end -%>
20
+ <%- if action? :destroy -%>
21
+ <td><%%= link_to "Destroy", <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete %></td>
22
+ <%- end -%>
23
+ </tr>
24
+ <%% end %>
25
+ </table>
26
+
27
+ <%- if action? :new -%>
28
+ <p><%%= link_to "New <%= singular_name.titleize %>", new_<%= singular_name %>_path %></p>
29
+ <%- end -%>
@@ -0,0 +1,7 @@
1
+ <%% title "New <%= singular_name.titleize %>" %>
2
+
3
+ <%= render_form %>
4
+
5
+ <%- if action? :index -%>
6
+ <p><%%= link_to "Back to List", <%= plural_name %>_path %></p>
7
+ <%- end -%>
@@ -0,0 +1,20 @@
1
+ <%% title "<%= singular_name.titleize %>" %>
2
+
3
+ <%- for attribute in model_attributes -%>
4
+ <p>
5
+ <strong><%= attribute.human_name.titleize %>:</strong>
6
+ <%%=h @<%= singular_name %>.<%= attribute.name %> %>
7
+ </p>
8
+ <%- end -%>
9
+
10
+ <p>
11
+ <%- if action? :edit -%>
12
+ <%%= link_to "Edit", edit_<%= singular_name %>_path(@<%= singular_name %>) %> |
13
+ <%- end -%>
14
+ <%- if action? :destroy -%>
15
+ <%%= link_to "Destroy", @<%= singular_name %>, :confirm => 'Are you sure?', :method => :delete %> |
16
+ <%- end -%>
17
+ <%- if action? :index -%>
18
+ <%%= link_to "View All", <%= plural_name %>_path %>
19
+ <%- end -%>
20
+ </p>
@@ -0,0 +1,10 @@
1
+ - form_for @<%= singular_name %> do |f|
2
+ = f.error_messages
3
+ <%- for attribute in model_attributes -%>
4
+ %p
5
+ = f.label :<%= attribute.name %>
6
+ %br
7
+ = f.<%= attribute.field_type %> :<%= attribute.name %>
8
+ <%- end -%>
9
+ %p
10
+ = f.submit "Submit"
@@ -0,0 +1,14 @@
1
+ - title "Edit <%= singular_name.titleize %>"
2
+
3
+ <%= render_form %>
4
+
5
+ <%- if actions? :show, :index -%>
6
+ %p
7
+ <%- if action? :show -%>
8
+ = link_to "Show", <%= singular_name %>_path(@<%= singular_name %>)
9
+ |
10
+ <%- end -%>
11
+ <%- if action? :index -%>
12
+ = link_to "View All", <%= plural_name %>_path
13
+ <%- end -%>
14
+ <%- end -%>
@@ -0,0 +1,25 @@
1
+ - title "<%= plural_name.titleize %>"
2
+
3
+ %table
4
+ %tr
5
+ <%- for attribute in model_attributes -%>
6
+ %th <%= attribute.human_name %>
7
+ <%- end -%>
8
+ - for <%= singular_name %> in @<%= plural_name %>
9
+ %tr
10
+ <%- for attribute in model_attributes -%>
11
+ %td= h <%= singular_name %>.<%= attribute.name %>
12
+ <%- end -%>
13
+ <%- if action? :show -%>
14
+ %td= link_to 'Show', <%= singular_name %>
15
+ <%- end -%>
16
+ <%- if action? :edit -%>
17
+ %td= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>)
18
+ <%- end -%>
19
+ <%- if action? :destroy -%>
20
+ %td= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
21
+ <%- end -%>
22
+
23
+ <%- if actions? :new -%>
24
+ %p= link_to "New <%= singular_name.titleize %>", new_<%= singular_name %>_path
25
+ <%- end -%>
@@ -0,0 +1,7 @@
1
+ - title "New <%= singular_name.titleize %>"
2
+
3
+ <%= render_form %>
4
+
5
+ <%- if action? :index -%>
6
+ %p= link_to "Back to List", <%= plural_name %>_path
7
+ <%- end -%>
@@ -0,0 +1,20 @@
1
+ - title "<%= singular_name.titleize %>"
2
+
3
+ <%- for attribute in model_attributes -%>
4
+ %p
5
+ %strong <%= attribute.human_name.titleize %>:
6
+ =h @<%= singular_name %>.<%= attribute.name %>
7
+ <%- end -%>
8
+
9
+ %p
10
+ <%- if action? :edit -%>
11
+ = link_to "Edit", edit_<%= singular_name %>_path(@<%= singular_name %>)
12
+ |
13
+ <%- end -%>
14
+ <%- if action? :destroy -%>
15
+ = link_to "Destroy", @<%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
16
+ |
17
+ <%- end -%>
18
+ <%- if action? :index -%>
19
+ = link_to "View All", <%= plural_name %>_path
20
+ <%- end -%>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: very_nifty_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Mandrup, dvyjones
@@ -30,12 +30,14 @@ extensions: []
30
30
 
31
31
  extra_rdoc_files:
32
32
  - LICENSE
33
+ - README
33
34
  - README.rdoc
34
35
  files:
35
36
  - lib/generators/nifty.rb
36
37
  - lib/generators/nifty/authentication/authentication_generator.rb
37
38
  - lib/generators/nifty/authentication/templates/authentication.rb
38
39
  - lib/generators/nifty/authentication/templates/authlogic_session.rb
40
+ - lib/generators/nifty/authentication/templates/fixtures.yml
39
41
  - lib/generators/nifty/authentication/templates/migration.rb
40
42
  - lib/generators/nifty/authentication/templates/sessions_controller.rb
41
43
  - lib/generators/nifty/authentication/templates/sessions_helper.rb
@@ -51,9 +53,18 @@ files:
51
53
  - lib/generators/nifty/authentication/templates/user.rb
52
54
  - lib/generators/nifty/authentication/templates/users_controller.rb
53
55
  - lib/generators/nifty/authentication/templates/users_helper.rb
56
+ - lib/generators/nifty/authentication/templates/views/erb/login.html.erb
57
+ - lib/generators/nifty/authentication/templates/views/erb/signup.html.erb
58
+ - lib/generators/nifty/authentication/templates/views/haml/login.html.haml
59
+ - lib/generators/nifty/authentication/templates/views/haml/signup.html.haml
54
60
  - lib/generators/nifty/config/config_generator.rb
61
+ - lib/generators/nifty/config/templates/config.yml
55
62
  - lib/generators/nifty/layout/layout_generator.rb
56
63
  - lib/generators/nifty/layout/templates/helper.rb
64
+ - lib/generators/nifty/layout/templates/layout.html.erb
65
+ - lib/generators/nifty/layout/templates/layout.html.haml
66
+ - lib/generators/nifty/layout/templates/stylesheet.css
67
+ - lib/generators/nifty/layout/templates/stylesheet.sass
57
68
  - lib/generators/nifty/scaffold/scaffold_generator.rb
58
69
  - lib/generators/nifty/scaffold/templates/actions/create.rb
59
70
  - lib/generators/nifty/scaffold/templates/actions/destroy.rb
@@ -63,6 +74,7 @@ files:
63
74
  - lib/generators/nifty/scaffold/templates/actions/show.rb
64
75
  - lib/generators/nifty/scaffold/templates/actions/update.rb
65
76
  - lib/generators/nifty/scaffold/templates/controller.rb
77
+ - lib/generators/nifty/scaffold/templates/fixtures.yml
66
78
  - lib/generators/nifty/scaffold/templates/helper.rb
67
79
  - lib/generators/nifty/scaffold/templates/migration.rb
68
80
  - lib/generators/nifty/scaffold/templates/model.rb
@@ -93,7 +105,18 @@ files:
93
105
  - lib/generators/nifty/scaffold/templates/tests/testunit/actions/update.rb
94
106
  - lib/generators/nifty/scaffold/templates/tests/testunit/controller.rb
95
107
  - lib/generators/nifty/scaffold/templates/tests/testunit/model.rb
108
+ - lib/generators/nifty/scaffold/templates/views/erb/_form.html.erb
109
+ - lib/generators/nifty/scaffold/templates/views/erb/edit.html.erb
110
+ - lib/generators/nifty/scaffold/templates/views/erb/index.html.erb
111
+ - lib/generators/nifty/scaffold/templates/views/erb/new.html.erb
112
+ - lib/generators/nifty/scaffold/templates/views/erb/show.html.erb
113
+ - lib/generators/nifty/scaffold/templates/views/haml/_form.html.haml
114
+ - lib/generators/nifty/scaffold/templates/views/haml/edit.html.haml
115
+ - lib/generators/nifty/scaffold/templates/views/haml/index.html.haml
116
+ - lib/generators/nifty/scaffold/templates/views/haml/new.html.haml
117
+ - lib/generators/nifty/scaffold/templates/views/haml/show.html.haml
96
118
  - LICENSE
119
+ - README
97
120
  - README.rdoc
98
121
  has_rdoc: true
99
122
  homepage: http://github.com/kristianmandrup/very_nifty_generators