Bastian
04/25/2022, 10:16 AMVlad Danciu
04/25/2022, 12:07 PMif ENV['RAILS_ENV'] == 'production'
in <http://config.ru|config.ru>
to configure the unicorn-worker-killer gem but the test evaluates to false for me (in console the env reads correctly). Any ideas what to do?Tyler Pulse
04/25/2022, 4:18 PMTyler Pulse
04/25/2022, 4:20 PMTyler Pulse
04/25/2022, 7:23 PMXan
04/26/2022, 4:47 PMXan
04/26/2022, 4:48 PMvictor
04/26/2022, 5:02 PMsolidus_auth_devise 2.5.4
I get an undefined local variable or method `acts_as_paranoid' for Spree:UserClass. We've had it for a while and it does not always happen. Using Solidus 3.1.0. Any clues where to look?Paulo Martins
04/26/2022, 5:07 PMTyler Pulse
04/26/2022, 5:36 PMe.preventDefault()
const token = 'MY_TOKEN'
const options = {
method: 'POST',
url: '<http://localhost:3000/api/users>',
headers: {"Authorization" : `Bearer MY_TOKEN`, 'Content-Type': 'application/json'},
data: {
user: {
email: email,
password: password,
password_confirmation: password,
ship_address_attributes: {
name: name,
address1: address1,
city: city,
zipcode: zipCode,
state_name: stateName,
country_iso: countryIso
}
}
}
Tyler Pulse
04/26/2022, 5:37 PMship_address_attributes: {
name: name,
address1: address1,
city: city,
zipcode: zipCode,
state_name: stateName,
country_iso: countryIso
}
we are all gravy.Oleksandr Pozniak
04/27/2022, 2:05 PMOleksandr Pozniak
04/28/2022, 8:37 AMgem 'solidus_api', '~> 3.1'
gem 'solidus_backend', '~> 3.1'
gem 'solidus_core', '~> 3.1'
gem 'solidus_auth_devise'
gem 'solidus_jwt', git: '<https://github.com/solidusio-contrib/solidus_jwt.git>', branch: 'master'
#TRY TO ADDD THIS GEM SOLIDUS STRIPE:
gem 'solidus_stripe', '~> 1.0'
And i got this error 😞 How i can fix that? Thanks!
Bundler could not find compatible versions for gem "solidus_core":
In snapshot (Gemfile.lock):
solidus_core (= 3.1.5)
In Gemfile:
solidus_backend (~> 3.1) was resolved to 3.1.5, which depends on
solidus_core (= 3.1.5)
solidus_stripe (~> 1.0) was resolved to 1.1.0, which depends on
solidus_core (< 3, >= 2.3)
Oleksandr Pozniak
04/28/2022, 11:15 AM<module:UserRegistrationsControllerDecorator>': uninitialized constant Spree::UserRegistrationsController
::Spree::UserRegistrationsController.prepend self
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Did you mean? Spree::UserConfirmationsController (NameError)
gem 'solidus_api', '~> 3.1'
gem 'solidus_backend', '~> 3.1'
gem 'solidus_core', '~> 3.1'
gem 'solidus_auth_devise'
gem 'solidus_jwt', git: '<https://github.com/solidusio-contrib/solidus_jwt.git>', branch: 'master'
gem 'solidus_stripe', '~> 4.3'
gem 'solidus_social'
How to fix it? 😞Sebastian
04/28/2022, 6:38 PMsolidus_stripe
gem installed that I need to make use of. It provides some JS via Sprockets but since it’s not being used anymore I can’t use it. I was wondering if there was a way to include all the JS that comes with this gem as a JS module or some other way?Kurtis
04/29/2022, 8:27 AM//= require spree/frontend/solidus_stripe
Is that the case? If so, what are my options?Oleksandr Pozniak
04/29/2022, 10:34 AMTyler Kocheff
04/29/2022, 4:34 PMArgumentError in Spree::CheckoutController#update
wrong number of arguments (given 2, expected 1)
> Extracted source (around line #28):
``` def post(path, **data)
connection.post(normalized_path(path), data)
end```
affirm-ruby (1.1.2) lib/affirm/client.rb28in `post'
affirm-ruby (1.1.2) lib/affirm/client.rb10in `public_send'
affirm-ruby (1.1.2) lib/affirm/client.rb10in `request'
affirm-ruby (1.1.2) lib/affirm/charge.rb7in `authorize'
solidus_affirm (4f8d9ee63345) lib/solidus_affirm/affirm_client.rb18in `authorize'
solidus_core (3.1.5) app/models/spree/payment_method.rb40in `authorize'if I put a binding.pry in lib/affirm/charge.rb7in `authorize' of the affirm gem, and try the respond Client.request method there, I get a faraday deprecation warning, not sure if that's the cause or unrelated. Seems like it's injecting an auth header or something?
pry(Affirm::Charge)> respond Client.request(:post, "charges", checkout_token: token)
WARNING: `Faraday::Connection#basic_auth` is deprecated; it will be removed in version 2.0.
While initializing your connection, use `#request(:basic_auth, ...)` instead.
See <https://lostisland.github.io/faraday/middleware/authentication> for more usage info.
jakemumu
04/30/2022, 3:01 AMjakemumu
04/30/2022, 3:04 AMvariant = Spree::Variant.find(params[:variant_id])
Perhaps we should add some validation here to ensure the product is currently availableOleksandr Pozniak
05/02/2022, 10:13 AMBastian
05/02/2022, 10:40 AMTyler Pulse
05/02/2022, 4:52 PMTEMITAYO ADELEKE
05/03/2022, 9:41 AMGiven Reed
05/03/2022, 8:20 PMbill_address.state_id
I've confirmed that bill_address
is a ransackable association. I can see it passing the value into the querystring, but the name doesn't seem to be structured properly for it to actually get picked up by ransack for the filtering.
I've tried:
• bill_address_state_id_eq
• addresses_bill_address_state_id_eq
• order_addresses_bill_address_state_id_eq
• bill_address_state_id_cont (and all the above variations on the beginning)
• order_bill_address_state_id_eq
• bill_address_state_id_start (inspired by the name search on the orders page, attempted all the beginning variations)
I'm sure there's something simple I'm not getting, but I just can't seem to get my head wrapped around how ransack works with associations.
Can anybody point me in a good direction?Slackbot
05/06/2022, 9:03 PMJin
05/07/2022, 1:31 AMNameError (undefined local variable or method `primary_abstract_class' for ApplicationRecord(Table doesn't exist):Class
Did you mean? primary_class?):
Manu
05/07/2022, 10:38 PMdef self.included(base)
base.class_eval do
after_save :add_to_mailinglist
end
end
All the methods in the decorator work fine when called manually, just not via the callback. Thanks!Oleksandr Pozniak
05/09/2022, 9:28 AMOleksandr Pozniak
05/09/2022, 3:01 PM