The colon in Ruby is quite confusing

The position of the colon in Ruby code confused me for a few days. 1. Before a text (:foo) 1 :hello In route definition 1 redirect_to :action => "edit", :id => params[:id] redirect_to method In the view 1 <%= link_to "Delete", article, confirm: "Are you sure?", method: :delete %> The method: :delete is quite confusing. It’s actually {method: :delete} :delete is not change in the application.

How to fix sassc-2.2.1 Gem installtion

When I tried to run bundle then I got this issue. The message is clear that make: g++: Command not found. 1 2 3 4 5 6 7 8 9 10 11 current directory: /home/mypc/.rvm/gems/ruby-2.6.3/gems/sassc-2.2.1/ext make "DESTDIR=" compiling ./libsass/src/cssize.cpp make: g++: Command not found Makefile:235: recipe for target 'cssize.o' failed make: *** [cssize.o] Error 127 make failed, exit code 2 Gem files will remain installed in /home/mypc/.rvm/gems/ruby-2.6.3/gems/sassc-2.2.1 for inspection. Results logged to /home/mypc/.

How to fix samesite cookie for Shopify App

Notice: My apps using PHP backend. 0. What is cookie? 1. What is samesite cookie and how to see it? The docs of Google is quite long [](SameSite cookies explained) I prefer the video first, then back to read the docs of Google [](SameSite Cookies - Chrome Update) [](HTTP Cookie SameSite Attribute) This article helps us spot the issue faster: 2. Shopify supports embedded app so this causes the samesite cookie issue Embedded apps and the SameSite attribute Since embedded Shopify apps run in an iframe on a different domain than the Shopify admin, they are considered to be in a third-party context.