progress
@@ -6,3 +6,4 @@ spec/dummy/log/*.log
|
||||
spec/dummy/tmp/
|
||||
spec/dummy/.sass-cache
|
||||
spec/dummy/public
|
||||
*.gem
|
||||
|
||||
@@ -10,7 +10,7 @@ gem "jquery-rails"
|
||||
|
||||
gem 'couch_potato' , :git => 'git://github.com/bterkuile/couch_potato.git'
|
||||
gem 'simply_stored' , :git => 'git://github.com/bterkuile/simply_stored.git'
|
||||
gem 'devise'#, '1.4.0'
|
||||
gem 'devise'
|
||||
gem 'devise_simply_stored'
|
||||
gem 'tinymce-rails'
|
||||
gem 'haml-rails'
|
||||
|
||||
@@ -20,7 +20,17 @@ PATH
|
||||
remote: .
|
||||
specs:
|
||||
cmtool (0.0.1)
|
||||
bourbon
|
||||
coffee-script
|
||||
devise
|
||||
devise_simply_stored
|
||||
email_validator
|
||||
haml-rails
|
||||
jquery-rails
|
||||
paperclip
|
||||
rails (~> 3.2.2)
|
||||
sass-rails
|
||||
tinymce-rails
|
||||
|
||||
GEM
|
||||
remote: http://rubygems.org/
|
||||
@@ -168,7 +178,6 @@ GEM
|
||||
hike (~> 1.2)
|
||||
rack (~> 1.0)
|
||||
tilt (~> 1.1, != 1.3.0)
|
||||
sqlite3 (1.3.5)
|
||||
thor (0.14.6)
|
||||
tilt (1.3.3)
|
||||
tinymce-rails (3.4.9)
|
||||
@@ -198,5 +207,4 @@ DEPENDENCIES
|
||||
ruby-debug19
|
||||
sass-rails
|
||||
simply_stored!
|
||||
sqlite3
|
||||
tinymce-rails
|
||||
|
||||
@@ -1,3 +1,77 @@
|
||||
= Cmtool
|
||||
|
||||
This project rocks and uses MIT-LICENSE.
|
||||
This project rocks and uses MIT-LICENSE.
|
||||
== About
|
||||
Cmtool is a CMS to give you a quickstart for a website using CouchDB as database
|
||||
backend. It is in developing stage, but already used in production.
|
||||
It is designed as an engine. The thought behind is that you will have to
|
||||
create your own rails website, but get a lot of stuff for free. These things are:
|
||||
|
||||
* User management
|
||||
* Page management
|
||||
* Faq
|
||||
* News
|
||||
* Newsletter subscriptions
|
||||
* Directory manager
|
||||
* Image manager
|
||||
|
||||
== Setup
|
||||
To start using Cmtool as website CMS add it to your Gemfile. Since it
|
||||
depends on github gems and gem dependencies do not support those you
|
||||
have to explicitly add two dependencies to your Gemfile:
|
||||
gem 'couch_potato' , :git => 'git://github.com/bterkuile/couch_potato.git'
|
||||
gem 'simply_stored' , :git => 'git://github.com/bterkuile/simply_stored.git'
|
||||
gem 'cmtool'
|
||||
This will add some gems you might like anyway, here a list:
|
||||
|
||||
* bourbon
|
||||
* jquery-rails
|
||||
* tinymce-rails
|
||||
* sass-rails
|
||||
* haml-rails
|
||||
* paperclip
|
||||
* email_validator (validates :email, email: true)
|
||||
|
||||
=== User model
|
||||
The user model is important. We recommend you to create your own user model:
|
||||
class User
|
||||
include Cmtool::User
|
||||
|
||||
end
|
||||
This is enough to start using Cmtool. But probably you want to add some goodies of your own.
|
||||
Remember that this is a SimplyStored model with almost all the ActiveModel features.
|
||||
|
||||
=== Page model
|
||||
The page model allows you to control some interesting things. To create it (app/models/page.rb):
|
||||
class Page
|
||||
include Cmtool::Page
|
||||
|
||||
# Define the locales you want to use in your website
|
||||
def self.locales
|
||||
[:en]
|
||||
end
|
||||
|
||||
# Define the layouts you want to use in your website. Be sure to create them in
|
||||
# app/views/layouts/...
|
||||
def self.layouts
|
||||
[:application, :home, :contact]
|
||||
end
|
||||
end
|
||||
|
||||
=== Controlling the language of the system
|
||||
If you add a method <tt>cmtool_locale</tt> to your application controller
|
||||
Cmtool will take this value:
|
||||
class ApplicationController
|
||||
before_filter :set_locale
|
||||
|
||||
private
|
||||
|
||||
def set_locale
|
||||
# Do some magic
|
||||
I18n.locale = :en
|
||||
end
|
||||
|
||||
def cmtool_locale
|
||||
I18n.locale
|
||||
end
|
||||
end
|
||||
|
||||
|
After Width: | Height: | Size: 612 B |
|
After Width: | Height: | Size: 444 B |
|
After Width: | Height: | Size: 645 B |
|
After Width: | Height: | Size: 665 B |
|
After Width: | Height: | Size: 680 B |
|
After Width: | Height: | Size: 649 B |
|
After Width: | Height: | Size: 388 B |
|
After Width: | Height: | Size: 642 B |
|
After Width: | Height: | Size: 681 B |
|
After Width: | Height: | Size: 609 B |
|
After Width: | Height: | Size: 545 B |
|
After Width: | Height: | Size: 495 B |
|
After Width: | Height: | Size: 425 B |
|
After Width: | Height: | Size: 633 B |
|
After Width: | Height: | Size: 574 B |
|
After Width: | Height: | Size: 343 B |
|
After Width: | Height: | Size: 748 B |
|
After Width: | Height: | Size: 490 B |
|
After Width: | Height: | Size: 595 B |
|
After Width: | Height: | Size: 700 B |
|
After Width: | Height: | Size: 540 B |
|
After Width: | Height: | Size: 446 B |
|
After Width: | Height: | Size: 534 B |
|
After Width: | Height: | Size: 622 B |
|
After Width: | Height: | Size: 609 B |
|
After Width: | Height: | Size: 535 B |
|
After Width: | Height: | Size: 414 B |
|
After Width: | Height: | Size: 477 B |
|
After Width: | Height: | Size: 535 B |
|
After Width: | Height: | Size: 586 B |
|
After Width: | Height: | Size: 439 B |
|
After Width: | Height: | Size: 661 B |
|
After Width: | Height: | Size: 363 B |
|
After Width: | Height: | Size: 614 B |
|
After Width: | Height: | Size: 453 B |
|
After Width: | Height: | Size: 472 B |
|
After Width: | Height: | Size: 627 B |
|
After Width: | Height: | Size: 573 B |
|
After Width: | Height: | Size: 577 B |
|
After Width: | Height: | Size: 452 B |
|
After Width: | Height: | Size: 445 B |
|
After Width: | Height: | Size: 352 B |
|
After Width: | Height: | Size: 529 B |
|
After Width: | Height: | Size: 740 B |
|
After Width: | Height: | Size: 422 B |
|
After Width: | Height: | Size: 606 B |
|
After Width: | Height: | Size: 654 B |
|
After Width: | Height: | Size: 461 B |
|
After Width: | Height: | Size: 687 B |
|
After Width: | Height: | Size: 494 B |
|
After Width: | Height: | Size: 607 B |
|
After Width: | Height: | Size: 425 B |
|
After Width: | Height: | Size: 441 B |
|
After Width: | Height: | Size: 615 B |
|
After Width: | Height: | Size: 570 B |
|
After Width: | Height: | Size: 621 B |
|
After Width: | Height: | Size: 514 B |
|
After Width: | Height: | Size: 674 B |
|
After Width: | Height: | Size: 434 B |
|
After Width: | Height: | Size: 428 B |
|
After Width: | Height: | Size: 630 B |
|
After Width: | Height: | Size: 424 B |
|
After Width: | Height: | Size: 502 B |
|
After Width: | Height: | Size: 469 B |
|
After Width: | Height: | Size: 387 B |
|
After Width: | Height: | Size: 364 B |
|
After Width: | Height: | Size: 513 B |
|
After Width: | Height: | Size: 492 B |
|
After Width: | Height: | Size: 456 B |
|
After Width: | Height: | Size: 492 B |
|
After Width: | Height: | Size: 391 B |
|
After Width: | Height: | Size: 514 B |
|
After Width: | Height: | Size: 416 B |
|
After Width: | Height: | Size: 668 B |
|
After Width: | Height: | Size: 432 B |
|
After Width: | Height: | Size: 532 B |
|
After Width: | Height: | Size: 564 B |
|
After Width: | Height: | Size: 380 B |
|
After Width: | Height: | Size: 408 B |
|
After Width: | Height: | Size: 536 B |
|
After Width: | Height: | Size: 645 B |
|
After Width: | Height: | Size: 493 B |
|
After Width: | Height: | Size: 566 B |
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 575 B |
|
After Width: | Height: | Size: 565 B |
|
After Width: | Height: | Size: 462 B |
|
After Width: | Height: | Size: 446 B |
|
After Width: | Height: | Size: 400 B |
|
After Width: | Height: | Size: 707 B |
|
After Width: | Height: | Size: 683 B |
|
After Width: | Height: | Size: 509 B |
|
After Width: | Height: | Size: 501 B |
|
After Width: | Height: | Size: 453 B |