Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ gem 'spring', group: :development
gem 'devise'

group :development, :test do
gem 'debugger'
#gem 'debugger'
gem 'rspec-rails'
gem 'better_errors'
gem 'binding_of_caller'
end

gem "tzinfo-data"
23 changes: 11 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ GEM
tzinfo (~> 1.1)
arel (5.0.1.20140414130214)
bcrypt (3.1.9)
better_errors (1.0.1)
bcrypt (3.1.9-x86-mingw32)
better_errors (2.0.0)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
rack (>= 0.9.0)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.0.1)
Expand All @@ -45,14 +47,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.8.0)
columnize (0.8.9)
debug_inspector (0.0.2)
debugger (1.6.8)
columnize (>= 0.3.1)
debugger-linecache (~> 1.2.0)
debugger-ruby_core_source (~> 1.3.5)
debugger-linecache (1.2.0)
debugger-ruby_core_source (1.3.5)
devise (3.4.1)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
Expand Down Expand Up @@ -82,7 +77,7 @@ GEM
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.4.3)
minitest (5.4.2)
minitest (5.4.3)
multi_json (1.10.1)
orm_adapter (0.5.0)
rack (1.5.2)
Expand All @@ -106,7 +101,7 @@ GEM
rake (10.3.2)
rdoc (4.1.2)
json (~> 1.4)
responders (1.1.1)
responders (1.1.2)
railties (>= 3.2, < 4.2)
rspec-core (3.1.7)
rspec-support (~> 3.1.0)
Expand Down Expand Up @@ -144,13 +139,16 @@ GEM
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.10)
sqlite3 (1.3.10-x86-mingw32)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
turbolinks (2.5.1)
turbolinks (2.5.2)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
tzinfo-data (1.2014.10)
tzinfo (>= 1.0.0)
uglifier (2.5.3)
execjs (>= 0.3.0)
json (>= 1.8.0)
Expand All @@ -159,13 +157,13 @@ GEM

PLATFORMS
ruby
x86-mingw32

DEPENDENCIES
better_errors
binding_of_caller
bootstrap-sass
coffee-rails (~> 4.0.0)
debugger
devise
haml-rails
jbuilder (~> 2.0)
Expand All @@ -177,4 +175,5 @@ DEPENDENCIES
spring
sqlite3
turbolinks
tzinfo-data
uglifier (>= 1.3.0)
2 changes: 2 additions & 0 deletions app/controllers/index_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class IndexController < ApplicationController
end
4 changes: 2 additions & 2 deletions app/views/authors/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%h1 Listing authors

%table
%table.table.table-striped
%tr
%th Firstname
%th Surname
Expand All @@ -18,4 +18,4 @@

%br

= link_to 'New Author', new_author_path
= link_to 'New Author', new_author_path, class:'btn btn-primary'
3 changes: 3 additions & 0 deletions app/views/index/index.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
%h1 Wilkommen!
= link_to 'Theses', theses_path, class:'btn btn-primary'
= link_to 'Authors', authors_path, class:'btn btn-primary'
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# See how all your routes lay out with "rake routes".

# You can have the root of your site routed with "root"
root 'theses#index'
root 'index#index'

# Example of regular route:
# get 'products/:id' => 'catalog#view'
Expand Down