Complete the code to include a JavaScript file in the asset pipeline manifest.
//= require [1]The //= require jquery directive includes the jQuery JavaScript file in the asset pipeline manifest.
Complete the code to precompile additional assets in Rails configuration.
Rails.application.config.assets.precompile += %w( [1] )Adding admin.js to the precompile array tells Rails to compile this additional JavaScript asset.
Fix the error in the manifest file to correctly include all JavaScript files in the directory.
//= require_tree [1]The //= require_tree . directive includes all JavaScript files in the current directory.
Fill both blanks to correctly reference a CSS file and its path in the asset pipeline manifest.
*= require [1] *= require [2]
The directives require reset and require main include the CSS files named reset.css and main.css respectively.
Fill all three blanks to create a hash mapping asset names to their logical paths with a condition.
assets = { [1]: [2] for [3] in %w[admin user guest] if [3] != 'guest' }This dictionary comprehension creates a hash where keys are names and values are the corresponding JavaScript filenames, excluding 'guest'.