defaceを使用してログインページを上書きしようとしていますが、次のコードを使用してログイン部分にアクセスできません
Deface::Override.new(
:virtual_path => 'spree/shared/_login',
:name => 'override login',
:replace=> "body",
:text=> "<body><h1>loin<h1></body>",
:disabled => false
)
これは何らかの理由で機能しないようですが、サーバー出力で次のように表示されます: Deface: 1 overrides found for 'spree/shared/_login' Deface: 'override login' Matched 0 times with 'body' .rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spree_auth_devise-3.1.0/lib/views/frontend/spree/shared/_login.html.erb (50.3ms) レンダリング /home/ user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spree_auth_devise-3.1.0/lib/views/frontend/spree/user_sessions/new.html.erb 内 spree/layouts/spree_application (77.4ms)
ページで css の複数のセレクターを試してみましたが、結果はありませんでした。ログイン部分が「spree_auth_devise-3.1.0」サブディレクトリにあることに気付きました。ログインページをまくるか、その部分の正しいパスを参照する方法は?