diff --git a/README.md b/README.md new file mode 100644 index 0000000..6315317 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +### Solar Explorer Booking and Homepage App + +... more information coming up. \ No newline at end of file diff --git a/README.rdoc b/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/app/assets/javascripts/static_pages.js.coffee b/app/assets/javascripts/static_pages.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/static_pages.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://coffeescript.org/ diff --git a/app/assets/stylesheets/static_pages.css.less b/app/assets/stylesheets/static_pages.css.less new file mode 100644 index 0000000..4e8dde4 --- /dev/null +++ b/app/assets/stylesheets/static_pages.css.less @@ -0,0 +1,3 @@ +// Place all the styles related to the StaticPages controller here. +// They will automatically be included in application.css. +// You can use Less here: http://lesscss.org/ diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb new file mode 100644 index 0000000..1ba7b78 --- /dev/null +++ b/app/controllers/static_pages_controller.rb @@ -0,0 +1,10 @@ +class StaticPagesController < ApplicationController + def home + end + + def imprint + end + + def boat + end +end diff --git a/app/helpers/static_pages_helper.rb b/app/helpers/static_pages_helper.rb new file mode 100644 index 0000000..2d63e79 --- /dev/null +++ b/app/helpers/static_pages_helper.rb @@ -0,0 +1,2 @@ +module StaticPagesHelper +end diff --git a/app/views/static_pages/boat.html.erb b/app/views/static_pages/boat.html.erb new file mode 100644 index 0000000..513f9dc --- /dev/null +++ b/app/views/static_pages/boat.html.erb @@ -0,0 +1,2 @@ +
Find me in app/views/static_pages/boat.html.erb
diff --git a/app/views/static_pages/home.html.erb b/app/views/static_pages/home.html.erb new file mode 100644 index 0000000..af94c7f --- /dev/null +++ b/app/views/static_pages/home.html.erb @@ -0,0 +1,2 @@ +Find me in app/views/static_pages/home.html.erb
diff --git a/app/views/static_pages/imprint.html.erb b/app/views/static_pages/imprint.html.erb new file mode 100644 index 0000000..b2300d6 --- /dev/null +++ b/app/views/static_pages/imprint.html.erb @@ -0,0 +1,2 @@ +Find me in app/views/static_pages/imprint.html.erb
diff --git a/config/routes.rb b/config/routes.rb index e9394f6..c786553 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,7 @@ SolarExplorer::Application.routes.draw do + get "static_pages/home" + get "static_pages/imprint" + get "static_pages/boat" # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..ea89ed5 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,19 @@ +# encoding: UTF-8 +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 0) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + +end diff --git a/spec/controllers/static_pages_controller_spec.rb b/spec/controllers/static_pages_controller_spec.rb new file mode 100644 index 0000000..3cb4c00 --- /dev/null +++ b/spec/controllers/static_pages_controller_spec.rb @@ -0,0 +1,26 @@ +require 'spec_helper' + +describe StaticPagesController do + + describe "GET 'home'" do + it "returns http success" do + get 'home' + response.should be_success + end + end + + describe "GET 'imprint'" do + it "returns http success" do + get 'imprint' + response.should be_success + end + end + + describe "GET 'boat'" do + it "returns http success" do + get 'boat' + response.should be_success + end + end + +end diff --git a/spec/helpers/static_pages_helper_spec.rb b/spec/helpers/static_pages_helper_spec.rb new file mode 100644 index 0000000..bb67275 --- /dev/null +++ b/spec/helpers/static_pages_helper_spec.rb @@ -0,0 +1,15 @@ +require 'spec_helper' + +# Specs in this file have access to a helper object that includes +# the StaticPagesHelper. For example: +# +# describe StaticPagesHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# helper.concat_strings("this","that").should == "this that" +# end +# end +# end +describe StaticPagesHelper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/requests/static_pages_spec.rb b/spec/requests/static_pages_spec.rb new file mode 100644 index 0000000..7c64515 --- /dev/null +++ b/spec/requests/static_pages_spec.rb @@ -0,0 +1,11 @@ +require 'spec_helper' + +describe "StaticPages" do + describe "GET /static_pages" do + it "works! (now write some real specs)" do + # Run the generator again with the --webrat flag if you want to use webrat methods/matchers + get static_pages_index_path + response.status.should be(200) + end + end +end diff --git a/spec/views/static_pages/boat.html.erb_spec.rb b/spec/views/static_pages/boat.html.erb_spec.rb new file mode 100644 index 0000000..bb50793 --- /dev/null +++ b/spec/views/static_pages/boat.html.erb_spec.rb @@ -0,0 +1,5 @@ +require 'spec_helper' + +describe "static_pages/boat.html.erb" do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/views/static_pages/home.html.erb_spec.rb b/spec/views/static_pages/home.html.erb_spec.rb new file mode 100644 index 0000000..eada6cf --- /dev/null +++ b/spec/views/static_pages/home.html.erb_spec.rb @@ -0,0 +1,5 @@ +require 'spec_helper' + +describe "static_pages/home.html.erb" do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/views/static_pages/imprint.html.erb_spec.rb b/spec/views/static_pages/imprint.html.erb_spec.rb new file mode 100644 index 0000000..532dd7d --- /dev/null +++ b/spec/views/static_pages/imprint.html.erb_spec.rb @@ -0,0 +1,5 @@ +require 'spec_helper' + +describe "static_pages/imprint.html.erb" do + pending "add some examples to (or delete) #{__FILE__}" +end