Home and installation pages
parent
44d6914991
commit
35af4cf9e7
@ -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 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,10 @@
|
||||
// Place all the styles related to the home controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
|
||||
div.info {
|
||||
text-align: center;
|
||||
font-family: 'Trebuchet MS';
|
||||
font-size: 50px;
|
||||
margin-bottom: 100px;
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the static_pages controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
@ -0,0 +1,5 @@
|
||||
class HomeController < ApplicationController
|
||||
def show
|
||||
@asciicasts = Asciicast.order("created_at DESC").limit(10)
|
||||
end
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
class StaticPagesController < ApplicationController
|
||||
def show
|
||||
render params[:page]
|
||||
end
|
||||
end
|
@ -0,0 +1,2 @@
|
||||
module HomeHelper
|
||||
end
|
@ -0,0 +1,2 @@
|
||||
module StaticPagesHelper
|
||||
end
|
@ -0,0 +1,9 @@
|
||||
<div class="info">
|
||||
Some big awesome tagline and stuff.
|
||||
</div>
|
||||
|
||||
<h2>Recent asciicasts</h2>
|
||||
|
||||
<ul class="asciicasts">
|
||||
<%= render :partial => "asciicasts/preview", :collection => @asciicasts, :as => :asciicast %>
|
||||
</ul>
|
@ -0,0 +1,8 @@
|
||||
<ul id="navigation">
|
||||
<li>
|
||||
<%= link_to 'Browse', asciicasts_path %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to 'Installation', installation_path %>
|
||||
</li>
|
||||
</ul>
|
@ -0,0 +1,5 @@
|
||||
How to install
|
||||
|
||||
curl
|
||||
|
||||
gem install
|
@ -0,0 +1,12 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe HomeController do
|
||||
|
||||
describe "GET 'show'" do
|
||||
it "returns http success" do
|
||||
get 'show'
|
||||
response.should be_success
|
||||
end
|
||||
end
|
||||
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe StaticPagesController do
|
||||
|
||||
end
|
@ -0,0 +1,15 @@
|
||||
require 'spec_helper'
|
||||
|
||||
# Specs in this file have access to a helper object that includes
|
||||
# the HomeHelper. For example:
|
||||
#
|
||||
# describe HomeHelper do
|
||||
# describe "string concat" do
|
||||
# it "concats two strings with spaces" do
|
||||
# helper.concat_strings("this","that").should == "this that"
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
describe HomeHelper do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
@ -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
|
@ -0,0 +1,5 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "home/show.html.erb" do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Reference in New Issue