haml-rails 2.0.1 → 3.0.0

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 (71) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +83 -0
  3. data/.gitignore +1 -0
  4. data/Gemfile +17 -2
  5. data/README.md +14 -5
  6. data/haml-rails.gemspec +8 -8
  7. data/lib/generators/haml/controller/controller_generator.rb +3 -2
  8. data/lib/generators/haml/mailer/mailer_generator.rb +7 -33
  9. data/lib/generators/haml/scaffold/scaffold_generator.rb +25 -11
  10. data/lib/generators/haml/scaffold/templates/5_1/_form.html.haml +26 -0
  11. data/lib/generators/haml/scaffold/templates/5_1/edit.html.haml +7 -0
  12. data/lib/generators/haml/scaffold/templates/5_1/index.html.haml +25 -0
  13. data/lib/generators/haml/scaffold/templates/5_1/new.html.haml +5 -0
  14. data/lib/generators/haml/scaffold/templates/5_1/show.html.haml +11 -0
  15. data/lib/generators/haml/scaffold/templates/5_2/_form.html.haml +26 -0
  16. data/lib/generators/haml/scaffold/templates/5_2/edit.html.haml +7 -0
  17. data/lib/generators/haml/scaffold/templates/5_2/index.html.haml +25 -0
  18. data/lib/generators/haml/scaffold/templates/5_2/new.html.haml +5 -0
  19. data/lib/generators/haml/scaffold/templates/5_2/show.html.haml +11 -0
  20. data/lib/generators/haml/scaffold/templates/6_0/_form.html.haml +29 -0
  21. data/lib/generators/haml/scaffold/templates/6_0/edit.html.haml +7 -0
  22. data/lib/generators/haml/scaffold/templates/6_0/index.html.haml +25 -0
  23. data/lib/generators/haml/scaffold/templates/6_0/new.html.haml +5 -0
  24. data/lib/generators/haml/scaffold/templates/6_0/show.html.haml +18 -0
  25. data/lib/generators/haml/scaffold/templates/6_1/_form.html.haml +29 -0
  26. data/lib/generators/haml/scaffold/templates/6_1/edit.html.haml +7 -0
  27. data/lib/generators/haml/scaffold/templates/6_1/index.html.haml +25 -0
  28. data/lib/generators/haml/scaffold/templates/6_1/new.html.haml +5 -0
  29. data/lib/generators/haml/scaffold/templates/6_1/show.html.haml +18 -0
  30. data/lib/generators/haml/scaffold/templates/7_0/_form.html.haml +29 -0
  31. data/lib/generators/haml/scaffold/templates/7_0/edit.html.haml +10 -0
  32. data/lib/generators/haml/scaffold/templates/7_0/index.html.haml +11 -0
  33. data/lib/generators/haml/scaffold/templates/7_0/new.html.haml +8 -0
  34. data/lib/generators/haml/scaffold/templates/7_0/partial.html.haml +14 -0
  35. data/lib/generators/haml/scaffold/templates/7_0/show.html.haml +10 -0
  36. data/lib/generators/haml/scaffold/templates/7_1 +1 -0
  37. data/lib/generators/haml/scaffold/templates/7_2/_form.html.haml +29 -0
  38. data/lib/generators/haml/scaffold/templates/7_2/edit.html.haml +12 -0
  39. data/lib/generators/haml/scaffold/templates/7_2/index.html.haml +13 -0
  40. data/lib/generators/haml/scaffold/templates/7_2/new.html.haml +10 -0
  41. data/lib/generators/haml/scaffold/templates/7_2/partial.html.haml +14 -0
  42. data/lib/generators/haml/scaffold/templates/7_2/show.html.haml +10 -0
  43. data/lib/generators/haml/scaffold/templates/8_0 +1 -0
  44. data/lib/generators/haml/scaffold/templates/_form.html.haml +1 -0
  45. data/lib/generators/haml/scaffold/templates/edit.html.haml +1 -0
  46. data/lib/generators/haml/scaffold/templates/index.html.haml +1 -0
  47. data/lib/generators/haml/scaffold/templates/new.html.haml +1 -0
  48. data/lib/generators/haml/scaffold/templates/partial.html.haml +1 -0
  49. data/lib/generators/haml/scaffold/templates/show.html.haml +1 -0
  50. data/lib/haml-rails/version.rb +3 -1
  51. data/lib/haml-rails.rb +2 -2
  52. data/lib/rails/generators/haml/application_layout/application_layout_generator.rb +8 -6
  53. data/lib/tasks/erb2haml.rake +22 -18
  54. data/test/fixtures/routes.rb +2 -0
  55. data/test/lib/generators/haml/controller_generator_test.rb +6 -3
  56. data/test/lib/generators/haml/mailer_generator_test.rb +23 -1
  57. data/test/lib/generators/haml/scaffold_generator_test.rb +4 -1
  58. data/test/lib/generators/haml/scaffold_template_contents_test.rb +76 -0
  59. data/test/test_helper.rb +44 -53
  60. metadata +52 -43
  61. data/.travis.yml +0 -23
  62. data/Appraisals +0 -27
  63. data/gemfiles/rails_5_1.gemfile +0 -10
  64. data/gemfiles/rails_5_2.gemfile +0 -10
  65. data/gemfiles/rails_6.beta2.gemfile +0 -10
  66. data/lib/generators/haml/scaffold/templates/_form.html.haml +0 -15
  67. data/lib/generators/haml/scaffold/templates/edit.html.haml +0 -7
  68. data/lib/generators/haml/scaffold/templates/index.html.haml +0 -25
  69. data/lib/generators/haml/scaffold/templates/new.html.haml +0 -5
  70. data/lib/generators/haml/scaffold/templates/show.html.haml +0 -11
  71. data/test/lib/generators/haml/testing_helper.rb +0 -1
data/test/test_helper.rb CHANGED
@@ -1,79 +1,70 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems'
4
+ require 'bundler/setup'
5
+ require 'logger'
2
6
  require 'minitest/autorun'
3
- require 'rails/all'
7
+ require 'action_pack'
8
+ require 'action_controller'
9
+ require 'action_view'
10
+ require 'active_model'
11
+ require 'rails'
4
12
  require 'rails/generators'
5
13
  require 'rails/generators/test_case'
14
+ Bundler.require(:default)
6
15
 
7
16
  class TestApp < Rails::Application
8
- config.root = File.dirname(__FILE__)
17
+ config.root = Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..', 'tmp', 'rails')))
18
+ config.eager_load = false
9
19
  end
10
20
 
11
- module Rails
12
- def self.root
13
- @root ||= File.expand_path(File.join(File.dirname(__FILE__), '..', 'tmp', 'rails'))
14
- end
15
- end
21
+ require 'action_controller/railtie'
22
+ require 'action_view/railtie'
23
+
24
+ TestApp.initialize!
16
25
 
17
- # Call configure to load the settings from
18
- # Rails.application.config.generators to Rails::Generators
19
- Rails.application.load_generators
26
+ Rails.application.routes.draw do
27
+ resources :people
28
+ end
20
29
 
21
30
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
22
31
 
23
- def copy_routes
24
- routes = File.join(File.dirname(__FILE__), 'fixtures', 'routes.rb')
25
- destination = File.join(Rails.root, "config")
26
- FileUtils.mkdir_p(destination)
27
- FileUtils.cp File.expand_path(routes), File.expand_path(destination)
28
- end
32
+ module Haml
33
+ module Rails
34
+ module GeneratorTestHelpers
35
+ private
29
36
 
30
- # Asserts the given class exists in the given content. When a block is given,
31
- # it yields the content of the class.
32
- #
33
- # assert_file "test/functional/accounts_controller_test.rb" do |controller_test|
34
- # assert_class "AccountsControllerTest", controller_test do |klass|
35
- # assert_match /context "index action"/, klass
36
- # end
37
- # end
38
- #
39
- def assert_class(klass, content)
40
- assert content =~ /class #{klass}(\(.+\))?(.*?)\nend/m, "Expected to have class #{klass}"
41
- yield $2.strip if block_given?
37
+ def copy_routes
38
+ routes = File.join(File.dirname(__FILE__), 'fixtures', 'routes.rb')
39
+ destination = File.join(::Rails.root, "config")
40
+ FileUtils.mkdir_p(destination)
41
+ FileUtils.cp File.expand_path(routes), File.expand_path(destination)
42
+ end
43
+ end
44
+ end
42
45
  end
43
46
 
44
- def generator_list
45
- {
46
- :rails => ['scaffold', 'controller', 'mailer'],
47
- :haml => ['scaffold', 'controller', 'mailer']
48
- }
49
- end
47
+ ::Rails::Generators::TestCase.include Haml::Rails::GeneratorTestHelpers
48
+
49
+ class Person
50
+ include ActiveModel::Model
51
+
52
+ attr_accessor :id, :name
50
53
 
51
- def path_prefix(name)
52
- case name
53
- when :rails
54
- 'rails/generators'
55
- else
56
- 'generators'
54
+ def initialize(id, name)
55
+ @id, @name = id, name
57
56
  end
58
- end
59
57
 
60
- def require_generators(generator_list)
61
- generator_list.each do |name, generators|
62
- generators.each do |generator_name|
63
- if name.to_s == 'rails' && generator_name.to_s == 'mailer'
64
- require File.join(path_prefix(name), generator_name.to_s, "#{generator_name}_generator")
65
- else
66
- require File.join(path_prefix(name), name.to_s, generator_name.to_s, "#{generator_name}_generator")
67
- end
68
- end
58
+ def to_param
59
+ {id: @id}
69
60
  end
70
61
  end
71
- alias :require_generator :require_generators
72
62
 
73
- require_generators generator_list
63
+ class ApplicationController < ActionController::Base
64
+ end
74
65
 
75
66
  # Remove tmp directory when test suite is completed
76
- MiniTest.after_run do
67
+ Minitest.after_run do
77
68
  tmp_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'tmp'))
78
69
  FileUtils.rm_r(tmp_dir)
79
70
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2019-05-18 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: haml
@@ -17,9 +16,6 @@ dependencies:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: 4.0.6
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '6.0'
23
19
  type: :runtime
24
20
  prerelease: false
25
21
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +23,6 @@ dependencies:
27
23
  - - ">="
28
24
  - !ruby/object:Gem::Version
29
25
  version: 4.0.6
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '6.0'
33
26
  - !ruby/object:Gem::Dependency
34
27
  name: activesupport
35
28
  requirement: !ruby/object:Gem::Requirement
@@ -79,7 +72,7 @@ dependencies:
79
72
  - - ">="
80
73
  - !ruby/object:Gem::Version
81
74
  version: 1.0.1
82
- type: :runtime
75
+ type: :development
83
76
  prerelease: false
84
77
  version_requirements: !ruby/object:Gem::Requirement
85
78
  requirements:
@@ -104,16 +97,16 @@ dependencies:
104
97
  name: bundler
105
98
  requirement: !ruby/object:Gem::Requirement
106
99
  requirements:
107
- - - "~>"
100
+ - - ">="
108
101
  - !ruby/object:Gem::Version
109
- version: '2.0'
102
+ version: '0'
110
103
  type: :development
111
104
  prerelease: false
112
105
  version_requirements: !ruby/object:Gem::Requirement
113
106
  requirements:
114
- - - "~>"
107
+ - - ">="
115
108
  - !ruby/object:Gem::Version
116
- version: '2.0'
109
+ version: '0'
117
110
  - !ruby/object:Gem::Dependency
118
111
  name: rake
119
112
  requirement: !ruby/object:Gem::Requirement
@@ -128,40 +121,22 @@ dependencies:
128
121
  - - ">="
129
122
  - !ruby/object:Gem::Version
130
123
  version: '0'
131
- - !ruby/object:Gem::Dependency
132
- name: appraisal
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '1.0'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '1.0'
145
- description: Haml-rails provides Haml generators for Rails 4. It also enables Haml
146
- as the templating engine for you, so you don't have to screw around in your own
147
- application.rb when your Gemfile already clearly indicated what templating engine
148
- you have installed. Hurrah.
124
+ description: Haml-rails provides Haml generators for Rails 5.1 and above. It also
125
+ enables Haml as the templating engine for you, so you don't have to screw around
126
+ in your own application.rb when your Gemfile already clearly indicated what templating
127
+ engine you have installed. Hurrah.
149
128
  email:
150
129
  - andre@arko.net
151
130
  executables: []
152
131
  extensions: []
153
132
  extra_rdoc_files: []
154
133
  files:
134
+ - ".github/workflows/ruby.yml"
155
135
  - ".gitignore"
156
- - ".travis.yml"
157
- - Appraisals
158
136
  - Gemfile
159
137
  - LICENSE
160
138
  - README.md
161
139
  - Rakefile
162
- - gemfiles/rails_5_1.gemfile
163
- - gemfiles/rails_5_2.gemfile
164
- - gemfiles/rails_6.beta2.gemfile
165
140
  - haml-rails.gemspec
166
141
  - lib/generators/haml/controller/controller_generator.rb
167
142
  - lib/generators/haml/controller/templates/view.html.haml
@@ -171,10 +146,45 @@ files:
171
146
  - lib/generators/haml/mailer/templates/view.html.haml
172
147
  - lib/generators/haml/mailer/templates/view.text.haml
173
148
  - lib/generators/haml/scaffold/scaffold_generator.rb
149
+ - lib/generators/haml/scaffold/templates/5_1/_form.html.haml
150
+ - lib/generators/haml/scaffold/templates/5_1/edit.html.haml
151
+ - lib/generators/haml/scaffold/templates/5_1/index.html.haml
152
+ - lib/generators/haml/scaffold/templates/5_1/new.html.haml
153
+ - lib/generators/haml/scaffold/templates/5_1/show.html.haml
154
+ - lib/generators/haml/scaffold/templates/5_2/_form.html.haml
155
+ - lib/generators/haml/scaffold/templates/5_2/edit.html.haml
156
+ - lib/generators/haml/scaffold/templates/5_2/index.html.haml
157
+ - lib/generators/haml/scaffold/templates/5_2/new.html.haml
158
+ - lib/generators/haml/scaffold/templates/5_2/show.html.haml
159
+ - lib/generators/haml/scaffold/templates/6_0/_form.html.haml
160
+ - lib/generators/haml/scaffold/templates/6_0/edit.html.haml
161
+ - lib/generators/haml/scaffold/templates/6_0/index.html.haml
162
+ - lib/generators/haml/scaffold/templates/6_0/new.html.haml
163
+ - lib/generators/haml/scaffold/templates/6_0/show.html.haml
164
+ - lib/generators/haml/scaffold/templates/6_1/_form.html.haml
165
+ - lib/generators/haml/scaffold/templates/6_1/edit.html.haml
166
+ - lib/generators/haml/scaffold/templates/6_1/index.html.haml
167
+ - lib/generators/haml/scaffold/templates/6_1/new.html.haml
168
+ - lib/generators/haml/scaffold/templates/6_1/show.html.haml
169
+ - lib/generators/haml/scaffold/templates/7_0/_form.html.haml
170
+ - lib/generators/haml/scaffold/templates/7_0/edit.html.haml
171
+ - lib/generators/haml/scaffold/templates/7_0/index.html.haml
172
+ - lib/generators/haml/scaffold/templates/7_0/new.html.haml
173
+ - lib/generators/haml/scaffold/templates/7_0/partial.html.haml
174
+ - lib/generators/haml/scaffold/templates/7_0/show.html.haml
175
+ - lib/generators/haml/scaffold/templates/7_1
176
+ - lib/generators/haml/scaffold/templates/7_2/_form.html.haml
177
+ - lib/generators/haml/scaffold/templates/7_2/edit.html.haml
178
+ - lib/generators/haml/scaffold/templates/7_2/index.html.haml
179
+ - lib/generators/haml/scaffold/templates/7_2/new.html.haml
180
+ - lib/generators/haml/scaffold/templates/7_2/partial.html.haml
181
+ - lib/generators/haml/scaffold/templates/7_2/show.html.haml
182
+ - lib/generators/haml/scaffold/templates/8_0
174
183
  - lib/generators/haml/scaffold/templates/_form.html.haml
175
184
  - lib/generators/haml/scaffold/templates/edit.html.haml
176
185
  - lib/generators/haml/scaffold/templates/index.html.haml
177
186
  - lib/generators/haml/scaffold/templates/new.html.haml
187
+ - lib/generators/haml/scaffold/templates/partial.html.haml
178
188
  - lib/generators/haml/scaffold/templates/show.html.haml
179
189
  - lib/haml-rails.rb
180
190
  - lib/haml-rails/version.rb
@@ -184,13 +194,13 @@ files:
184
194
  - test/lib/generators/haml/controller_generator_test.rb
185
195
  - test/lib/generators/haml/mailer_generator_test.rb
186
196
  - test/lib/generators/haml/scaffold_generator_test.rb
187
- - test/lib/generators/haml/testing_helper.rb
197
+ - test/lib/generators/haml/scaffold_template_contents_test.rb
188
198
  - test/test_helper.rb
189
- homepage: https://github.com/indirect/haml-rails
199
+ homepage: https://github.com/haml/haml-rails
190
200
  licenses:
191
201
  - MIT
192
- metadata: {}
193
- post_install_message:
202
+ metadata:
203
+ rubygems_mfa_required: 'true'
194
204
  rdoc_options: []
195
205
  require_paths:
196
206
  - lib
@@ -205,8 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
215
  - !ruby/object:Gem::Version
206
216
  version: 2.0.0
207
217
  requirements: []
208
- rubygems_version: 3.0.3
209
- signing_key:
218
+ rubygems_version: 3.8.0.dev
210
219
  specification_version: 4
211
220
  summary: let your Gemfile do the configuring
212
221
  test_files: []
data/.travis.yml DELETED
@@ -1,23 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- cache: bundler
4
- before_install:
5
- - "gem update --system"
6
- - "gem install bundler"
7
- rvm:
8
- - 2.5.3
9
- - 2.4.5
10
- - 2.3.8
11
- - jruby-9.2.5.0
12
- gemfile:
13
- - gemfiles/rails_5_2.gemfile
14
- - gemfiles/rails_5_1.gemfile
15
- - gemfiles/rails_5_2.gemfile
16
- - gemfiles/rails_6.beta2.gemfile
17
- matrix:
18
- exclude:
19
- - rvm: 2.3.8
20
- gemfile: gemfiles/rails_6.beta2.gemfile
21
- - rvm: 2.4.5
22
- gemfile: gemfiles/rails_6.beta2.gemfile
23
- script: "bundle exec rake test"
data/Appraisals DELETED
@@ -1,27 +0,0 @@
1
- appraise "rails_4_0" do
2
- gem "rails", "~> 4.0.1"
3
- end
4
-
5
- appraise "rails_4_1" do
6
- gem "rails", "4.1"
7
- end
8
-
9
- appraise "rails_4_2" do
10
- gem "rails", "4.2"
11
- end
12
-
13
- appraise "rails_5_0" do
14
- gem "rails", "5.0"
15
- end
16
-
17
- appraise "rails_5_1" do
18
- gem "rails", "5.1"
19
- end
20
-
21
- appraise "rails_5_2" do
22
- gem "rails", "5.2"
23
- end
24
-
25
- appraise "rails_6.beta2" do
26
- gem "rails", "6.0.0.beta2"
27
- end
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rubysl", "~> 2.0", :platforms => :rbx
6
- gem "minitest", :platforms => :rbx
7
- gem "html2haml"
8
- gem "rails", "~> 5.1.5"
9
-
10
- gemspec :path => "../"
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rubysl", "~> 2.0", :platforms => :rbx
6
- gem "minitest", :platforms => :rbx
7
- gem "html2haml"
8
- gem "rails", "~> 5.2.0"
9
-
10
- gemspec :path => "../"
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rubysl", "~> 2.0", :platforms => :rbx
6
- gem "minitest", :platforms => :rbx
7
- gem "html2haml"
8
- gem "rails", "6.0.0.beta2"
9
-
10
- gemspec :path => "../"
@@ -1,15 +0,0 @@
1
- = form_for @<%= singular_table_name %> do |f|
2
- - if @<%= singular_table_name %>.errors.any?
3
- #error_explanation
4
- %h2= "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
5
- %ul
6
- - @<%= singular_table_name %>.errors.full_messages.each do |message|
7
- %li= message
8
-
9
- <% for attribute in attributes -%>
10
- .field
11
- = f.label :<%= attribute.name %>
12
- = f.<%= attribute.field_type %> :<%= attribute.name %>
13
- <% end -%>
14
- .actions
15
- = f.submit 'Save'
@@ -1,7 +0,0 @@
1
- %h1 Editing <%= singular_table_name %>
2
-
3
- = render 'form'
4
-
5
- = link_to 'Show', @<%= singular_table_name %>
6
- \|
7
- = link_to 'Back', <%= index_helper %>_path
@@ -1,25 +0,0 @@
1
- %h1 Listing <%= plural_table_name %>
2
-
3
- %table
4
- %thead
5
- %tr
6
- <% for attribute in attributes -%>
7
- %th <%= attribute.human_name %>
8
- <% end -%>
9
- %th
10
- %th
11
- %th
12
-
13
- %tbody
14
- - @<%= plural_table_name %>.each do |<%= singular_table_name %>|
15
- %tr
16
- <% for attribute in attributes -%>
17
- %td= <%= singular_table_name %>.<%= attribute.name %>
18
- <% end -%>
19
- %td= link_to 'Show', <%= singular_table_name %>
20
- %td= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
21
- %td= link_to 'Destroy', <%= singular_table_name %>, method: :delete, data: { confirm: 'Are you sure?' }
22
-
23
- %br
24
-
25
- = link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path
@@ -1,5 +0,0 @@
1
- %h1 New <%= singular_table_name %>
2
-
3
- = render 'form'
4
-
5
- = link_to 'Back', <%= index_helper %>_path
@@ -1,11 +0,0 @@
1
- %p#notice= notice
2
-
3
- <% for attribute in attributes -%>
4
- %p
5
- %b <%= attribute.human_name %>:
6
- = @<%= singular_table_name %>.<%= attribute.name %>
7
- <% end -%>
8
-
9
- = link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
10
- \|
11
- = link_to 'Back', <%= index_helper %>_path
@@ -1 +0,0 @@
1
- require_generators :haml => ['scaffold', 'controller', 'mailer']