-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d099c7
commit 0c1824f
Showing
5 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ | |
|
||
# Ignore Byebug command history file. | ||
.byebug_history | ||
.DS_Store |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
class ApplicationController < ActionController::Base | ||
protect_from_forgery with: :exception | ||
|
||
def index | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<h1>Hello, World!</h1> | ||
<h3>Posted by <a href="https://github.com/bwittenbrook3">Bradley Wittenbrook</a> at July 25, 2016 @ 5:11 pm</h3> | ||
|
||
<p>Welcome to embrails, the first ever live blog for developing a Ruby on Rails backed ember.js application. Throughout the next few months we will be working on taking a vanilla rails 5.0 install to a full blown ember.js blogging platform, and you will be part of the journey.</p> | ||
|
||
<h2>Creating the rails app</h2> | ||
|
||
<pre> | ||
$ rails new embrails --database=postgresql | ||
$ cd embrails | ||
$ git init | ||
$ git remote add origin https://github.com/bwittenbrook3/embrails.git | ||
$ git add . | ||
$ git commit -m "Initial Commit" | ||
</pre> | ||
|
||
<p>Great now we have a vanilla rails 5.0 application, and have it version controlled on github! Firing up rails with rails s give us the default welcome page.</p> | ||
|
||
<%= image_tag "riding_rails.png", width: '75%', style: 'margin: 0 auto;display: block;' %> | ||
|
||
<h2>Deploying to heroku</h2> | ||
|
||
<p>Downlaod the heroku toolbelt - <a href="https://toolbelt.heroku.com/">https://toolbelt.heroku.com/</a></p> | ||
|
||
<pre> | ||
$ heroku create | ||
$ heroku apps:rename embrails | ||
</pre> | ||
|
||
<p>Awesome, now to add in this first post: <a href="#"></a>. Finally, lets deploy to heroku:</p> | ||
|
||
<pre> | ||
$ git push heroku master | ||
</pre> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
Rails.application.routes.draw do | ||
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html | ||
|
||
root 'application#index' | ||
end |