質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Devise

Deviseとは、Ruby-on-Railsの認証機能を追加するプラグインです。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails 6

Ruby on Rails 6は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

3075閲覧

rails6 active_strageがインストールできない

退会済みユーザー

退会済みユーザー

総合スコア0

Devise

Deviseとは、Ruby-on-Railsの認証機能を追加するプラグインです。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails 6

Ruby on Rails 6は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2020/12/27 08:26

deviseにプロフィール画像を作ろうとして、下記サイト参考にActiveStorageを導入したいのですが、ActiveStorageがインストールできません、。

https://qiita.com/ryutaro9595/items/19fa8093c3abfe10a2a9

一応、config/application.rbにrequire "active_storage/engine"を追加してからやったりしましたが、同じエラーが出ます。

どうすれば良いかご教示願います。

$ rails active_strage:install rails aborted! Don't know how to build task 'active_strage:install' (See the list of available tasks with `rails --tasks`) Did you mean? active_storage:install /Users/Desktop/dev/ruby/app/bin/rails:5:in `<top (required)>' /Users/Desktop/dev/ruby/app/bin/spring:8:in `block in <top (required)>' /Users/Desktop/dev/ruby/app/bin/spring:5:in `tap' /Users/Desktop/dev/ruby/app/bin/spring:5:in `<top (required)>' (See full trace by running task with --trace)
$ rails --tasks rails about # List versions of all Rails frameworks and the environment rails action_mailbox:ingress:exim # Relay an inbound email from Exim to Action Mailbox (URL and INGRESS_PASSWORD required) rails action_mailbox:ingress:postfix # Relay an inbound email from Postfix to Action Mailbox (URL and INGRESS_PASSWORD required) rails action_mailbox:ingress:qmail # Relay an inbound email from Qmail to Action Mailbox (URL and INGRESS_PASSWORD required) rails action_mailbox:install # Installs Action Mailbox and its dependencies rails action_mailbox:install:migrations # Copy migrations from action_mailbox to application rails action_text:install # Copy over the migration, stylesheet, and JavaScript files rails action_text:install:migrations # Copy migrations from action_text to application rails active_storage:install # Copy over the migration needed to the application rails app:template # Applies the template supplied by LOCATION=(/path/to/template) or URL rails app:update # Update configs and some other initially generated files (or use just update:configs or update:bin) rails assets:clean[keep] # Remove old compiled assets rails assets:clobber # Remove compiled assets rails assets:environment # Load asset compile environment rails assets:precompile # Compile all the assets named in config.assets.precompile rails cache_digests:dependencies # Lookup first-level dependencies for TEMPLATE (like messages/show or comments/_comment.html) rails cache_digests:nested_dependencies # Lookup nested dependencies for TEMPLATE (like messages/show or comments/_comment.html) rails db:create # Creates the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:create:... rails db:drop # Drops the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:drop:all ... rails db:environment:set # Set the environment value for the database rails db:fixtures:load # Loads fixtures into the current environment's database rails db:migrate # Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog) rails db:migrate:down # Runs the "down" for a given migration VERSION rails db:migrate:redo # Rolls back the database one migration and re-migrates up (options: STEP=x, VERSION=x) rails db:migrate:status # Display status of migrations rails db:migrate:up # Runs the "up" for a given migration VERSION rails db:prepare # Runs setup if database does not exist, or runs migrations if it does rails db:reset # Drops and recreates the database from db/schema.rb for the current environment and loads the seeds rails db:rollback # Rolls the schema back to the previous version (specify steps w/ STEP=n) rails db:schema:cache:clear # Clears a db/schema_cache.yml file rails db:schema:cache:dump # Creates a db/schema_cache.yml file rails db:schema:dump # Creates a database schema file (either db/schema.rb or db/structure.sql, depending on `config.active_re... rails db:schema:load # Loads a database schema file (either db/schema.rb or db/structure.sql, depending on `config.active_reco... rails db:seed # Loads the seed data from db/seeds.rb rails db:seed:replant # Truncates tables of each database for current environment and loads the seeds rails db:setup # Creates the database, loads the schema, and initializes with the seed data (use db:reset to also drop t... rails db:structure:dump # Dumps the database structure to db/structure.sql rails db:structure:load # Recreates the databases from the structure.sql file rails db:version # Retrieves the current schema version number rails log:clear # Truncates all/specified *.log files in log/ to zero bytes (specify which logs with LOGS=test,development) rails middleware # Prints out your Rack middleware stack rails public_uid:generate # Generate public_uid on Models that have public_uid column on records that have nil value rails restart # Restart app by touching tmp/restart.txt rails secret # Generate a cryptographically secure secret key (this is typically used to generate a secret for cookie ... rails stats # Report code statistics (KLOCs, etc) from the application or engine rails test # Runs all tests in test folder except system ones rails test:all # Runs all tests, including system tests rails test:db # Run tests quickly, but also reset db rails test:system # Run system tests only rails time:zones[country_or_offset] # List all time zones, list by two-letter country code (`bin/rails time:zones[US]`), or list by UTC offse... rails tmp:clear # Clear cache, socket and screenshot files from tmp/ (narrow w/ tmp:cache:clear, tmp:sockets:clear, tmp:s... rails tmp:create # Creates tmp directories for cache, sockets, and pids rails webpacker # Lists all available tasks in Webpacker rails webpacker:binstubs # Installs Webpacker binstubs in this application rails webpacker:check_binstubs # Verifies that webpack & webpack-dev-server are present rails webpacker:check_node # Verifies if Node.js is installed rails webpacker:check_yarn # Verifies if Yarn is installed rails webpacker:clean[keep,age] # Remove old compiled webpacks rails webpacker:clobber # Remove the webpack compiled output directory rails webpacker:compile # Compile JavaScript packs using webpack for production with digests rails webpacker:info # Provide information on Webpacker's environment rails webpacker:install # Install Webpacker in this application rails webpacker:install:angular # Install everything needed for Angular rails webpacker:install:coffee # Install everything needed for Coffee rails webpacker:install:elm # Install everything needed for Elm rails webpacker:install:erb # Install everything needed for Erb rails webpacker:install:react # Install everything needed for React rails webpacker:install:stimulus # Install everything needed for Stimulus rails webpacker:install:svelte # Install everything needed for Svelte rails webpacker:install:typescript # Install everything needed for Typescript rails webpacker:install:vue # Install everything needed for Vue rails webpacker:verify_install # Verifies if Webpacker is installed rails webpacker:yarn_install # Support for older Rails versions rails yarn:install # Install all JavaScript dependencies as specified via Yarn rails zeitwerk:check # Checks project structure for Zeitwerk compatibility

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

rails active_strage:install

storageのoが抜けてしまっているようです。

投稿2020/12/27 08:45

educ_gt

総合スコア282

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問