2017-06-20から1日間の記事一覧

herokuのリモート設定で「Not a git repository」エラー

herokuのリモート設定での出来事を覚書として残します。 1)Vagrantで以下のコマンド入力 git remote add heroku https://git.heroku.com/(自分のURL).git 2)すると以下のエラー発生 fatal: Not a git repository (or any parent up to mount point /home…

RailsでAPIを実装するgem「her」を試してみた

WebAPIが簡単にできるherを使ってみたので、覚書として残します。 ※APIとViewsが存在することを前提にしています ①gemfileにgemを追加し、bundle installを実行 gem 'her' ②config/initializers配下に「her.rb」を追加し、以下のようなコードを書く。 Her::A…