Commit e6813b53 by Bui Minh Duc

fixed gitignore

parent 198e9b27
...@@ -19,3 +19,4 @@ ...@@ -19,3 +19,4 @@
# Ignore Byebug command history file. # Ignore Byebug command history file.
.byebug_history .byebug_history
/config/secrets.yml
...@@ -30,6 +30,8 @@ gem 'jbuilder', '~> 2.5' ...@@ -30,6 +30,8 @@ gem 'jbuilder', '~> 2.5'
# Use Capistrano for deployment # Use Capistrano for deployment
# gem 'capistrano-rails', group: :development # gem 'capistrano-rails', group: :development
gem 'bootstrap-sass', '~> 3.3.6'
group :development, :test do group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console # Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri gem 'byebug', platform: :mri
......
...@@ -39,6 +39,11 @@ GEM ...@@ -39,6 +39,11 @@ GEM
minitest (~> 5.1) minitest (~> 5.1)
tzinfo (~> 1.1) tzinfo (~> 1.1)
arel (7.1.4) arel (7.1.4)
autoprefixer-rails (6.4.1)
execjs
bootstrap-sass (3.3.6)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.2) builder (3.2.2)
byebug (9.0.6) byebug (9.0.6)
coffee-rails (4.2.1) coffee-rails (4.2.1)
...@@ -154,6 +159,7 @@ PLATFORMS ...@@ -154,6 +159,7 @@ PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
bootstrap-sass (~> 3.3.6)
byebug byebug
coffee-rails (~> 4.2) coffee-rails (~> 4.2)
jbuilder (~> 2.5) jbuilder (~> 2.5)
......
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
...@@ -13,3 +13,4 @@ ...@@ -13,3 +13,4 @@
*= require_tree . *= require_tree .
*= require_self *= require_self
*/ */
// Place all the styles related to the main controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
@import "bootstrap-sprockets";
@import "bootstrap";
class MainController < ApplicationController
def index
end
end
module MainHelper
end
<div>
<h1>Hello</h1>
</div>
Rails.application.routes.draw do Rails.application.routes.draw do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
root "main#index"
end end
# Be sure to restart your server when you modify this file.
# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rails secret` to generate a secure secret key.
# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.
development:
secret_key_base: a5cc185b77c05ac495df9f59af9bf9f27e7d25459abc2c9e3a571497a664ed95662259af3365ac3e2d53b2addc788c816f6a1a192190a9eb489f7c3ff27fb1be
test:
secret_key_base: 575c19547a77215866ea3a61dba976dd3a0d98d8373f2cd340550118cbe4e46ddcb62efb21535b272cd4fad5410982fbeeab8171ef5d21be69fdb0363f8c6025
# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
# 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
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# 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
# 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).
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 0) do
end
require 'test_helper'
class MainControllerTest < ActionDispatch::IntegrationTest
# 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