quic_cms 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +39 -0
- data/app/assets/javascripts/quic_cms/admin/pages.js +2 -0
- data/app/assets/javascripts/quic_cms/application.js +9 -0
- data/app/assets/javascripts/quic_cms/pages.js +2 -0
- data/app/assets/stylesheets/quic_cms/admin/pages.css +4 -0
- data/app/assets/stylesheets/quic_cms/application.css +7 -0
- data/app/assets/stylesheets/quic_cms/pages.css +4 -0
- data/app/controllers/quic_cms/admin/pages_controller.rb +4 -0
- data/app/controllers/quic_cms/application_controller.rb +4 -0
- data/app/controllers/quic_cms/pages_controller.rb +27 -0
- data/app/helpers/quic_cms/admin/pages_helper.rb +4 -0
- data/app/helpers/quic_cms/application_helper.rb +4 -0
- data/app/helpers/quic_cms/layout_helper.rb +20 -0
- data/app/helpers/quic_cms/pages_helper.rb +4 -0
- data/app/models/ckeditor/asset.rb +4 -0
- data/app/models/ckeditor/attachment_file.rb +15 -0
- data/app/models/ckeditor/picture.rb +13 -0
- data/app/models/quic_cms/page.rb +6 -0
- data/app/views/layouts/quic_cms/application.html.erb +15 -0
- data/app/views/quic_cms/pages/show.html.erb +13 -0
- data/app/views/quic_cms/shared/_top_menu.html.erb +14 -0
- data/config/initializers/ckeditor.rb +18 -0
- data/config/routes.rb +7 -0
- data/db/migrate/20111107082317_create_ckeditor_assets.rb +26 -0
- data/db/migrate/20111107140906_create_quic_cms_pages.rb +16 -0
- data/lib/quic_cms/engine.rb +5 -0
- data/lib/quic_cms/version.rb +3 -0
- data/lib/quic_cms.rb +4 -0
- data/lib/tasks/quic_cms_tasks.rake +4 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +9 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +45 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +42 -0
- data/test/dummy/log/development.log +564 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/BA9/B00/sprockets%2F0ed496270513006281b4125980118d01 +0 -0
- data/test/dummy/tmp/cache/assets/C42/640/sprockets%2F3eb427c0f2e1910601295928901b23e4 +0 -0
- data/test/dummy/tmp/cache/assets/C7D/ED0/sprockets%2F35b0b60185df6b942ae7055766101e69 +0 -0
- data/test/dummy/tmp/cache/assets/C9F/1F0/sprockets%2F00440e6a41ba170478854cfa82a237d6 +0 -0
- data/test/dummy/tmp/cache/assets/CB4/A00/sprockets%2Fd8844fe88bfe1361eb6626574210c422 +0 -0
- data/test/dummy/tmp/cache/assets/CFC/F30/sprockets%2F271297af43b7256da1e14f6ecb00205c +0 -0
- data/test/dummy/tmp/cache/assets/D0C/F70/sprockets%2F3202dac0fed74ca922b706bf93974960 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/6A0/sprockets%2F8b03f6276ecb80541fa08335db561d9e +0 -0
- data/test/dummy/tmp/cache/assets/D1F/7A0/sprockets%2F5f487daf9fb20dbb148175f187544e85 +0 -0
- data/test/dummy/tmp/cache/assets/D26/360/sprockets%2F57993ef8782d8fcb1a5620f3c98d58a0 +0 -0
- data/test/dummy/tmp/cache/assets/D32/030/sprockets%2F4ed4c1992a22a60d40f509c3b3bfb619 +0 -0
- data/test/dummy/tmp/cache/assets/D61/FA0/sprockets%2F2bdcf50ad09cb8e93cab517870034b80 +0 -0
- data/test/dummy/tmp/cache/assets/D83/AA0/sprockets%2F83b00e66162c004b4de22a1fbac9ed0f +0 -0
- data/test/dummy/tmp/cache/assets/D8A/D60/sprockets%2F7d3204dfca6653e3f02c514e0ce3bc3c +0 -0
- data/test/dummy/tmp/cache/assets/D97/9E0/sprockets%2F4d26efdc34508e208b2a82ce7cbd27d2 +0 -0
- data/test/dummy/tmp/cache/assets/DCD/490/sprockets%2F5be3ec9cd11d885e1de8ec0a1d91734b +0 -0
- data/test/fixtures/quic_cms/pages.yml +21 -0
- data/test/functional/quic_cms/admin/pages_controller_test.rb +9 -0
- data/test/functional/quic_cms/pages_controller_test.rb +11 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/quic_cms_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- data/test/unit/helpers/quic_cms/admin/pages_helper_test.rb +6 -0
- data/test/unit/helpers/quic_cms/pages_helper_test.rb +6 -0
- data/test/unit/quic_cms/page_test.rb +9 -0
- metadata +290 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = 'd1c86b96399d8abb812cf48ddb367c664b7384e3a95defd3e808115e96e1751f12f6a1da2c93c087578fbabf331679f3a484b3308252fb05bec876609b245e22'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters :format => [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
Binary file
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended to check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(:version => 20111107140906) do
|
14
|
+
|
15
|
+
create_table "ckeditor_assets", :force => true do |t|
|
16
|
+
t.string "data_file_name", :null => false
|
17
|
+
t.string "data_content_type"
|
18
|
+
t.integer "data_file_size"
|
19
|
+
t.integer "assetable_id"
|
20
|
+
t.string "assetable_type", :limit => 30
|
21
|
+
t.string "type", :limit => 30
|
22
|
+
t.datetime "created_at"
|
23
|
+
t.datetime "updated_at"
|
24
|
+
end
|
25
|
+
|
26
|
+
add_index "ckeditor_assets", ["assetable_type", "assetable_id"], :name => "idx_ckeditor_assetable"
|
27
|
+
add_index "ckeditor_assets", ["assetable_type", "type", "assetable_id"], :name => "idx_ckeditor_assetable_type"
|
28
|
+
|
29
|
+
create_table "quic_cms_pages", :force => true do |t|
|
30
|
+
t.string "permalink"
|
31
|
+
t.text "content"
|
32
|
+
t.integer "lft"
|
33
|
+
t.integer "rgt"
|
34
|
+
t.integer "parent_id"
|
35
|
+
t.string "title"
|
36
|
+
t.integer "position"
|
37
|
+
t.boolean "show_title"
|
38
|
+
t.datetime "created_at"
|
39
|
+
t.datetime "updated_at"
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|