Skip to content

Commit cdee927

Browse files
update yarn and fix controller action name
1 parent 0581977 commit cdee927

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
matestack-ui-core (0.7.0)
4+
matestack-ui-core (0.7.1)
55
cells-haml
66
cells-rails
77
haml

lib/generators/matestack_page/matestack_page_generator.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ def create_matestack_page
2727
unless options[:called_by_app_generator]
2828
route %{get '#{@app_name}/#{@namespace}/#{file_name}', to: '#{@controller_action}'} unless @namespace.nil?
2929
route %{get '#{@app_name}/#{file_name}', to: '#{@controller_action}'} if @namespace.nil?
30-
puts "Page created! Make sure to modify"
30+
puts "Page created! Make sure to add "
3131
puts ""
32-
puts "def controller_action"
32+
puts "def #{file_name}"
3333
puts " responder_for(Pages::#{@app_name.camelize}::#{@namespace.camelize}::#{file_name.camelize})" unless @namespace.nil?
3434
puts " responder_for(Pages::#{@app_name.camelize}::#{file_name.camelize})" if @namespace.nil?
3535
puts "end"
3636
puts ""
37-
puts "and add it to the desired controller!"
37+
puts "to the desired controller!"
3838
end
3939

4040
end

0 commit comments

Comments
 (0)