脚手架创建.slim而不是erb文件

时间:2019-04-21 00:27:44

标签: ruby-on-rails

我有一个应用已经使用了html.erb个文件一段时间了。最近,我注意到我的新脚手架都进入了.slim。我看到生成期间的调用苗条。

如果可能,我想在erb中生成带有视图的支架。

rails g scaffold_controller Welcome

我的application.rb文件:

require_relative 'boot'

require 'rails/all'
require 'iconv'

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)



module NewApp
  class Application < Rails::Application
    config.assets.paths << Rails.root.join("app", "assets", "fonts")
    # Initialize configuration defaults for originally generated Rails version.
    config.action_view.embed_authenticity_token_in_remote_forms = true
    config.load_defaults 5.1
    config.serve_static_assets = true
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.
  end
end

我知道这是一个非常简单的问题,但在Google上似乎并不明显。 感谢您的帮助

0 个答案:

没有答案