Skip to content

Commit

Permalink
created Home controller for easy start to engine development
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdempsey committed Aug 5, 2012
1 parent 5ee0eb0 commit eecc28d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions spec/dummy/app/assets/javascripts/home.js
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 4 additions & 0 deletions spec/dummy/app/assets/stylesheets/home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
Place all the styles related to the matching controller here.
They will automatically be included in application.css.
*/
4 changes: 4 additions & 0 deletions spec/dummy/app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class HomeController < ApplicationController
def index
end
end
2 changes: 2 additions & 0 deletions spec/dummy/app/helpers/home_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module HomeHelper
end
3 changes: 3 additions & 0 deletions spec/dummy/app/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>Welcome to the Dummy app for documents</h1> <ul>
<li><%= link_to "View documents dashboard", documents_path %></li>
</ul>
3 changes: 2 additions & 1 deletion spec/dummy/config/routes.rb
Original file line number Diff line number Diff line change
@@ -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.