Data has become a very important part of our lives recently and making sense of that data is equally important. There is no point in having data if you cannot track or analyze it, especially if this data has anything to do with finances. That’s why we will be building an expense and income tracker chart, with realtime features using Pusher. Our interactive dashboard will have a line chart that dis
# Productを作成する場合(商品を複数持っている場合) plan = Stripe::Plan.create({ product: 'prod_CbvTFuXWh7BPJH',# Productを作る場合はIDを指定する nickname: 'プランの名前',# 名前 amount: 1000,# 値段 currency: 'jpy',# 通貨 interval: 'month',# 月額課金 }) # Productを作成しない場合(商品を複数持っていない場合) plan = Stripe::Plan.create( # productを作らずにnameだけでPlanを作る場合のやり方 :product => { :name => ‘プランの名前’# 名前 }, :amount => 1000,# 値段 :currency => 'jpy',# 通貨 :interval => 'm
概要 ページネーションといえば、メジャーなのはkaminari, will_pagenateです。しかし、今回は新しく現れたページネーションのgem pagyを使いました。 pagyによるページネーションを個人サービスdokodeに導入した時の手順を紹介します。 環境 rails 5.2.1 ruby 2.5.1 コード https://github.com/junara/dokode/tree/v1.0.1 特に下記の場所を参照ください。 https://github.com/junara/dokode/blob/v1.0.1/config/initializers/pagy.rb https://github.com/junara/dokode/blob/v1.0.1/app/controllers/home_controller.rb https://github.com/junar
windows10環境でVagrantを用いてRailsの環境構築を行ったものの、自分の環境では一度vagrantを終了すると次にVagrantに入った時、railsコマンドを認識しなくなってしまうので備忘として再認識させる方法を残します。 環境 ・windows10 ・VagrantのboxはCentOS72 コマンド vagrant sshでCentOSのターミナルに接続後、以下のコマンドを入力 source ~/.bash_profile ※自分の場合は一度suを実行後にやってます。 最初にプロファイルの読み込みが上手く行ってないのだろうか・・・。 追記(2018/09/02) コメントでアドバイスいただきました。 どうやら~/.bash_profileにパスを通していたのが原因だった模様。 ~/.bashrcにパスを通したらsourceコマンドを実行しなくてもrailsコマンドを認
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く