spree

An error occurred while installing mysql2 (0.4.8), and Bundler cannot continue

两盒软妹~` 提交于 2019-12-19 05:17:10
问题 How can I fix this error in ruby on rail. source 'https://rubygems.org' git_source(:github) do |repo_name| repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") "https://github.com/#{repo_name}.git" end # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 5.0.2' # Use sqlite3 as the database for Active Record gem 'sqlite3' # Use Puma as the app server gem 'puma', '~> 3.0' # Use SCSS for stylesheets gem 'sass-rails', '~> 5.0' # Use Uglifier as

How to Send Email in Development with Spree

家住魔仙堡 提交于 2019-12-18 07:00:39
问题 I'm in the development environment and I want to send out test emails via my console. I got the console going nice, but its not sending. I go to Spree's Mail Method Settings and here's what I got: I've double checked the password. I've Googled the hell out of it. I can't figure out how to get this thing to work. Key Question: How does one get email working in Spree from the development environment? Things I Tried : Spree Mail Method is not working? 回答1: The problem is that you need a local

Adding Routes to Rails' Spree E-Commerce

风格不统一 提交于 2019-12-17 15:56:29
问题 I just recently upgraded to 1.0.3 , and the routes.rb file in my config/routes folder seems to ignore all my custom routes. MY routes.rb JollyStore::Application.routes.draw do # Mount Spree's routes mount Spree::Core::Engine, :at => '/' root :to => 'pages#index' namespace :admin do resources :wysiwygs end match 'about_us/', :to => "pages#about_us" match 'services/', :to => "pages#services" match 'raw_resources/', :to => "pages#raw_resources" match 'contact_us/', :to => "pages#contact_us"

Spree_static_content gem not working with spree 3.3.x

旧巷老猫 提交于 2019-12-13 20:22:04
问题 Have to create static pages using the same layout of rest of the spree commerce site. Spree_static_content is the gem I tried using. However, getting following error on bundle install. Bundler could not find compatible versions for gem "spree_core": In snapshot (Gemfile.lock): spree_core (= 3.3.1) In Gemfile: spree (~> 3.3.0) was resolved to 3.3.1, which depends on spree_core (= 3.3.1) spree (~> 3.3.0) was resolved to 3.3.1, which depends on spree_core (= 3.3.1) spree (~> 3.3.0) was resolved

Spree Commerce: No Products Found

﹥>﹥吖頭↗ 提交于 2019-12-13 09:01:58
问题 my store ypill.com, which had run about three months, run into "no products found" today. I did not change any app code. I went to storefront and search some product where I added it, spree threw an error "no products found. Taxonomies are displaying, but "no products found" anywhere. ruby 2.3.0; rails 5.0.2 spree 3.2.1 回答1: I tried searching for keyword body I got the desired results. Try this url Please be specific about your issue and provide the keywords for which it's not working 来源:

Initializer for spree_social gem with facebook login integration keys

扶醉桌前 提交于 2019-12-13 07:37:55
问题 I have an app based on spree which should be integrated with Facebook. I'm doing this by spree_social gem which works fine, but i need some config file so I won't have to click through admin panel every time. I have added ne initializer: /config/initializers/devise.rb require 'omniauth-facebook' Devise.setup do |config| config.omniauth :facebook, KEY, SECRET end but this does nothing. I tried every possible tutorial and example in net, i.e. https://github.com/plataformatec/devise/wiki

Render a rails partial based on the id of an action

a 夏天 提交于 2019-12-13 06:16:41
问题 I'm building a small ecommerce site that sells a variety of mens and womens clothing. i would like to render a partial based on which taxonomy the user is in. For example, if the user is at mysite.com/t/women/pants I would like to render _women.html.erb, or, if the user is at mysite.com/t/men/shirts I would like to render _men.html.erb. I have a Taxonomy model that has_many taxons, and the Taxon model has_many products. In taxons_controller.rb I have: def show @taxon = Taxon.find_by_permalink

Rails Deface on input erb element, cannot override it correctly

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 06:01:13
问题 I am trying to override the qty input element in the products/_cart_form , to avoid a user modifying the qty Should the Deface override be performed on the erb code or the html I used the following override wo any success seems to be a mix of html selector and erb code .... messy and tricky , obviously no example like this on the Deface github readme Deface::Override.new( :virtual_path => %q{spree/products/_cart_form}, :name => %q{read_only_qty_cart_form}, :set_attributes => %q{#cart-form

how to separate frontend and admin feature in spree

一笑奈何 提交于 2019-12-13 03:40:54
问题 I’m using latest spree 3.7.0. And Rails5.2 and Ruby 2.5.0. I’d like to know how to separate frontend and admin feature. Actually, I have another admin application. So I’d like to integrate spree admin into this. After install rails new app, I entered below command. rails g spree:install Then the app automatically install whole app including frontend and admin. But if possible, I'd like to separate into two like frontend and admin. Give me advise, please. 来源: https://stackoverflow.com

Spree: intersection between taxons

百般思念 提交于 2019-12-13 03:34:34
问题 Is it possible to query for products that belongs to multiple taxons? Like a math intersection. For example: I sell books that belongs to taxon Universities > ASU, and belongs to taxon Course > Engineering I would like to be able to query for all books that belongs to the ASU Engineering path. Something like Spree::Product.in_taxon(asu_taxon).in_taxon(eng_taxon) 回答1: There's a few ways to do this. I'm going to use the spree sandbox data, so you can try the results if you're interested. First,