leogalmeida/slim-rails — Issue #19: Error when generate slim file
Author: fancyoung
Created: 2012-02-07 08:58:06+00:00
State: open

Rails 3.2.1
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

```
[hs@hs anode]$ rails g scaffold post title:string content:string
invoke mongoid
identical app/models/post.rb
invoke test_unit
identical test/unit/post_test.rb
identical test/fixtures/posts.yml
route resources :posts
invoke scaffold_controller
identical app/controllers/posts_controller.rb
[WARNING] Could not load generator "generators/slim/scaffold/scaffold_generator". Error: /home/hs/.rvm/gems/ruby-1.9.3-p0/bundler/gems/slim-rails-8c6ad105aa7a/lib/generators/slim/scaffold/scaffold_generator.rb:11: syntax error, unexpected tSTRING_BEG, expecting keyword_end
...#{view}.html.slim", File.join 'app', 'views', controller_fil...
... ^
/home/hs/.rvm/gems/ruby-1.9.3-p0/bundler/gems/slim-rails-8c6ad105aa7a/lib/generators/slim/scaffold/scaffold_generator.rb:11: syntax error, unexpected ',', expecting keyword_end
...w}.html.slim", File.join 'app', 'views', controller_file_pat...
... ^
/home/hs/.rvm/gems/ruby-1.9.3-p0/bundler/gems/slim-rails-8c6ad105aa7a/lib/generators/slim/scaffold/scaffold_generator.rb:11: syntax error, unexpected ',', expecting keyword_end
...lim", File.join 'app', 'views', controller_file_path, filena...
... ^
/home/hs/.rvm/gems/ruby-1.9.3-p0/bundler/gems/slim-rails-8c6ad105aa7a/lib/generators/slim/scaffold/scaffold_generator.rb:11: syntax error, unexpected '\n', expecting '='
/home/hs/.rvm/gems/ruby-1.9.3-p0/bundler/gems/slim-rails-8c6ad105aa7a/lib/generators/slim/scaffold/scaffold_generator.rb:27: syntax error, unexpected $end, expecting keyword_end.
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/generators.rb:298:in `block (2 levels) in lookup'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/generators.rb:294:in `each'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/generators.rb:294:in `block in lookup'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/generators.rb:293:in `each'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/generators.rb:293:in `lookup'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/generators.rb:151:in `find_by_namespace'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/generators/base.rb:345:in `prepare_for_invocation'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/group.rb:145:in `_invoke_from_option_template_engine'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `invoke'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/group.rb:269:in `block in _invoke_for_class_method'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/shell.rb:74:in `with_padding'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/group.rb:258:in `_invoke_for_class_method'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/group.rb:150:in `_invoke_from_option_scaffold_controller'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/generators.rb:170:in `invoke'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/commands/generate.rb:12:in `'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
/home/hs/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/commands.rb:29:in `'
script/rails:6:in `require'
script/rails:6:in `

'
error slim [not found]
invoke test_unit
identical test/functional/posts_controller_test.rb
invoke helper
identical app/helpers/posts_helper.rb
invoke test_unit
identical test/unit/helpers/posts_helper_test.rb
invoke assets
invoke coffee
identical app/assets/javascripts/posts.js.coffee
invoke scss
identical app/assets/stylesheets/posts.css.scss
invoke scss
identical app/assets/stylesheets/scaffolds.css.scss

```