liquid-rails icon indicating copy to clipboard operation
liquid-rails copied to clipboard

Does this gem break controller generators?

Open richardonrails opened this issue 4 years ago • 1 comments

When I run the rails generate scaffold_controller Foo name:string I get an error liquid [not found].

$ rails g scaffold_controller Foo name:string                      
      create  app/controllers/foos_controller.rb
       error  liquid [not found]
      invoke  test_unit
      create    test/controllers/foos_controller_test.rb
      create    test/system/foos_test.rb
      invoke  helper
      create    app/helpers/foos_helper.rb
      invoke    test_unit
      invoke  jbuilder
      create    app/views/foos
      create    app/views/foos/index.json.jbuilder
      create    app/views/foos/show.json.jbuilder
      create    app/views/foos/_foo.json.jbuilder

Since it fails on "liquid", wondering if the issue may be related to this gem...

I don't really expect it to be scaffolding any liquid templates, I just want my typical .erb templates generated.

richardonrails avatar Jun 19 '20 19:06 richardonrails

Similar issue with generating a controller. Models and migrations can still generate just fine.

rails generate controller Foo index                                                                  
      create  app/controllers/foo_controller.rb
       route  get 'foo/index'
       error  liquid [not found]
      ...

richardonrails avatar Jun 19 '20 20:06 richardonrails