contentment 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +17 -8
- data/lib/contentment/engine.rb +3 -3
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
=Contentment
|
2
2
|
|
3
|
-
===Contentment is a extremely basic Content Management System.
|
3
|
+
===Contentment is a extremely basic Content Management System for Ruby On Rails.
|
4
4
|
|
5
5
|
How often do your clients want to manage / edit some piddly little portion of the site you're building for them?
|
6
6
|
Every time? Yeah me too. If what you need is a way for your clients to manage the FAQ or Testimonials, contentment is for you.
|
@@ -19,18 +19,22 @@ and run
|
|
19
19
|
rails g contentment
|
20
20
|
rake db:migrate
|
21
21
|
This will create the Content model and a migration to add the contents table to your database, if it doesn't already exist.
|
22
|
-
It will also create contents_controller.rb for you with all the CRUD already done.
|
22
|
+
It will also create contents_controller.rb for you with all the CRUD already done.
|
23
23
|
rails g contentment_views
|
24
|
-
|
24
|
+
This will create the views to manage your Content.
|
25
25
|
|
26
|
-
Fire up the server and you're ready to go.
|
26
|
+
Fire up the server and you're ready to go.
|
27
27
|
|
28
28
|
==Details
|
29
29
|
title and body are pretty self explanatory, perfect for question and answer, or header and paragraph.
|
30
|
-
|
31
|
-
|
30
|
+
|
31
|
+
tipe is not type to get around rails polymorphic associations, and exists so you can
|
32
|
+
do things like Content.for_faq or Content.for_navigation.
|
33
|
+
|
32
34
|
dom_id is rarely used, but sometimes you need to manipulate Content programmatically and this is there for that.
|
35
|
+
|
33
36
|
position, because clients love ordering stuff around.
|
37
|
+
|
34
38
|
visible, because clients like to hide things from their users.
|
35
39
|
|
36
40
|
==Live Preview of Content on Edit
|
@@ -51,7 +55,7 @@ Donezo. You should now see the changes made to the title and body of your conte
|
|
51
55
|
Clients love that.
|
52
56
|
|
53
57
|
==That's It!
|
54
|
-
If
|
58
|
+
If it did anything else it wouldn't be simple anymore.
|
55
59
|
|
56
60
|
Questions, Thoughts, Comments to larrick@gmail.com
|
57
61
|
|
@@ -66,4 +70,9 @@ Also thanks to the thoughtbot team and the clearance gem, which I looked at to l
|
|
66
70
|
|
67
71
|
And also finally thanks to https://github.com/elricstorm/baby_dove which is where I copied most of this from.
|
68
72
|
|
69
|
-
http://edgeapi.rubyonrails.org/classes/Rails/Engine.html
|
73
|
+
Read More about engines - http://edgeapi.rubyonrails.org/classes/Rails/Engine.html
|
74
|
+
|
75
|
+
==TODO
|
76
|
+
* Get TinyMCE Integrated so there's no external dependancies.
|
77
|
+
* Get an example app using contentment up somewhere to show it off.
|
78
|
+
|
data/lib/contentment/engine.rb
CHANGED
@@ -11,9 +11,9 @@ module Contentment
|
|
11
11
|
# # We can add all of the public assets from our engine and make them
|
12
12
|
# # available to use. This allows us to use javascripts, images, stylesheets
|
13
13
|
# # etc.
|
14
|
-
initializer "static assets" do |app|
|
15
|
-
|
16
|
-
end
|
14
|
+
# initializer "static assets" do |app|
|
15
|
+
# app.middleware.use ::ActionDispatch::Static, "#{root}/public"
|
16
|
+
# end
|
17
17
|
|
18
18
|
end
|
19
19
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 1
|
9
|
+
version: 0.5.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bob Larrick
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-17 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|