사용자/new.html.erb에서 부트 스트랩 sass를 양식에로드 할 수 없습니다. Listing 7.15/7.16의 railstutorial.org에서 다음과 같이 보입니다. 1`1 나를 위해 부트 스트랩을 내 양식에로드 할 수 없습니다. 레일
내 저장소 : 도움을 https://github.com/xt442/railstutorialorg
감사합니다! 당신이 쓴
사용자/new.html.erb에서 부트 스트랩 sass를 양식에로드 할 수 없습니다. Listing 7.15/7.16의 railstutorial.org에서 다음과 같이 보입니다. 1`1 나를 위해 부트 스트랩을 내 양식에로드 할 수 없습니다. 레일
내 저장소 : 도움을 https://github.com/xt442/railstutorialorg
감사합니다! 당신이 쓴
작동하지 않습니다. 버튼 &는 btn-block
뭔가
<%= 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 %>
는 모르겠지만, 난 당신이 부분 PARAMS을 놓친주의 사항 :
<%= render partial:'layouts/header' %>
및
<%= render partial:'layouts/footer' %>
그 W해야 오크
@Pietro Allievi 아직도 당신이 wrap
클래스 form-group
와 사업부와 label & text field
에있는 https://i.stack.imgur.com/Qb4g1.png
감사가 작업을 ou는 다음과 같이 부모 요소 사용 클래스의 전체 폭에 걸쳐 걸쳐! – Drekoo
환영합니다, 나는 그것이 당신을 위해 일하기 때문에 기쁩니다 :) – Salil