2017-12-29 32 views

答えて

1

を働いていません。親要素の使用クラスの全幅にわたって

<%= form_for(@user) do |f| %> 
    <%= content_tag :div, class: 'form-group' do %> 
    <%= f.label :name %> 
    <%= f.text_field :name, class: 'form-control' %> 
    <% end %> 
    <%= content_tag :div, class: 'form-group' do %> 
    <%= f.label :email %> 
    <%= f.email_field :email, class: 'form-control' %> 
    <% end %> 
    <%= content_tag :div, class: 'form-group' do %> 
    <%= f.label :password %> 
    <%= f.password_field :password, class: 'form-control' %> 
    <% end %> 
    <%= content_tag :div, class: 'form-group' do %> 
    <%= f.label :password_confirmation, "Confirmation" %> 
    <%= f.password_field :password_confirmation, class: 'form-control' %> 
    <% end %> 
    <%= f.submit "Create my account", class: "btn btn-primary btn-block" %> 
<% end %> 
+0

感謝はその作業をOU、次のようなbtn-block

何かにまたがるボタンの &! – Drekoo

+0

ようこそ、それはあなたのためにうれしいよ:) – Salil

0

@Dima I. Belinski それが解決できれば、私はあなたが書いた、それは

enter image description here

0

をポップアップするようわかりませんでしたが、私はあなたの部分のparamsを見逃して気づく:

<%= render partial:'layouts/header' %> 
Wべき

<%= render partial:'layouts/footer' %> 

ORK

関連する問題