forked from bofh/fetsite
themengruppe priorty feld
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
class Themengruppe < ActiveRecord::Base
|
||||
WORD_COUNT = 50
|
||||
attr_accessible :text, :title, :picture
|
||||
attr_accessible :text, :title, :picture,:priority
|
||||
has_many :themen, class_name: 'Thema'
|
||||
has_many :fragen, through: :themen
|
||||
mount_uploader :picture, PictureUploader
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<%= semantic_form_for @themengruppe do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= f.input :priority %>
|
||||
<%= f.input :picture, :as => :file %>
|
||||
<%= f.input :text %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user