Skip to content

Commit

Permalink
Add in first post
Browse files Browse the repository at this point in the history
  • Loading branch information
bwittenbrook3 committed Jul 25, 2016
1 parent 9d099c7 commit 0c1824f
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@

# Ignore Byebug command history file.
.byebug_history
.DS_Store
Binary file added app/assets/images/riding_rails.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/controllers/application_controller.rb
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
34 changes: 34 additions & 0 deletions app/views/application/index.html.erb
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>
2 changes: 2 additions & 0 deletions config/routes.rb
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

0 comments on commit 0c1824f

Please sign in to comment.