View MONGOID.md

ADE

$ ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]

$ bundle exec rails -v
Rails 5.1.4
View CLI
#############################################################################
# via: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ #
# via: https://docs.mongodb.com/manual/tutorial/transparent-huge-pages/ #
# via: https://qiita.com/SOJO/items/dc5bf9b4375eab14991b #
#############################################################################
$ vi /etc/yum.repos.d/mongodb-org-3.6.repo
[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/
View CLI
$ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
$ bundle exec rails -v
Rails 5.1.4
$ yarn -v
1.5.1
$ bundle install
View Gemfile
gem 'gretel'
View Gemfile
gem 'font-awesome-rails'
View Gemfille
gem 'json'
gem 'faye-websocket'
gem 'eventmachine'
gem 'slack-ruby-client'
View app|controllers|hoges_controller.rb
class HogesController < ApplicationController
private
def get_date_text
from = params[:from]
to = params[:to]
wave_dash_text = ' ~ '
get_converted_string_date(from) + wave_dash_text + get_converted_string_date(to)
View app|controllers|concerns|bool_castable.rb
module Concerns
module BoolCastable
extend ActiveSupport::Concern
private
def cast_to_boolean(value)
ActiveRecord::Type::Boolean.new.cast(value)
end
end
View app|assets|javascripts|application.js
:
:
//= require admin-lte/plugins/timepicker/bootstrap-timepicker.min
View app|assets|javascripts|application.js
:
:
//= require admin-lte/plugins/datepicker/bootstrap-datepicker
//= require admin-lte/plugins/datepicker/locales/bootstrap-datepicker.ja