skip to Main Content

Rails keeping params DRY – SEO

I have a model named "seo" class Seo < ApplicationRecord belongs_to :seoable, polymorphic: true # more code end Many models in my application has_one seo. For example class Post < ApplicationRecord has_one :seo, as: :seoable accepts_nested_attributes_for :seo, dependent: :destroy #…

VIEW QUESTION

Rate limit Shopify API calls in Ruby

I am using Shopify's shopify_api gem in Ruby. I am updating each products cost and price from an external source however I am hitting the API limits and receiving 429 Too Many Requests (https://help.shopify.com/en/api/reference/rest-admin-api-rate-limits). How can I edit the below…

VIEW QUESTION
Back To Top
Search