MixRails
MixRails is a CMS based on Ruby on Rails.
Usage
Create a new rails project.
$ rails new myproject --skip-bundle
Add this line to your application's Gemfile:
gem 'mix-rails'
And then execute:
$ cd myproject
$ bundle install
In your config/application.rb add require 'mix-rails/all'.
require 'rails/all'
# After rails requiring mix-rails!!
require "mix-rails/all"
And then run the application
$ bundle exec rails server
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Assets
You can use Backbone, CoffeeScript, HAML,
Auth
Mix-Rails uses Devise for auth, you can see more docs at:
ACL
Rolify + Authority
Create a default user.
$ bundle exec rake create_user[[email protected],mypassword]
If you are using admix enter /admix and you will see the login page. You can also login with page /users/sign_in
Admix
Admix is a administrative area for any system.
URL
You can change default path for admix setting Admix::namespace_path
Admix::namespace_path = "myadminpath"
# You will access http://localhost:3000/myadminpath and see Admix running!!
[]
Plugins (Extensions)
Creating a extension
$ rails plugin new mix-rails-pluginame -T --skip-bundle --dummy-path=spec/dummy --full
s