Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This gem is a Refinery CMS and Spree E-commerce connector.

License

NotificationsYou must be signed in to change notification settings

refinerycms-contrib/spree-refinery-authentication

 
 

Repository files navigation

Build StatusCode ClimateTest Coverage

This gem is a Refinery CMS and Spree E-commerce connector.

Key features

  • It provides tabs in Refinery CMS and Spree menus to easily switch between both backends
  • Shares admin sessions and user abilities between Refinery CMS and Spree.

Compatibility

Installation

Create a new Rails 4.2.x application:

gem install rails -v 4.2.3gem install bundler

Add Spree and those gems to your Gemfile:

gem 'refinerycms', github: 'refinery/refinerycms', branch: 'master'gem 'quiet_assets', :group => :development# Add support for searching inside Refinery's admin interface.gem 'refinerycms-acts-as-indexed', ['~> 2.0', '>= 2.0.0']# Add support for Refinery's custom fork of the visual editor WYMeditor.gem 'refinerycms-wymeditor', ['~> 1.0', '>= 1.0.6']gem 'spree', github: 'spree/spree', branch: '3-0-stable'gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'gem 'spree-refinerycms-authentication', github: 'bricesanchez/spree-refinery-authentication', branch: '3-0-stable'

Note: DON'T install the gemrefinerycms-authentication-devise. The authentication will be provided by Spree and included in the gemspree_auth_devise.

Run bundler, then install Spree

bundlerails g spree:install

Change theSpree.user_class in the initializerconfig/initializer/spree.rb

Spree.user_class = "Spree::User"

Run the migrations

rake db:migrate

Then, put those lines in config/routes.rb to use RefineryCMS and Spree together and remove routes conflicts

root :to => "refinery/pages#home"mount Spree::Core::Engine, :at => '/shop'mount Refinery::Core::Engine, at: '/'

Note: If you try to mount both enginesat => '/', Refinery will try to display a page even if you request a Spree page. Every page load will be slow.

Create a Spree admin user

bundle exec rake spree_auth:admin:create

All done! Now start your application

rails server

You should now be able to access Refinery admin athttp://localhost:3000/refinery and Spree admin athttp://localhost:3000/shop/admin.

About

This gem is a Refinery CMS and Spree E-commerce connector.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby97.9%
  • HTML2.1%

[8]ページ先頭

©2009-2025 Movatter.jp