Skip to content

Creating an application from local branch of Rails fails. #38459

@peterb

Description

@peterb

Steps to reproduce

As per Guides, run bundle exec rails new ~/my-test-app --dev

Expected behavior

New Rails app should be generated linked to local copy of Rails.

Actual behavior

The command fails:

/vagrant/rails/railties/lib/rails/generators/actions.rb:255:in `block in rails_command': undefined method `silence_warnings' for #<Rails::Generators::AppGenerator:0x000055d32b413328> (NoMethodError)

I think this may have been introduced in f6f5163. I tried to fix this, adding

require "active_support/core_ext/kernel/reporting"

in railties/lib/rails/generators/actions.rb and running again which results in:

invalid option: --dev

This is probably related to rails_command "webpacker:install".

System configuration

Rails version:
Edge Rails at df186bd

Ruby version:
2.5.5p157

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions