Skip to content

Commit

Permalink
add bookshelf controller and index view
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristen Hazard committed Jan 21, 2012
1 parent 8038062 commit 54a9ab3
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 241 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/bookshelf.js.coffee
@@ -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/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/bookshelf.css.scss
@@ -0,0 +1,3 @@
// Place all the styles related to the bookshelf controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
4 changes: 4 additions & 0 deletions app/controllers/bookshelf_controller.rb
@@ -0,0 +1,4 @@
class BookshelfController < ApplicationController
def index
end
end
2 changes: 2 additions & 0 deletions app/helpers/bookshelf_helper.rb
@@ -0,0 +1,2 @@
module BookshelfHelper
end
1 change: 1 addition & 0 deletions app/views/bookshelf/index.html.erb
@@ -0,0 +1 @@
here is the bookshelf page David do your magic!
3 changes: 3 additions & 0 deletions config/routes.rb
@@ -1,4 +1,7 @@
Cosmicshelf::Application.routes.draw do
get "bookshelf/index"
root :to => 'bookshelf#index'

# The priority is based upon order of creation:
# first created -> highest priority.

Expand Down
241 changes: 0 additions & 241 deletions public/index.html

This file was deleted.

9 changes: 9 additions & 0 deletions test/functional/bookshelf_controller_test.rb
@@ -0,0 +1,9 @@
require 'test_helper'

class BookshelfControllerTest < ActionController::TestCase
test "should get index" do
get :index
assert_response :success
end

end
4 changes: 4 additions & 0 deletions test/unit/helpers/bookshelf_helper_test.rb
@@ -0,0 +1,4 @@
require 'test_helper'

class BookshelfHelperTest < ActionView::TestCase
end

0 comments on commit 54a9ab3

Please sign in to comment.