diff --git a/Gemfile b/Gemfile index 3539b41..e35222e 100755 --- a/Gemfile +++ b/Gemfile @@ -10,6 +10,10 @@ ruby '2.1.5' gem 'sqlite3' gem 'foreman' +gem 'crack', '0.3.1' + +# Pry for Rails, not in dev group in case running via prod/staging @ a training +gem 'pry-rails' group :development, :mysql do gem 'brakeman' diff --git a/Gemfile.lock b/Gemfile.lock index 5516b7c..89e5527 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -75,6 +75,7 @@ GEM coffee-script-source execjs coffee-script-source (1.8.0) + crack (0.3.1) cucumber (1.3.15) builder (>= 2.1.2) diff-lcs (>= 1.1.3) @@ -184,6 +185,8 @@ GEM coderay (~> 1.1.0) method_source (~> 0.8.1) slop (~> 3.4) + pry-rails (0.3.3) + pry (>= 0.9.10) rack (1.4.5) rack-cache (1.2) rack (>= 0.4) @@ -312,6 +315,7 @@ DEPENDENCIES bundler-audit capybara coffee-rails + crack (= 0.3.1) database_cleaner execjs foreman @@ -328,6 +332,7 @@ DEPENDENCIES poltergeist powder pry + pry-rails rack-livereload rails (= 3.2.21) rb-fsevent diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb old mode 100755 new mode 100644 index 8b351bf..cfa0921 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -22,5 +22,8 @@ class DashboardController < ApplicationController @user = current_user render :partial => "layouts/dashboard/dashboard_stats" end - + + def doc + render "../../doc/" + params[:doc] + end end diff --git a/app/views/dashboard/home.html.erb b/app/views/dashboard/home.html.erb old mode 100755 new mode 100644 index 5b0811a..cee5c39 --- a/app/views/dashboard/home.html.erb +++ b/app/views/dashboard/home.html.erb @@ -27,13 +27,15 @@ - +
Need help using this portal? Check out the Readme
+ +