Permalink
Browse files

created Home controller for easy start to engine development

  • Loading branch information...
1 parent 5ee0eb0 commit eecc28db38f96c8f072af027617a6af627c40ccf @jackdempsey committed Aug 5, 2012
View
2 spec/dummy/app/assets/javascripts/home.js
@@ -0,0 +1,2 @@
+// Place all the behaviors and hooks related to the matching controller here.
+// All this logic will automatically be available in application.js.
View
4 spec/dummy/app/assets/stylesheets/home.css
@@ -0,0 +1,4 @@
+/*
+ Place all the styles related to the matching controller here.
+ They will automatically be included in application.css.
+*/
View
4 spec/dummy/app/controllers/home_controller.rb
@@ -0,0 +1,4 @@
+class HomeController < ApplicationController
+ def index
+ end
+end
View
2 spec/dummy/app/helpers/home_helper.rb
@@ -0,0 +1,2 @@
+module HomeHelper
+end
View
3 spec/dummy/app/views/home/index.html.erb
@@ -0,0 +1,3 @@
+<h1>Welcome to the Dummy app for documents</h1> <ul>
+ <li><%= link_to "View documents dashboard", documents_path %></li>
+ </ul>
View
3 spec/dummy/config/routes.rb
@@ -1,4 +1,5 @@
-Rails.application.routes.draw do
+Rails.application.routes.draw do root to: 'home#index'
+
mount Documents::Engine => "/documents"
end

0 comments on commit eecc28d

Please sign in to comment.