2020-06-30から1日間の記事一覧
記述追加 app\views\calendars\host.html.erb(60行目) カンマを忘れないようにして下さい。 , dayRender: function(date, cell) { <% if !@rooms.blank? %> cell.append('<span class="day-price">' + '<%= @room.price %>円' + '</span>') <% end %> } app\views\calendars\host.html.erb …
記述追加 GemFile(85行目) gem 'fullcalendar-rails', '~> 3.4.0' gem 'momentjs-rails', '~> 2.17.1' GemFile source 'https://rubygems.org' git_source(:github) do |repo_name| repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/…
コマンド rails g migration AddInstantToRooms instant:bigint 記述追加 db\migrate\20200630034849_add_instant_to_rooms.rb 3行目に「, default: 1」の記述追加 class AddInstantToRooms < ActiveRecord::Migration[5.0] def change add_column :rooms, :…
まずTwilioでアカウント登録をしてください。 www.twilio.com アカウントの登録は以下の手順でお願いします。 mrradiology.hatenablog.jp 記述追加 GemFile 81行目に「gem 'twilio-ruby', '~> 4.11.1'」の記述追加 source 'https://rubygems.org' git_source…
まずはTwilioのトップページにいきます。 www.twilio.com 右上の無料サインアップをクリックします。無料サインアップ 氏名、メール、パスワードを入力します。氏名、メール、パスワード メールが届きますのでリンクをクリックしてアカウントを有効化します…
「app\controllers」フォルダに「dashboards_controller.rb」ファイルを新規作成してください。 app\controllers\dashboards_controller.rb(新規作成したファイル) class DashboardsController < ApplicationController before_action :authenticate_user! d…