Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Deviseを入れたApplicationでVue(Webpack)を入れるとログアウトができなったのでメモ

Posted at

ちょっと詰まったのでメモ

Vueの導入の仕方

ここら辺を参考にするとできました。
しかしバージョンによってはバグが出るので要注意です。

本題

とりあえずVueをSetupし終わってVueのScriptは動くようになったと。

それで元々deviseが入っているサービスだったためログイン,ログアウトは当然できる

しかし、Vueを入れて確認のためHeaderの挙動を見るためログインした後にログアウトしたら

スクリーンショット 2018-05-27 12.17.35.png

こんなエラー。

= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'

これを

 = javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'
 = javascript_include_tag 'application', 'data-turbolinks-track': 'reload'

こんな風にすることで解決。

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?