Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
MixRails is a CMS based on Ruby on Rails.

This branch is even with luizvarela:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
admix
lib
mix-rails-albums
mix-rails-auth
mix-rails-core
mix-rails-message-board
mix-rails-settings
mix-rails-songs
mix-rails-videos
mix-rails-vouchers
mix-rails-wireframe
mix-rails-writer
tasks
.gitignore
Gemfile
LICENSE.txt
MIX_RAILS_VERSION
README.md
Rakefile
mix-rails.gemspec
version.rb

README.md

MixRails

Build Status Dependency Status

MixRails is a CMS based on Ruby on Rails and uses Mongoid as ORM(MongoDB).

Usage

Create a new rails project.

$ rails new myproject -T --skip-active-record --skip-bundle --dummy-path=spec/dummy

Add this line to your application's Gemfile:

gem 'mix-rails'

And then execute:

$ cd myproject
$ bundle

In your config/application.rb add require 'mix-rails/all'.

require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "sprockets/railtie"
require "rails/test_unit/railtie"

# After rails requiring mix-rails!!
require "mix-rails/all"

Configure a mongoid instance with:

$ rails generate mongoid:config

And then run the application

$ bundle exec rails server

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Assets

You can use Backbone, CoffeeScript, HAML,

Auth

Mix-Rails uses Devise for auth, you can see more docs at:

Create a default user.

$ bundle exec rake create_user[yourname@example.com,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!!

TODO: Add some docs for admix

[Admix]

Plugins (Extensions)

Creatig a extensions

$ rails plugin new mix-rails-pluginame -T --skip-active-record --skip-bundle --dummy-path=spec/dummy --full
Something went wrong with that request. Please try again.