This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'json' | |
gem 'faye-websocket' | |
gem 'eventmachine' | |
gem 'slack-ruby-client' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Concerns | |
module BoolCastable | |
extend ActiveSupport::Concern | |
private | |
def cast_to_boolean(value) | |
ActiveRecord::Type::Boolean.new.cast(value) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: | |
: | |
//= require admin-lte/plugins/timepicker/bootstrap-timepicker.min |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: | |
: | |
//= require admin-lte/plugins/datepicker/bootstrap-datepicker | |
//= require admin-lte/plugins/datepicker/locales/bootstrap-datepicker.ja |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'cocoon' | |
gem 'jquery-rails' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on 'turbolinks:load', -> | |
do -> | |
$('.disabled-link').click (e) -> | |
e.preventDefault() | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'kaminari' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ the way it uses font awesome | |
= link_to '#', data: { toggle: 'modal', target: '#hoge-modal' } do | |
i.fa.fa-question-circle | |
end | |
== render partial: 'layouts/shared/modals/hoge' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby -v | |
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] | |
$ bundle exec rails -v | |
Rails 5.1.4 |