bivouac 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README +18 -1
- data/bin/bivouac +10 -6
- data/lib/bivouac/commands/generate.rb +2 -0
- data/lib/bivouac/commands/plugin.rb +47 -0
- data/lib/bivouac/helpers/view/goh/html.rb +17 -0
- data/lib/bivouac/template/application/postamble.rb +26 -4
- data/lib/bivouac/template/application_goh.rb +2 -1
- data/{examples/blog_erb/script/generate → lib/bivouac/template/plugin.rb} +1 -1
- data/lib/bivouac/template/static/index.html +3 -2
- metadata +95 -172
- data/doc/rdoc/classes/BivouacHelpers/BaseView.html +0 -178
- data/doc/rdoc/classes/BivouacHelpers/FormView.html +0 -398
- data/doc/rdoc/classes/BivouacHelpers/HtmlView.html +0 -274
- data/doc/rdoc/classes/BivouacHelpers/JavaScriptView.html +0 -573
- data/doc/rdoc/classes/BivouacHelpers/ScriptAculoUsView.html +0 -258
- data/doc/rdoc/classes/BivouacHelpers/TooltipView.html +0 -158
- data/doc/rdoc/classes/BivouacHelpers.html +0 -117
- data/doc/rdoc/classes/JavaScriptGenerator.html +0 -564
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/AUTHORS.html +0 -109
- data/doc/rdoc/files/COPYING.html +0 -533
- data/doc/rdoc/files/README.html +0 -379
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/base_rb.html +0 -109
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/form_rb.html +0 -109
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/html_rb.html +0 -109
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/javascript_rb.html +0 -113
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html +0 -113
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/tooltip_rb.html +0 -109
- data/doc/rdoc/index.html +0 -10
- data/doc/rdoc/permalink.gif +0 -0
- data/doc/rdoc/rdoc-style.css +0 -106
- data/doc/rdoc/rubyfr.png +0 -0
- data/examples/blog_erb/app/blog.rb +0 -84
- data/examples/blog_erb/app/controllers/add.rb +0 -19
- data/examples/blog_erb/app/controllers/comment.rb +0 -9
- data/examples/blog_erb/app/controllers/edit.rb +0 -18
- data/examples/blog_erb/app/controllers/index.rb +0 -8
- data/examples/blog_erb/app/controllers/info.rb +0 -11
- data/examples/blog_erb/app/controllers/login.rb +0 -15
- data/examples/blog_erb/app/controllers/logout.rb +0 -8
- data/examples/blog_erb/app/controllers/view.rb +0 -9
- data/examples/blog_erb/app/models/comment.rb +0 -5
- data/examples/blog_erb/app/models/post.rb +0 -5
- data/examples/blog_erb/app/models/user.rb +0 -4
- data/examples/blog_erb/app/views/add.html +0 -18
- data/examples/blog_erb/app/views/edit.html +0 -18
- data/examples/blog_erb/app/views/index.html +0 -12
- data/examples/blog_erb/app/views/layout.html +0 -12
- data/examples/blog_erb/app/views/login.html +0 -2
- data/examples/blog_erb/app/views/logout.html +0 -2
- data/examples/blog_erb/app/views/view.html +0 -20
- data/examples/blog_erb/config/environment.rb +0 -27
- data/examples/blog_erb/db/Blog.db +0 -0
- data/examples/blog_erb/db/create.rb +0 -8
- data/examples/blog_erb/db/migrate/comment.rb +0 -15
- data/examples/blog_erb/db/migrate/post.rb +0 -15
- data/examples/blog_erb/db/migrate/user.rb +0 -15
- data/examples/blog_erb/log/Blog.log +0 -57
- data/examples/blog_erb/public/images/camping.png +0 -0
- data/examples/blog_erb/public/index.html +0 -242
- data/examples/blog_erb/public/stylesheets/style.css +0 -10
- data/examples/blog_erb/script/server +0 -5
- data/lib/bivouac/commands/server.rb +0 -9
- data/lib/bivouac/template/application/helpers_erb.rb +0 -11
- data/lib/bivouac/template/application_erb.rb +0 -77
- data/lib/bivouac/template/application_jof.rb +0 -42
- data/lib/bivouac/template/generate/scaffold_view_create_erb.rb +0 -7
- data/lib/bivouac/template/generate/scaffold_view_list_erb.rb +0 -7
- data/lib/bivouac/template/generate/scaffold_view_view_erb.rb +0 -10
- data/lib/bivouac/template/generate/view_erb.rb +0 -2
@@ -1,18 +0,0 @@
|
|
1
|
-
module Blog::Controllers
|
2
|
-
class Edit < R '/edit/(\d+)', '/edit'
|
3
|
-
def get post_id
|
4
|
-
unless @state.user_id.blank?
|
5
|
-
@user = User.find @state.user_id
|
6
|
-
end
|
7
|
-
@post = Post.find post_id
|
8
|
-
render :edit, true
|
9
|
-
end
|
10
|
-
def post
|
11
|
-
unless @state.user_id.blank?
|
12
|
-
@post = Post.find input.post_id
|
13
|
-
@post.update_attributes :title => input.post_title, :body => input.post_body
|
14
|
-
redirect View, @post
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Blog::Controllers
|
2
|
-
class Login
|
3
|
-
def post
|
4
|
-
@user = User.find :first, :conditions => ['username = ? AND password = ?', input.username, input.password]
|
5
|
-
|
6
|
-
if @user
|
7
|
-
@login = 'login success !'
|
8
|
-
@state.user_id = @user.id
|
9
|
-
else
|
10
|
-
@login = 'wrong user name or password'
|
11
|
-
end
|
12
|
-
render :login, true
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<% if @user %>
|
2
|
-
<p>You are logged in as <%= @user.username %> | <a href="/logout">Logout</a></p>
|
3
|
-
<form method="post" action="/add">
|
4
|
-
Title : <br />
|
5
|
-
<input name="post_title" type="text" value="<%= @post.title %>"><br />
|
6
|
-
Body : <br />
|
7
|
-
<textarea name="post_body"><%= @post.body %></textarea><br />
|
8
|
-
<input type="hidden" name="post_id" value="<%= @post.id %>">
|
9
|
-
<input type="submit">
|
10
|
-
<% else %>
|
11
|
-
<form action="/login" method="post">
|
12
|
-
Username : <br />
|
13
|
-
<input type="text" name="username" /><br />
|
14
|
-
Password : <br />
|
15
|
-
<input type="text" name="password" /><br />
|
16
|
-
<input type="submit" name="login" value="Login">
|
17
|
-
</form>
|
18
|
-
<% end %>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<% if @user %>
|
2
|
-
<p>You are logged in as <%= @user.username %> | <a href="/logout">Logout</a></p>
|
3
|
-
<form method="post" action="/edit">
|
4
|
-
Title : <br />
|
5
|
-
<input name="post_title" type="text" value="<%= @post.title %>"><br />
|
6
|
-
Body : <br />
|
7
|
-
<textarea name="post_body"><%= @post.body %></textarea><br />
|
8
|
-
<input type="hidden" name="post_id" value="<%= @post.id %>">
|
9
|
-
<input type="submit">
|
10
|
-
<% else %>
|
11
|
-
<form action="/login" method="post">
|
12
|
-
Username : <br />
|
13
|
-
<input type="text" name="username" /><br />
|
14
|
-
Password : <br />
|
15
|
-
<input type="text" name="password" /><br />
|
16
|
-
<input type="submit" name="login" value="Login">
|
17
|
-
</form>
|
18
|
-
<% end %>
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<% if @posts.empty? %>
|
2
|
-
<p>No posts found.</p>
|
3
|
-
<p><a href="/add">Add</a></p>
|
4
|
-
<% else %>
|
5
|
-
<% for post in @posts %>
|
6
|
-
<h1><%= post.title %></h1>
|
7
|
-
<p><%= post.body %></p>
|
8
|
-
<p>
|
9
|
-
<a href="/edit/<%= post.id %>">Edit</a> | <a href="/view/<%= post.id %>">View</a>
|
10
|
-
</p>
|
11
|
-
<% end%>
|
12
|
-
<% end %>
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
4
|
-
<title>blog</title>
|
5
|
-
<link type="text/css" rel="stylesheet" href="/public/stylesheets/style.css" media="screen"/>
|
6
|
-
</head>
|
7
|
-
<body>
|
8
|
-
<h1 class="header"><a href="/">blog</a></h1>
|
9
|
-
<div class="content">
|
10
|
-
<%= content %>
|
11
|
-
</div>
|
12
|
-
</body>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<h1><%= @post.title %></h1>
|
2
|
-
<p><%= @post.body %></p>
|
3
|
-
<p>
|
4
|
-
<a href="/edit/<%= @post.id %>">Edit</a> | <a href="/view/<%= @post.id %>">View</a>
|
5
|
-
</p>
|
6
|
-
|
7
|
-
<p>Comment for this post:</p>
|
8
|
-
|
9
|
-
<% for c in @comments %>
|
10
|
-
<h1><%= c.username %></h1>
|
11
|
-
<p><%= c.body %></p>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<form action="/comment" method="post">
|
15
|
-
Name : <input name="post_username" type="text"><br />
|
16
|
-
Comment :<br />
|
17
|
-
<textarea name="post_body"></textarea><br />
|
18
|
-
<input type="hidden" name="post_id" value="<%= @post.id %>">
|
19
|
-
<input type="submit">
|
20
|
-
</form>
|
@@ -1,27 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Project Blog
|
3
|
-
#
|
4
|
-
# Created using bivouac on Wed Aug 01 09:49:08 +0200 2007.
|
5
|
-
# Copyright (c) 2007 __My__. All rights reserved.
|
6
|
-
#
|
7
|
-
# DO NOT EDIT THIS FILE, OR YOU REALLY KNOW WHAT YOU ARE DOING !
|
8
|
-
#
|
9
|
-
|
10
|
-
require 'ostruct'
|
11
|
-
|
12
|
-
module Bivouac
|
13
|
-
class Environment
|
14
|
-
|
15
|
-
attr_reader :environment
|
16
|
-
|
17
|
-
def initialize
|
18
|
-
@environment = OpenStruct.new( )
|
19
|
-
|
20
|
-
@environment.appname = "Blog"
|
21
|
-
@environment.db = "sqlite3"
|
22
|
-
@environment.appdir = "blog"
|
23
|
-
@environment.orgtype = "erb"
|
24
|
-
@environment.postamble = "webrick"
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
Binary file
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Blog::Models
|
2
|
-
class CreateComment < V 1.0
|
3
|
-
def self.up
|
4
|
-
create_table :blog_comments do |t|
|
5
|
-
t.column :id , :integer , :null => false
|
6
|
-
t.column :post_id , :integer , :null => false
|
7
|
-
t.column :username , :string
|
8
|
-
t.column :body , :text
|
9
|
-
end
|
10
|
-
end
|
11
|
-
def self.down
|
12
|
-
drop_table :blog_comments
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Blog::Models
|
2
|
-
class CreatePost < V 1.0
|
3
|
-
def self.up
|
4
|
-
create_table :blog_posts do |t|
|
5
|
-
t.column :id , :integer , :null => false
|
6
|
-
t.column :user_id , :integer , :null => false
|
7
|
-
t.column :title , :string , :limit => 255
|
8
|
-
t.column :body , :text
|
9
|
-
end
|
10
|
-
end
|
11
|
-
def self.down
|
12
|
-
drop_table :blog_posts
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Blog::Models
|
2
|
-
class CreateUser < V 1.0
|
3
|
-
def self.up
|
4
|
-
create_table :blog_users do |t|
|
5
|
-
t.column :id , :integer , :null => false
|
6
|
-
t.column :username , :string
|
7
|
-
t.column :password , :string
|
8
|
-
end
|
9
|
-
User.create :username => 'admin', :password => 'bivouac'
|
10
|
-
end
|
11
|
-
def self.down
|
12
|
-
drop_table :blog_users
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
# Logfile created on Wed Aug 01 09:49:19 +0200 2007 by /
|
2
|
-
[4;36;1mSQL (0.000265)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
3
|
-
[4;35;1mSQL (0.000000)[0m [0mSQLite3::SQLException: no such table: sessions: DROP TABLE sessions[0m
|
4
|
-
[4;36;1mSQL (0.092496)[0m [0;1mCREATE TABLE sessions ("id" INTEGER PRIMARY KEY NOT NULL, "hashid" varchar(32) DEFAULT NULL, "created_at" datetime DEFAULT NULL, "ivars" text DEFAULT NULL) [0m
|
5
|
-
[4;35;1mSQL (0.000450)[0m [0mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
6
|
-
[4;36;1mSQL (0.000275)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
7
|
-
[4;35;1mSQL (0.133069)[0m [0mCREATE TABLE blog_schema_infos ("id" INTEGER PRIMARY KEY NOT NULL, "version" float DEFAULT NULL) [0m
|
8
|
-
[4;36;1mBlog::Models::SchemaInfo Load (0.000260)[0m [0;1mSELECT * FROM blog_schema_infos LIMIT 1[0m
|
9
|
-
[4;35;1mSQL (0.243340)[0m [0mCREATE TABLE blog_comments ("id" INTEGER PRIMARY KEY NOT NULL, "post_id" integer NOT NULL, "username" varchar(255) DEFAULT NULL, "body" text DEFAULT NULL) [0m
|
10
|
-
[4;36;1mSQL (0.068921)[0m [0;1mCREATE TABLE blog_posts ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer NOT NULL, "title" varchar(255) DEFAULT NULL, "body" text DEFAULT NULL) [0m
|
11
|
-
[4;35;1mSQL (0.067700)[0m [0mCREATE TABLE blog_users ("id" INTEGER PRIMARY KEY NOT NULL, "username" varchar(255) DEFAULT NULL, "password" varchar(255) DEFAULT NULL) [0m
|
12
|
-
[4;36;1mSQL (0.000618)[0m [0;1mINSERT INTO blog_users ("username", "password") VALUES('admin', 'bivouac')[0m
|
13
|
-
[4;35;1mSQL (0.000532)[0m [0mINSERT INTO blog_schema_infos ("version") VALUES(1.0)[0m
|
14
|
-
[4;36;1mCamping::Models::Session Load (0.000319)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
15
|
-
[4;35;1mSQL (0.000543)[0m [0mINSERT INTO sessions ("hashid", "created_at", "ivars") VALUES('TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG', '2007-08-01 09:52:28', '--- !map:HashWithIndifferentAccess {}
|
16
|
-
|
17
|
-
')[0m
|
18
|
-
[4;36;1mBlog::Models::Post Load (0.000306)[0m [0;1mSELECT * FROM blog_posts [0m
|
19
|
-
[4;35;1mCamping::Models::Session Load (0.000577)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
20
|
-
[4;36;1mCamping::Models::Session Load (0.000534)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
21
|
-
[4;35;1mBlog::Models::User Load (0.000382)[0m [0mSELECT * FROM blog_users WHERE (username = 'admin' AND password = 'bivouac') LIMIT 1[0m
|
22
|
-
[4;36;1mCamping::Models::Session Update (0.001286)[0m [0;1mUPDATE sessions SET "created_at" = '2007-08-01 09:52:28', "hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG', "ivars" = '--- !map:HashWithIndifferentAccess
|
23
|
-
Blog: !map:HashWithIndifferentAccess
|
24
|
-
user_id: 1
|
25
|
-
' WHERE "id" = 1[0m
|
26
|
-
[4;35;1mCamping::Models::Session Load (0.000677)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
27
|
-
[4;36;1mBlog::Models::User Load (0.000486)[0m [0;1mSELECT * FROM blog_users WHERE (blog_users."id" = 1) [0m
|
28
|
-
[4;35;1mCamping::Models::Session Load (0.000516)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
29
|
-
[4;36;1mSQL (0.000519)[0m [0;1mINSERT INTO blog_posts ("body", "title", "user_id") VALUES('P11', '11', 1)[0m
|
30
|
-
[4;35;1mCamping::Models::Session Load (0.000606)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
31
|
-
[4;36;1mBlog::Models::Post Load (0.000389)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
32
|
-
[4;35;1mBlog::Models::Comment Load (0.000365)[0m [0mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
33
|
-
[4;36;1mCamping::Models::Session Load (0.000516)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
34
|
-
[4;35;1mSQL (0.000521)[0m [0mINSERT INTO blog_comments ("body", "post_id", "username") VALUES('HW', 1, 'g')[0m
|
35
|
-
[4;36;1mCamping::Models::Session Load (0.000570)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
36
|
-
[4;35;1mBlog::Models::Post Load (0.000392)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
37
|
-
[4;36;1mBlog::Models::Comment Load (0.000354)[0m [0;1mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
38
|
-
[4;35;1mCamping::Models::Session Load (0.000454)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
39
|
-
[4;36;1mBlog::Models::User Load (0.000313)[0m [0;1mSELECT * FROM blog_users WHERE (blog_users."id" = 1) [0m
|
40
|
-
[4;35;1mBlog::Models::Post Load (0.000266)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
41
|
-
[4;36;1mCamping::Models::Session Load (0.000486)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
42
|
-
[4;35;1mBlog::Models::Post Load (0.000366)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
43
|
-
[4;36;1mBlog::Models::Post Update (0.001053)[0m [0;1mUPDATE blog_posts SET "title" = '112', "body" = 'P112', "user_id" = 1 WHERE "id" = 1[0m
|
44
|
-
[4;35;1mCamping::Models::Session Load (0.000554)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
45
|
-
[4;36;1mBlog::Models::Post Load (0.000433)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
46
|
-
[4;35;1mBlog::Models::Comment Load (0.000356)[0m [0mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
47
|
-
[4;36;1mCamping::Models::Session Load (0.000550)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
48
|
-
[4;35;1mBlog::Models::Post Load (0.000414)[0m [0mSELECT * FROM blog_posts [0m
|
49
|
-
[4;36;1mCamping::Models::Session Load (0.000543)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
50
|
-
[4;35;1mBlog::Models::User Load (0.000403)[0m [0mSELECT * FROM blog_users WHERE (blog_users."id" = 1) [0m
|
51
|
-
[4;36;1mCamping::Models::Session Load (0.000501)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
52
|
-
[4;35;1mSQL (0.000908)[0m [0mINSERT INTO blog_posts ("body", "title", "user_id") VALUES('33333333', '333', 1)[0m
|
53
|
-
[4;36;1mCamping::Models::Session Load (0.000511)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
54
|
-
[4;35;1mBlog::Models::Post Load (0.000356)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 2) [0m
|
55
|
-
[4;36;1mBlog::Models::Comment Load (0.000185)[0m [0;1mSELECT * FROM blog_comments WHERE (post_id = '2') [0m
|
56
|
-
[4;35;1mCamping::Models::Session Load (0.000488)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1[0m
|
57
|
-
[4;36;1mBlog::Models::Post Load (0.000427)[0m [0;1mSELECT * FROM blog_posts [0m
|
Binary file
|
@@ -1,242 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
-
<title>Bivouac: Welcome aboard</title>
|
7
|
-
<style type="text/css" media="screen">
|
8
|
-
body {
|
9
|
-
margin: 0;
|
10
|
-
margin-bottom: 25px;
|
11
|
-
padding: 0;
|
12
|
-
background-color: #f0f0f0;
|
13
|
-
font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
|
14
|
-
font-size: 13px;
|
15
|
-
color: #333;
|
16
|
-
}
|
17
|
-
|
18
|
-
h1 {
|
19
|
-
font-size: 28px;
|
20
|
-
color: #000;
|
21
|
-
}
|
22
|
-
|
23
|
-
a {color: #03c}
|
24
|
-
a:hover {
|
25
|
-
background-color: #03c;
|
26
|
-
color: white;
|
27
|
-
text-decoration: none;
|
28
|
-
}
|
29
|
-
|
30
|
-
|
31
|
-
#page {
|
32
|
-
background-color: #f0f0f0;
|
33
|
-
width: 750px;
|
34
|
-
margin: 0;
|
35
|
-
margin-left: auto;
|
36
|
-
margin-right: auto;
|
37
|
-
}
|
38
|
-
|
39
|
-
#content {
|
40
|
-
float: left;
|
41
|
-
background-color: white;
|
42
|
-
border: 3px solid #aaa;
|
43
|
-
border-top: none;
|
44
|
-
padding: 25px;
|
45
|
-
width: 500px;
|
46
|
-
}
|
47
|
-
|
48
|
-
#sidebar {
|
49
|
-
float: right;
|
50
|
-
width: 175px;
|
51
|
-
}
|
52
|
-
|
53
|
-
#footer {
|
54
|
-
clear: both;
|
55
|
-
}
|
56
|
-
|
57
|
-
|
58
|
-
#header, #about, #getting-started {
|
59
|
-
padding-left: 75px;
|
60
|
-
padding-right: 30px;
|
61
|
-
}
|
62
|
-
|
63
|
-
|
64
|
-
#header {
|
65
|
-
background-image: url("images/camping.png");
|
66
|
-
background-repeat: no-repeat;
|
67
|
-
background-position: top right;
|
68
|
-
height: 100px;
|
69
|
-
}
|
70
|
-
#header h1, #header h2 {margin: 0}
|
71
|
-
#header h2 {
|
72
|
-
color: #888;
|
73
|
-
font-weight: normal;
|
74
|
-
font-size: 16px;
|
75
|
-
}
|
76
|
-
|
77
|
-
|
78
|
-
#about h3 {
|
79
|
-
margin: 0;
|
80
|
-
margin-bottom: 10px;
|
81
|
-
font-size: 14px;
|
82
|
-
}
|
83
|
-
|
84
|
-
#about-content {
|
85
|
-
background-color: #ffd;
|
86
|
-
border: 1px solid #fc0;
|
87
|
-
margin-left: -11px;
|
88
|
-
}
|
89
|
-
#about-content table {
|
90
|
-
margin-top: 10px;
|
91
|
-
margin-bottom: 10px;
|
92
|
-
font-size: 11px;
|
93
|
-
border-collapse: collapse;
|
94
|
-
}
|
95
|
-
#about-content td {
|
96
|
-
padding: 10px;
|
97
|
-
padding-top: 3px;
|
98
|
-
padding-bottom: 3px;
|
99
|
-
}
|
100
|
-
#about-content td.name {color: #555}
|
101
|
-
#about-content td.value {color: #000}
|
102
|
-
|
103
|
-
#about-content.failure {
|
104
|
-
background-color: #fcc;
|
105
|
-
border: 1px solid #f00;
|
106
|
-
}
|
107
|
-
#about-content.failure p {
|
108
|
-
margin: 0;
|
109
|
-
padding: 10px;
|
110
|
-
}
|
111
|
-
|
112
|
-
|
113
|
-
#getting-started {
|
114
|
-
border-top: 1px solid #ccc;
|
115
|
-
margin-top: 25px;
|
116
|
-
padding-top: 15px;
|
117
|
-
}
|
118
|
-
#getting-started h1 {
|
119
|
-
margin: 0;
|
120
|
-
font-size: 20px;
|
121
|
-
}
|
122
|
-
#getting-started h2 {
|
123
|
-
margin: 0;
|
124
|
-
font-size: 14px;
|
125
|
-
font-weight: normal;
|
126
|
-
color: #333;
|
127
|
-
margin-bottom: 25px;
|
128
|
-
}
|
129
|
-
#getting-started ol {
|
130
|
-
margin-left: 0;
|
131
|
-
padding-left: 0;
|
132
|
-
}
|
133
|
-
#getting-started li {
|
134
|
-
font-size: 18px;
|
135
|
-
color: #888;
|
136
|
-
margin-bottom: 25px;
|
137
|
-
}
|
138
|
-
#getting-started li h2 {
|
139
|
-
margin: 0;
|
140
|
-
font-weight: normal;
|
141
|
-
font-size: 18px;
|
142
|
-
color: #333;
|
143
|
-
}
|
144
|
-
#getting-started li p {
|
145
|
-
color: #555;
|
146
|
-
font-size: 13px;
|
147
|
-
}
|
148
|
-
|
149
|
-
|
150
|
-
#search {
|
151
|
-
margin: 0;
|
152
|
-
padding-top: 10px;
|
153
|
-
padding-bottom: 10px;
|
154
|
-
font-size: 11px;
|
155
|
-
}
|
156
|
-
#search input {
|
157
|
-
font-size: 11px;
|
158
|
-
margin: 2px;
|
159
|
-
}
|
160
|
-
#search-text {width: 170px}
|
161
|
-
|
162
|
-
|
163
|
-
#sidebar ul {
|
164
|
-
margin-left: 0;
|
165
|
-
padding-left: 0;
|
166
|
-
}
|
167
|
-
#sidebar ul h3 {
|
168
|
-
margin-top: 25px;
|
169
|
-
font-size: 16px;
|
170
|
-
padding-bottom: 10px;
|
171
|
-
border-bottom: 1px solid #ccc;
|
172
|
-
}
|
173
|
-
#sidebar li {
|
174
|
-
list-style-type: none;
|
175
|
-
}
|
176
|
-
#sidebar ul.links li {
|
177
|
-
margin-bottom: 5px;
|
178
|
-
}
|
179
|
-
|
180
|
-
</style>
|
181
|
-
</head>
|
182
|
-
<body>
|
183
|
-
<div id="page">
|
184
|
-
<div id="sidebar">
|
185
|
-
<ul id="sidebar-items">
|
186
|
-
<li>
|
187
|
-
<form id="search" action="http://www.google.com/search" method="get">
|
188
|
-
<input type="hidden" name="hl" value="en" />
|
189
|
-
<input type="text" id="search-text" name="q" value="site:code.whytheluckystiff.net/camping " />
|
190
|
-
<input type="submit" value="Search" /> the Camping site
|
191
|
-
</form>
|
192
|
-
</li>
|
193
|
-
|
194
|
-
<li>
|
195
|
-
<h3>Join the community</h3>
|
196
|
-
<ul class="links">
|
197
|
-
<li><a href="http://redhanded.hobix.com/bits/campingAMicroframework.html">Camping</a></li>
|
198
|
-
<li><a href="http://code.whytheluckystiff.net/camping">Wiki</a></li>
|
199
|
-
<li><a href="http://code.whytheluckystiff.net/camping/browser/">Code</a></li>
|
200
|
-
<li><a href="http://code.whytheluckystiff.net/camping/report/1">Bug tracker</a></li>
|
201
|
-
</ul>
|
202
|
-
</li>
|
203
|
-
|
204
|
-
<li>
|
205
|
-
<h3>Browse the documentation</h3>
|
206
|
-
<ul class="links">
|
207
|
-
<li><a href="http://camping.rubyforge.org/files/README.html">Camping API</a></li>
|
208
|
-
<li><a href="http://stdlib.rubyonrails.org/">Ruby standard library</a></li>
|
209
|
-
<li><a href="http://corelib.rubyonrails.org/">Ruby core</a></li>
|
210
|
-
</ul>
|
211
|
-
</li>
|
212
|
-
</ul>
|
213
|
-
</div>
|
214
|
-
|
215
|
-
<div id="content">
|
216
|
-
<div id="header">
|
217
|
-
<h1>Welcome aboard</h1>
|
218
|
-
<h2>You can now go in the tent!</h2>
|
219
|
-
</div>
|
220
|
-
|
221
|
-
<div id="getting-started">
|
222
|
-
<h1>Getting started</h1>
|
223
|
-
<h2>Here’s how to get rolling:</h2>
|
224
|
-
|
225
|
-
<ol>
|
226
|
-
<li>
|
227
|
-
<h2>Use <tt>script/generate</tt> to create your models and controllers</h2>
|
228
|
-
<p>To see all available options, run it without parameters.</p>
|
229
|
-
</li>
|
230
|
-
|
231
|
-
<li>
|
232
|
-
<h2>That's all folks...</h2>
|
233
|
-
<p>...time for barbecue!</p>
|
234
|
-
</li>
|
235
|
-
</ol>
|
236
|
-
</div>
|
237
|
-
</div>
|
238
|
-
|
239
|
-
<div id="footer"> </div>
|
240
|
-
</div>
|
241
|
-
</body>
|
242
|
-
</html>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Project <%= @appname %>
|
3
|
-
#
|
4
|
-
# Created using bivouac on <%= Time.now %>.
|
5
|
-
# Copyright (c) <%= Time.now.year %> __My__. All rights reserved.
|
6
|
-
#
|
7
|
-
# DO NOT EDIT THIS FILE OR YOU REALLY KNOW WHAT YOU ARE DOING
|
8
|
-
# USE script/generate helper my_helper
|
9
|
-
#
|
10
|
-
|
11
|
-
# TODO
|