Commit 6225f441 by tady

tag途中

parent 5c48f58d
...@@ -8,18 +8,20 @@ ...@@ -8,18 +8,20 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the * You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope. * compiled file, but it's generally better to create a new file per style scope.
* *
*= require_self
*= require_tree . *= require_tree .
*= require twitter/bootstrap *= require twitter/bootstrap
*= require_self
*/ */
body { body {
padding-top: 70px; padding-top: 70px;
} }
.navbar-brand{ .navbar-default .navbar-brand{
background-color: #00FF7F; background-color: #428bca;
color: #fff;
} }
.box-text { .box-text {
padding: 9px 14px; padding: 9px 14px;
margin-left: 0; margin-left: 0;
...@@ -31,6 +33,7 @@ body { ...@@ -31,6 +33,7 @@ body {
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
box-shadow: none; box-shadow: none;
} }
.box-highlight { .box-highlight {
padding: 9px 14px; padding: 9px 14px;
margin-bottom: 14px; margin-bottom: 14px;
...@@ -39,8 +42,8 @@ body { ...@@ -39,8 +42,8 @@ body {
border-radius: 4px; border-radius: 4px;
} }
.box-text + .box-highlight{ .box-text + .box-highlight{
border-top-left-radius: 0px; border-top-left-radius: 0px;
border-top-right-radius: 0px; border-top-right-radius: 0px;
} }
class Tag < ActiveRecord::Base
end
class CreateTags < ActiveRecord::Migration
def change
create_table :tags do |t|
t.string :name
t.timestamps
end
end
end
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# 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: 20131128163959) do ActiveRecord::Schema.define(version: 20131129004415) do
create_table "posts", force: true do |t| create_table "posts", force: true do |t|
t.string "title" t.string "title"
...@@ -20,4 +20,10 @@ ActiveRecord::Schema.define(version: 20131128163959) do ...@@ -20,4 +20,10 @@ ActiveRecord::Schema.define(version: 20131128163959) do
t.datetime "updated_at" t.datetime "updated_at"
end end
create_table "tags", force: true do |t|
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
end
end end
...@@ -5,3 +5,9 @@ ...@@ -5,3 +5,9 @@
# #
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first) # Mayor.create(name: 'Emanuel', city: cities.first)
%w(JavaScript HTML CSS iPhone PHP Ruby Android Qiita Java Objective-C Vim Python ShellScript C++ C CoffeeScript Emacs git Perl jQuery
).each do |tag|
Tag.find_or_create_by(name: tag)
end
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
two:
name: MyString
require 'test_helper'
class TagTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# 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