Commit d2b7b6b2 authored by Nice's avatar Nice

fetched files from wrong path, added missing code to quiz2

parent 3913b03b
No preview for this file type
No preview for this file type
<%= simple_form_for(@post) do |f| %> <%= simple_form_for([:admin, @post]) do |f| %>
<%= f.input :title %> <%= f.input :title %>
<%= f.input :category, as: :select, collection:["Dota 2", "LoL"] %> <%= f.input :category, as: :select, collection:["Dota 2", "LoL"] %>
<%= f.input :article %> <%= f.input :article %>
......
# encoding: UTF-8 # encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to # of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition. # incrementally modify your database, and then regenerate this schema definition.
# #
# Note that this schema.rb definition is the authoritative source for your # Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another # database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations # system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations # from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues). # you'll amass, the slower it'll run and the greater likelihood for issues).
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160712051047) do ActiveRecord::Schema.define(version: 20160712051047) do
create_table "posts", force: :cascade do |t| create_table "posts", force: :cascade do |t|
t.string "title" t.string "title"
t.text "article" t.text "article"
t.string "category" t.string "category"
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment