Hi, I'm trying to fix an error in Spree for a month, I can't resolve it
yet. I can't access to the admin panel with the same user two times, I can
login only in the first time with an admin user.
My intention is to use Refinery and Spree together, Refinery works
perfectly, if I add Spree.user_class = Refinery::User (with the last Spree
version) refinery everything working great but I can't see the Spree login
form, it is redirecting to the root page. I've tried with many version of
Spree but nothing is working.

Any help? Thanks a lot.

Routes

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

Initializer

Spree.user_class = "Refinery::User"
Spree::Config.set(:products_per_page => 4)
SslRequirement.module_eval do
protected
def ssl_allowed?
true
endend

Gemfile

source 'https://rubygems.org'
gem 'rails', '3.2.9'
gem 'pg'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'endgem 'jquery-rails', '~> 2.0.0'gem 'will_paginate'
gem 'execjs'gem 'therubyracer'
gem 'refinerycms', '~> 2.0.0', :branch => 'master'gem 'refinerycms-i18n', '~> 2.0.0'gem 'refinerycms-inquiries', '~> 2.0.0'gem 'refinerycms-search', '~> 2.0.0'gem 'refinerycms-page-images', '~> 2.0.0'gem 'refinerycms-settings'
gem 'spree', :git => 'git://github.com/spree/spree.git'
gem 'activemerchant', :require => 'active_merchant'

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/Nd4aB5_oqCEJ.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Search Discussions

  • Ryan Bigg at Dec 30, 2012 at 10:42 pm
    As I said on your issue on GitHub, I will be taking a look at
    Refinery+Spree integration next Monday to see if I can reproduce this
    problem you're seeing. We appreciate your patience until then.

    On Thu, Dec 27, 2012 at 11:10 PM, Pablo Di Leva Siage wrote:

    Hi, I'm trying to fix an error in Spree for a month, I can't resolve it
    yet. I can't access to the admin panel with the same user two times, I can
    login only in the first time with an admin user.
    My intention is to use Refinery and Spree together, Refinery works
    perfectly, if I add Spree.user_class = Refinery::User (with the last Spree
    version) refinery everything working great but I can't see the Spree login
    form, it is redirecting to the root page. I've tried with many version of
    Spree but nothing is working.

    Any help? Thanks a lot.

    Routes

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

    Initializer

    Spree.user_class = "Refinery::User"
    Spree::Config.set(:products_per_page => 4)
    SslRequirement.module_eval do
    protected
    def ssl_allowed?
    true
    endend

    Gemfile

    source 'https://rubygems.org'
    gem 'rails', '3.2.9'
    gem 'pg'
    group :assets do
    gem 'sass-rails', '~> 3.2.3'
    gem 'coffee-rails', '~> 3.2.1'
    gem 'uglifier', '>= 1.0.3'endgem 'jquery-rails', '~> 2.0.0'gem 'will_paginate'
    gem 'execjs'gem 'therubyracer'
    gem 'refinerycms', '~> 2.0.0', :branch => 'master'gem 'refinerycms-i18n', '~> 2.0.0'gem 'refinerycms-inquiries', '~> 2.0.0'gem 'refinerycms-search', '~> 2.0.0'gem 'refinerycms-page-images', '~> 2.0.0'gem 'refinerycms-settings'
    gem 'spree', :git => 'git://github.com/spree/spree.git'
    gem 'activemerchant', :require => 'active_merchant'

    --
    You received this message because you are subscribed to the Google Groups
    "Spree" group.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/spree-user/-/Nd4aB5_oqCEJ.
    To post to this group, send email to spree-user@googlegroups.com.
    To unsubscribe from this group, send email to
    spree-user+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/spree-user?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To post to this group, send email to spree-user@googlegroups.com.
    To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedDec 27, '12 at 12:10p
activeDec 30, '12 at 10:42p
posts2
users2
websitespreecommerce.com
irc#RubyOnRails

2 users in discussion

Ryan Bigg: 1 post Pablo Di Leva Siage: 1 post

People

Translate

site design / logo © 2022 Grokbase