Add Spree to rails app with devise



I'm new at RoR but I'm loving every bit of it :)


I have a small app that uses devise for authentication and it's working fine.


Now I want to add a ecommerce part nad I decided for spree. I installed spree and during installation it asked me if I wanted to use the default authentication, I said 'no'. Then it asked me for the user model which I stated 'User'.


Now I enter my app, I login it goes to the products page on spree. That's ok, but when I try to access the admin part, I get redirected to the products page.


My doubts are:
- Should I install anyway the spree_auth_devise gem?
- Should this be a


View Replies

Related to : Add Spree to rails app with devise


Spree set up errors: Devise Github Gem 'spree_auth_devise' & Rails Server
Category : Programming Languages

I'm new to Rails & wanted to try out Spree Commerce but have run into a few issues when trying to install Spree, I've been following the the Spree installation guide .


When I try to install Spree I get the below error:


C:UsersRossDocumentseCommerceSpree est_spree_s

View Replies


Rails(3.2.2) Direct sign_in to the Spree(1.1.1) from non-spree controller
Category : Programming Languages

I have integrated Spree(1.1.1) into my existing Rails 3.2.2 Application. I have home_controller in my existing application. I want to direct login the user from action in the home controller to the spree using the sign_in method as


user = Spree::User.find(params[:user_id])
si

View Replies


How can I use devise's “warden” to authenticate a rack app in the same stack as the rails app that uses devise?
Category : Development Tools & Services

By the way, I'm using rails 3.


How can I use devise's "warden" to authenticate a rack app in the same
stack as the rails app that uses devise ?


My problem is that when I call this:


request.env['warden'] # nil :(

from the other appli


View Replies


Rails/Devise - Customize flash message (devise.en.yml) with a link_to
Category : Web Design

I would like to customize the following flash msg provided by devise
in the devise.en.yml file:


devise:
failure:
unconfirmed: 'You have to confirm your account before continuing.'

with ruby code in order to get a link to new_user_confirm


View Replies


rails devise - how to have 2 devise authentications for two different user models?
Category : Web Design

We have admin_users and we have regular users and they both have separate tables, models and devise logins.


It might make more sense to use devise against just one user table and use cancan for the roles but the application has already been created with two separate user tables and it


View Replies


Rails & Devise: Make Variable Available in Devise View
Category : Development Tools & Services

I can't seem to find this anywhere... I'm trying to add a dashboard to one of my devise screens (registrations/edit), but I need to make some variables available. How do I do this without rewriting all of the devise controller logic?


View Replies


Rails/Devise - What should I test with devise and rspec?
Category : Web Design

Many programmers use devise as their authentication solution and I would like to get their advice:


Devise is already tested, but I want to know if there is something to test by myself (integration/unit/funtionnal tests?) for a standard devise integration with my knowledge
(I'm


View Replies


how to integrate refinerycms with existing rails application using devise 1.5.3 and rails 3.2.8
Category : Programming Languages

i have rails application using rails 3.2.8,devise 1.5.3 and also using locales (en,pt).i just want to know how to integrate refinerycms with this application as devise 1.5.3 is not supported by refinerycms 2.0.8.plz tell any version of refinery compatible with devise 1.5.3 or any easy solution.<


View Replies


Spree, Rails 3, and theming
Category : Web Design

Well, I've been trying to change the default theme of spree by following this tutorial


http://blog.endpoint.com/2010/01/rails-ecommerce-spree-hooks-tutorial.html


But the homepage doesn't change at all, well since the tutorial is meant for rails 2, I'm just wondering what d


View Replies


Spree customization in rails
Category : Programming Languages

Best way to customize a spree application in rails and from where i can see the existing code of the app?


View Replies


2012 / 2017 Copyrights BigHow , All Rights Reserved .