<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| {% comment %} | |
| Usage: | |
| {% include 'collection-ratings' %} | |
| {% include 'collection-ratings' collectionHandle:'some-handle' useAll:true %} | |
| {% endcomment %} | |
| {% if collectionHandle == blank %}{% assign collectionHandle=collection.handle %}{% endif %} | |
| {% if collections[collectionHandle].products.size > 0 %} | |
| <!-- | |
| Simple method for detecting an Admin in Shopify using liquid. | |
| Quick code by jason at freakdesign.com.au | |
| Related Blog post: http://freakdesign.com.au/blogs/news/34154561 | |
| --> | |
| {% capture CFH %}{{ content_for_header }}{% endcapture %}{{ CFH }} | |
| {% if CFH contains 'admin_bar_iframe' %} |
| #!/usr/bin/env ruby | |
| # | |
| # Homebrew fix 1 - osxfuse dylibs | |
| # | |
| # original solutions: https://gist.github.com/aaronzirbes/3239033 | |
| # https://gist.github.com/trinitronx/5437061 | |
| # | |
| # Fixes the following: | |
| # | |
| # > Warning: Unbrewed dylibs were found in /usr/local/lib. |
| # app/controllers/users/password_controller.rb | |
| class Users::PasswordsController < Devise::PasswordsController | |
| def resource_params | |
| params.require(:user).permit(:email, :password, :password_confirmation) | |
| end | |
| private :resource_params | |
| end |
sudo apt-get install vim tmux git curl| class ApplicationController < ActionController::Base | |
| ... | |
| #Problem: | |
| #In rails 3.0.1+ it is no longer possible to do this anymore; | |
| # rescue_from ActionController::RoutingError, :with => :render_not_found | |
| # | |
| #The ActionController::RoutingError thrown is not caught by rescue_from. | |
| #The alternative is to to set a catch-all route to catch all unmatched routes and send them to a method which renders an error | |
| #As in http://techoctave.com/c7/posts/36-rails-3-0-rescue-from-routing-error-solution |
| $(function() { | |
| /* Convenience for forms or links that return HTML from a remote ajax call. | |
| The returned markup will be inserted into the element id specified. | |
| */ | |
| $('form[data-update-target]').live('ajax:success', function(evt, data) { | |
| var target = $(this).data('update-target'); | |
| $('#' + target).html(data); | |
| }); | |
| }); |
| <script> | |
| // (c) Copyright 2016 Caroline Schnapp. All Rights Reserved. Contact: mllegeorgesand@gmail.com | |
| // See https://docs.shopify.com/themes/customization/navigation/link-product-options-in-menus | |
| var Shopify = Shopify || {}; | |
| Shopify.optionsMap = {}; | |
| Shopify.updateOptionsInSelector = function(selectorIndex) { | |