Created
April 13, 2016 10:47
-
-
Save keita03301995/eb97f775cbb9bb2dc1247524b5dad158 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%h1 Lesson作成 | |
= form_for(@lesson) do |f| | |
.field | |
= f.label :part, "Lesson番号(大問)" | |
%br | |
= f.number_field :part | |
.field | |
= f.label :number, "Lesson番号(小問)" | |
%br | |
= f.number_field :number | |
.field | |
= f.label :subject_id, "割り当てる課題" | |
= f.collection_select :subject, Subject.all, :id, :title | |
%br | |
%br | |
.actions | |
= f.submit "保存する" | |
- flash.each do |type, msg| | |
%div{class: "alert alert-#{type}"}= simple_format(msg) | |
= debug(params) if Rails.env.development? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
多分使いませんがとっておきます