railsでdeviseでサインイン,ログイン昨日を作りました。gem bootstarpを入れて、サインアウトのレイアウトをきれいにしようと思ったですが、bootstarpのテンプレートをどのようにして、railsのhtml.erbに入れたいいのかわからないです。
形式が違うので、できないです。
http://bootsnipp.com/snippets/featured/register-page
上のURLは、bootstarpのテンプレートです。
コード 現在のコード <div class="container"> <div class="row"> <div class="col-md-6 col-md-offset-3 text-center"> <h2>登録</h2> <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> <%= devise_error_messages! %> <div class="field"> <%= f.label :username %><br /> <%= f.text_field :username, :placeholder => '北尾 恵太' %> </div> <div class="field"> <%= f.label :email %><br /> <%= f.email_field :email, :placeholder => 'email', autofocus: true %> </div> <div class="field"> <%= f.label :password %> <% if @minimum_password_length %> <em>(<%= @minimum_password_length %>)文字以上</em> <% end %><br /> <%= f.password_field :password, :placeholder => 'パスワード', autocomplete: "off" %> </div> <div class="field"> <%= f.label :password_confirmation %><br /> <%= f.password_field :password_confirmation, :placeholder => 'パスワードの確認', autocomplete: "off" %> </div> <div class="actions"> <%= f.submit "Sign up", class:'btn btn-success' %> </div> <% end %> <%= render "devise/shared/links" %> </div> </div> </div>
回答1件
あなたの回答
tips
プレビュー