Skip to content

ikad/awesome-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awsome-map

Rails5アプリケーションの準備

Gemfileを作る。

bundle init
# Gemfile
gem 'rails', github: 'rails/rails'

bundle installする

bundle install

Rails newを現在のディレクトリで実行する。
Gemfileを上書きする。

bundle exec rails new .

Overwrite /vagrant/awsome-map/README.md? (enter "h" for help) [Ynaqdh] n
Overwrite /vagrant/awsome-map/Gemfile? (enter "h" for help) [Ynaqdh] Y

とりあえずのコントローラ

とりあえずのコントローラを作ってルートを設定する。

rails g controller top index
# config/routes.rb
Rails.application.routes.draw do

  root 'top#index'

end

チャンネルを作る

talkチャンネルを作る

rails g channel talk

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published