Skip to content

Scaffold generator crashes looking for system_test.rb #4

@brenthoughton2

Description

@brenthoughton2

When running the scaffold generator for a new admin page, it always crashes because it can't find a file named "system_test.rb":

$ bin/rails generate admin:scaffold user_actions user_uuid:string legacy_user_id:integer user_identifier:string user_created
_at:datetime zipcode:string ip:string session:string score:integer status:string created_at:datetime updated_at:datetime
create  app/views/admin/user_actions
create  app/views/admin/user_actions/_form.html.erb
create  app/views/admin/user_actions/edit.html.erb
create  app/views/admin/user_actions/index.html.erb
create  app/views/admin/user_actions/new.html.erb
create  app/views/admin/user_actions/show.html.erb
create  app/controllers/admin/user_actions_controller.rb
create  test/controllers/admin/user_actions_controller_test.rb
Could not find "system_test.rb" in any of your source paths. Your current source paths are:
/usr/local/bundle/ruby/3.4.0/gems/administration-zero-1.0.6/lib/generators/admin/scaffold/templates

This line in the scaffold generator references a template file that doesn't exist, so the scaffold generator always raises an error at that point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions