shakespeare 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -1
- data/Rakefile +1 -1
- data/app/controllers/admin/pages_controller.rb +3 -3
- data/app/models/page.rb +0 -5
- data/app/views/admin/pages/index.html.erb +2 -0
- data/shakespeare.gemspec +1 -1
- data/spec/debug.log +42 -0
- metadata +3 -3
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -26,11 +26,11 @@ class Admin::PagesController < ApplicationController
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def edit
|
29
|
-
@page = Page.
|
29
|
+
@page = Page.find(params[:id])
|
30
30
|
end
|
31
31
|
|
32
32
|
def update
|
33
|
-
@page = Page.
|
33
|
+
@page = Page.find(params[:id])
|
34
34
|
if @page.update_attributes(params[:page])
|
35
35
|
redirect_to admin_pages_path
|
36
36
|
else
|
@@ -39,7 +39,7 @@ class Admin::PagesController < ApplicationController
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def destroy
|
42
|
-
@page = Page.
|
42
|
+
@page = Page.find(params[:id])
|
43
43
|
@page.destroy
|
44
44
|
redirect_to admin_pages_path
|
45
45
|
end
|
data/app/models/page.rb
CHANGED
@@ -10,12 +10,14 @@
|
|
10
10
|
<table>
|
11
11
|
<tr>
|
12
12
|
<th>Title</th>
|
13
|
+
<th>URL</th>
|
13
14
|
<th> </th>
|
14
15
|
</tr>
|
15
16
|
|
16
17
|
<%- @pages.each do |page| -%>
|
17
18
|
<tr>
|
18
19
|
<td><%= page.title %> (<%= link_to "Edit", edit_admin_page_path(page) %>)</td>
|
20
|
+
<td><%= page.url %></td>
|
19
21
|
<td><%= link_to "Delete", admin_page_path(page), :method => :delete %></td>
|
20
22
|
</tr>
|
21
23
|
<%- end -%>
|
data/shakespeare.gemspec
CHANGED
data/spec/debug.log
CHANGED
@@ -2757,3 +2757,45 @@
|
|
2757
2757
|
[4;35;1mPage Update (0.1ms)[0m [0mUPDATE "pages" SET "updated_at" = '2010-06-02 09:15:47', "content" = 'I was Home Alone' WHERE "id" = 1[0m
|
2758
2758
|
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."title" = 'Mr. MacAllister''s Christmas') LIMIT 1[0m
|
2759
2759
|
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."url" = 'gutmann.ca') LIMIT 1[0m
|
2760
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
2761
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
2762
|
+
FROM sqlite_master
|
2763
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
2764
|
+
[0m
|
2765
|
+
[4;36;1mSQL (2.6ms)[0m [0;1mDROP TABLE "pages"[0m
|
2766
|
+
[4;35;1mSQL (1.5ms)[0m [0mCREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "url" varchar(255), "keywords" text, "description" text, "content" text, "created_at" datetime, "updated_at" datetime, "noindex" boolean, "nofollow" boolean, "canonical" varchar(255), "enable_canonical" boolean, "enable_keywords" boolean) [0m
|
2767
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
2768
|
+
FROM sqlite_master
|
2769
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
2770
|
+
[0m
|
2771
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
2772
|
+
[4;36;1mPage Load (0.2ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2773
|
+
[4;35;1mPage Load (0.2ms)[0m [0mSELECT * FROM "pages" [0m
|
2774
|
+
[4;36;1mPage Create (0.4ms)[0m [0;1mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES('http://hendersons.com', '2010-06-02 09:25:34', 'Harry and the Hendersons', '2010-06-02 09:25:34', '', 't', '', 't', '', 't', NULL, '80s, movie')[0m
|
2775
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" [0m
|
2776
|
+
[4;36;1mPage Load (0.2ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2777
|
+
[4;35;1mPage Create (0.4ms)[0m [0mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES('', '2010-06-02 09:25:34', 'A test', '2010-06-02 09:25:34', 'home/show', 'f', '', 'f', '', 'f', NULL, '')[0m
|
2778
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2779
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2780
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2781
|
+
[4;35;1mPage Update (0.1ms)[0m [0mUPDATE "pages" SET "updated_at" = '2010-06-02 09:25:35', "title" = 'It worked!' WHERE "id" = 1[0m
|
2782
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2783
|
+
[4;35;1mPage Create (0.4ms)[0m [0mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-06-02 09:25:35', 'Harry and the Hendersons', '2010-06-02 09:25:35', 'kundesmith.co.uk', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
2784
|
+
[4;36;1mPage Load (0.3ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2785
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" [0m
|
2786
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2787
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2788
|
+
[4;36;1mPage Update (0.1ms)[0m [0;1mUPDATE "pages" SET "keywords" = '', "updated_at" = '2010-06-02 09:25:35', "title" = 'Three Men and a Baby', "content" = '', "nofollow" = 'f', "canonical" = '', "description" = '', "noindex" = 'f', "enable_canonical" = 'f' WHERE "id" = 1[0m
|
2789
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" [0m
|
2790
|
+
[4;36;1mPage Create (0.4ms)[0m [0;1mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-06-02 09:25:35', 'The Departed', '2010-06-02 09:25:35', 'kautzergoyette.name', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
2791
|
+
[4;35;1mPage Load (0.3ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2792
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2793
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2794
|
+
[4;36;1mPage Destroy (0.1ms)[0m [0;1mDELETE FROM "pages" WHERE "id" = 1[0m
|
2795
|
+
[4;35;1mPage Load (0.1ms)[0m [0mSELECT * FROM "pages" [0m
|
2796
|
+
[4;36;1mPage Create (0.4ms)[0m [0;1mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-06-02 09:25:35', 'Mr. MacAllister''s Christmas', '2010-06-02 09:25:35', 'gutmann.ca', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
2797
|
+
[4;35;1mPage Load (0.3ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2798
|
+
[4;36;1mPage Load (0.3ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."title" = 'Mr. MacAllister''s Christmas') LIMIT 1[0m
|
2799
|
+
[4;35;1mPage Update (0.1ms)[0m [0mUPDATE "pages" SET "updated_at" = '2010-06-02 09:25:35', "content" = 'I was Home Alone' WHERE "id" = 1[0m
|
2800
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."title" = 'Mr. MacAllister''s Christmas') LIMIT 1[0m
|
2801
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."url" = 'gutmann.ca') LIMIT 1[0m
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shakespeare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 4
|
10
|
+
version: 0.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Campbell
|