- form_tag sign_in_users_path do
- if @user.errors.any?
%div#error_explanation
%h2= pluralize(@user.errors.count, "error")
%ul
- @user.errors.full_messages do |msg|
%li= msg
= label_tag :login
= text_field_tag :login
= label_tag :password
= password_field_tag :password
%div.form_actions
= submit_tag
Ich versuche, ein Login-Formular in haml zu erstellen, ich bin total neu dazu. Ich kann alle anderen Dinge außer diesem Block anzeigen.Kann jemand mir erklären, warum dieser haml Code nichts anzeigt
haha, du hast mich dazu geschlagen! : P – ericraio
danke james, es hat funktioniert – Deepak