Related to : Add Spree to rails app with devise
|
In Spree (Rails E-commerce App) what is the preferred way to limit locales? |
Programming Languages |
 |
I only want to support German and English for a starter. As I
see it I can easily limit this in the spree core
locales.rb , or in the localization extension by simply
deleting the locale files.
But this doesn't quite seem
right. I would like to configure it form my site extension, without
basically forking spree. Can someone tell me how I can set
AVAILABLE_LOCALES from there?
|
Rails(3.2.2) Direct sign_in to the Spree(1.1.1) from non-spree controller |
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]) sign_in(user)
but that sign_in method is in the context of Spree.
How should I use sign_in. ?
|
Add Spree to rails app with devise |
Programming Languages |
 |
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
|
How can I use devise's “warden” to authenticate a rack app in the same stack as the rails app that uses devise? |
Programming Languages |
 |
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 application on the rack stack I get
nil !
I integrated dav4rack (webdav) in my rails app via
config.ru. I use devise for authentication in my rails
app.
When I try to access the "warden" from my custom
dav4rack Resource, request.env['warden'] I get nil. How can
I use warden to authenticate in my dav4rack resourc
|
Spree set up errors: Devise Github Gem 'spree_auth_devise' & Rails Server |
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_store>spree
install Would you like to install the default gateways? (yes/no)
[yes] y Would you like to install the default authentication
system? (yes/no) [yes] y Would you like to run the migrations?
(yes/no) [yes] y Would you like to load the seed data? (yes/no)
[yes] y Would you like to load the sample data? (yes/no) [yes]
y gemfile sp
|
Rails Spree app starts but then stops with an error (NameError?) |
Programming Languages |
 |
I have installed Ruby 2.0.0-p247 using rbenv (which I installed using
brew) and Rails 4.0.2. and Spree 2.1.3 and all of the installations
have been successful.But when I try to run a Rails Spree app, it stops
with the following error possibly the NameError :localhost:my_store
haansgruber$ rails
s/Users/haansgruber/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/app_rails_loader.rb:37:
warning: Insecure world writable dir /usr/local in PATH, mode
040777/Users/ha
|