Permalink
Browse files

added a store controller

  • Loading branch information...
1 parent c8301a5 commit d4861311e43649d9892412033b7147ffa827b7a2 @florida committed Nov 13, 2012
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,3 @@
+// Place all the styles related to the store controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,4 @@
+class StoreController < ApplicationController
+ def index
+ end
+end
@@ -0,0 +1,2 @@
+module StoreHelper
+end
@@ -0,0 +1,2 @@
+<h1>Store#index</h1>
+<p>Find me in app/views/store/index.html.erb</p>
View
@@ -1,4 +1,6 @@
Elmorfstore::Application.routes.draw do
+ get "store/index"
+
namespace :admin do
resources :orders, :products
end
@@ -0,0 +1,9 @@
+require 'test_helper'
+
+class StoreControllerTest < ActionController::TestCase
+ test "should get index" do
+ get :index
+ assert_response :success
+ end
+
+end
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class StoreHelperTest < ActionView::TestCase
+end

0 comments on commit d486131

Please sign in to comment.