How to solve the [GET] Routing error "/ login" when creating the Shopify application with the help of ruby ​​on rails?

I receive a routing error stating "No route matches (GET)" / login "", as well as in Ruby libraries. When running on a server, it displays a page not found and the logs for this error are a road error and a log display (GET) error.

I have my index file at the following path

views/home/index.html.erb

My code in config / routes.rb is:

Rails.application.routes.draw do
root 'home#index' 
get 'show' => 'welcomes#show'
resources :home

Logging error:

    2019-09-16T04:29:47.627757+00:00 app(web.1): I, (2019-09-16T04:29:47.624535 #4)  INFO -- : (9729e2c4-5417-4966-8332-2e9010d33d14) Started GET "/login?shop=dynamictask.myshopify.com" for 103.74.223.20 at 2019-09-16 04:29:47 +0000
2019-09-16T04:29:47.627784+00:00 app(web.1): F, (2019-09-16T04:29:47.626650 #4) FATAL -- : (9729e2c4-5417-4966-8332-2e9010d33d14)
2019-09-16T04:29:47.627786+00:00 app(web.1): F, (2019-09-16T04:29:47.626708 #4) FATAL -- : (9729e2c4-5417-4966-8332-2e9010d33d14) ActionController::RoutingError (No route matches (GET) "/login"):
2019-09-16T04:29:47.627788+00:00 app(web.1): F, (2019-09-16T04:29:47.626741 #4) FATAL -- : (9729e2c4-5417-4966-8332-2e9010d33d14)
2019-09-16T04:29:47.627790+00:00 app(web.1): F, (2019-09-16T04:29:47.626786 #4) FATAL -- : (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
2019-09-16T04:29:47.627792+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
2019-09-16T04:29:47.627794+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/railties-5.1.7/lib/rails/rack/logger.rb:36:in `call_app'
2019-09-16T04:29:47.627796+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/railties-5.1.7/lib/rails/rack/logger.rb:24:in `block in call'
2019-09-16T04:29:47.627797+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.7/lib/active_support/tagged_logging.rb:69:in `block in tagged'
2019-09-16T04:29:47.627799+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.7/lib/active_support/tagged_logging.rb:26:in `tagged'
2019-09-16T04:29:47.627800+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.7/lib/active_support/tagged_logging.rb:69:in `tagged'
2019-09-16T04:29:47.627802+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/railties-5.1.7/lib/rails/rack/logger.rb:24:in `call'
2019-09-16T04:29:47.627803+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
2019-09-16T04:29:47.627805+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/request_id.rb:25:in `call'
2019-09-16T04:29:47.627806+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/rack-2.0.7/lib/rack/method_override.rb:22:in `call'
2019-09-16T04:29:47.627807+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/rack-2.0.7/lib/rack/runtime.rb:22:in `call'
2019-09-16T04:29:47.627812+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.7/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
2019-09-16T04:29:47.627813+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/executor.rb:12:in `call'
2019-09-16T04:29:47.627815+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/static.rb:125:in `call'
2019-09-16T04:29:47.627816+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'
2019-09-16T04:29:47.627817+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/railties-5.1.7/lib/rails/engine.rb:522:in `call'
2019-09-16T04:29:47.627819+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/puma-3.12.1/lib/puma/configuration.rb:227:in `call'
2019-09-16T04:29:47.627820+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/puma-3.12.1/lib/puma/server.rb:660:in `handle_request'
2019-09-16T04:29:47.627822+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/puma-3.12.1/lib/puma/server.rb:474:in `process_client'
2019-09-16T04:29:47.627823+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/puma-3.12.1/lib/puma/server.rb:334:in `block in run'
2019-09-16T04:29:47.627825+00:00 app(web.1): (9729e2c4-5417-4966-8332-2e9010d33d14) vendor/bundle/ruby/2.5.0/gems/puma-3.12.1/lib/puma/thread_pool.rb:135:in `block in spawn_thread'
2019-09-16T04:29:48.389553+00:00 heroku(router): at=info method=GET path="/favicon.ico" host=obscure-ridge-95470.herokuapp.com request_id=e4cb3df9-ced9-4ae5-9461-75041afebd6f fwd="103.74.223.20" dyno=web.1 connect=1ms service=2ms status=200 bytes=143 protocol=https
2019-09-16T05:05:28.144787+00:00 heroku(web.1): Idling
2019-09-16T05:05:28.159013+00:00 heroku(web.1): State changed from up to down
2019-09-16T05:05:29.376624+00:00 app(web.1): - Gracefully stopping, waiting for requests to finish
2019-09-16T05:05:29.384875+00:00 app(web.1): === puma shutdown: 2019-09-16 05:05:29 +0000 ===
2019-09-16T05:05:29.384915+00:00 app(web.1): - Goodbye!
2019-09-16T05:05:29.385066+00:00 app(web.1): Exiting
2019-09-16T05:05:29.348475+00:00 heroku(web.1): Stopping all processes with SIGTERM
2019-09-16T05:05:29.464600+00:00 heroku(web.1): Process exited with status 143

react – Help in creating a component MENU [reactjs]

Hello
It may seem that I may be trying to reinvent the wheel, with a number of components available. But I challenged myself to create my own menu. Just to learn. Perhaps this reason justifies wasting time on "reinventing the wheel".
I thank those who can help me.
Let's move on to the problem:

Menu configuration file:

export default {
items: (
    {
        name: 'Home 1',
        url: '/',
    },
    {
        name: 'Pré-inspeção',
        url: '/pre-inspecao/',
        children:(
            {
                name: `Planejamento`,
                url: '/planejamento/',
                children:(
                    {
                        name: 'Nova Inspeção',
                        url: '/pre-inspecao/nova',
                    },
                    {
                        name: 'Inspeções',
                        url: '/pre-inspecao/lista',
                    },
                )
            },
            {
                name: 'Equipe',
                url: '/equipe/',
                children:(
                    {
                        name: 'Inspeções',
                        url: '/equipe/inspecao/lista',
                    }
                )
            }
        )
    },
)

}

Material Management File and Menu Assembly (Evaluation Version)

import React from 'react'

import navConfig from ../../ Route / navConfig.jsx & # 39;

default export function SideBarMenu ()
{

//console.log(navConfig);

const {items} = navConfig;

const menu = '';

var strAux = ''

function criaMenu(items)
{

        items.map(function(item, i)
            {
                strAux += "
    " adicionaItemMenu(item); strAux += "
" } ) return strAux; } function adicionaItemMenu(item) { // console.log('adiciona') // console.log(item) // console.log('fim - adiciona') if(item.children && item.children.length > 0) { // console.log('---') // console.log(item.children) strAux += "
  • " + item.name + "
  • " item.children.map(function(itemAux,i) { strAux += "
  • " criaMenu((itemAux)) strAux += "
  • " } ) //criaMenu((item)) } else{ strAux += "
  • " + item.name + "
  • " } } return( criaMenu(items) )

    }

    This trial version works. She returns a chain with all the uls e liare positioned correctly. but i would really like it to return html and other items. I have therefore tried to rewrite it to achieve the goal, and it is in this second version that I have problems, I do not know how difficult it is to Be beginner, to try an incorrect concept, or even for the two previous reasons. kkkkk
    Follows the code:

    import React from 'react'
    

    import navConfig from ../../ Route / navConfig.jsx & # 39;

    default export function SideBarMenu ()
    {

    //console.log(navConfig);
    
    const {items} = navConfig;
    
    const menu = '';
    
    var strAux = ''
    
    function criaMenu(items)
    {
        return(
            items.map(function(item, i)
                {
                    
      { adicionaItemMenu(item) }
    } ) ) } function adicionaItemMenu(item) { // console.log('adiciona') // console.log(item) // console.log('fim - adiciona') if(item.children && item.children.length > 0) { // console.log('---') // console.log(item.children) return(
  • {item.name}
  • { item.children.map(function(itemAux,i) {
  • { criaMenu((itemAux)) }
  • } ) }
    ) } else{ return(
  • {item.name}
  • ) } } return(
    { criaMenu(items) }
    )

    }

    Therefore, I receive this error msg:

    ** Failed to compile

    ./src/Components/SideBarMenu/index.jsx

    Line 21: Waiting for an assignment or function call and seeing a non-expressions-unused expression instead

    Line 47: Waiting for an assignment or function call and instead see a non-expressions-not used expression

    Search for keywords to learn more about each error. **

    Again, I thank everyone who is trying to help.
    See you soon!

    How to prevent users from creating feeds on a SharePoint site

    I have a particular SharePoint site that I want to prevent users from accessing via Microsoft Flow or PowerApps.
    I only want the SharePoint or Microsoft Flow designer workflows created by the site administrator to be the only functional workflows for the site.

    Regular users have contribution permissions on the site. They have already been prevented from creating SharePoint designer workflows, but I do not know how to prevent them from creating a Microsoft feed.

    Help kindly.

    java – Creating a new instance of an element only if two objects have different signatures

    When adding to a list of products, I need to create a new instance of a type A product only if the incoming entry contains at least one variable with a value different from the one already in the list. If same signature, increment count. Else, store as new instance
    for example CarType aCar1={"color":"Red"
    } CarType anotherCar={"color":"Green"} /*Should result in creation of new Car()*/
    but CarType aCar3={"color":"Red"} /*Should result in incrementing the count of aCar1 */ The code could be in Java, Php or Javascript

    IOS 13 Voice Control Accessibility Feature – is there a way to create more custom actions (instead of just creating a link to accessibility tags)?

    The new voice control API is really great, it's the one where you can talk to your iOS device and perform actions. (Apple video)

    My only complaint is that finding information about this is a bit difficult. I do not see any WWDC video on it, and I can not find any other documentation.

    It is essentially powered by accessibilityLabels. Since each accessibilityElement element can only have one accessLabel, it is (after what I can see) limited to that.

    Is it correct? Is there a way to provide users with more custom actions? For example, there is the Custom Accessibility Action API which allows you to add others by sliding up / down with VoiceOver, but these In no case do they seem to be available for Voice Control, it is simply the accessibility label.

    It's a really great API, but with custom actions and VoiceOver rotor actions, I can normally provide actions more easily accessible to users, and I can not understand how to do that for a user who uses the control voice.

    Creating a Function – Mathematica Stack Exchange

    I'm trying to create two functions but I have problems. The first is to convert the degrees farenheit into Kelving using this formula (F-32) * (5/9) + 273 and another calculates the rate of cricket singing (in s -1) using the law of Dolbear which is Tf = 40 + N15 where Tf is the temperature in degrees Farenheit and N15 is the rate of whistles per minute.

    I was able to operate the temperature.

    f (F_) = (F-32) * (5/9) + 273

    I just have problems with the second function.

    thank you,
    The

    bitcoin core – Creating a P2SH address is not the same as an address registered on an rpc node

    I have a private key and I try to create a P2SH address on testnet as my node was created, but they are not identical. Please help me a little, thank you very much.

    Private key: c5964e19634e473e9c8fed3b149c4d44b6d62d62724035aad3eb911a1495ae27

    P2SH address from 1 threshold and 1 public key:
    2N4GriyLchUgwwCBonzYHgsCHNhYRHW45w7

    P2WPKH address: 2NGA8uGdnaQ21phNpVyV5uye5cbUtudxBWh || tb1qld2fzw9gj30wxjamsz73fug62das7cyq0em4mn

    Node address: 2N8qKVKuR3QAy2cA5fF2QbuCpBGfGCmbUHx

    Here are more details of getaddressinfo:

    {
        "result": {
            "address": "2N8qKVKuR3QAy2cA5fF2QbuCpBGfGCmbUHx",
            "scriptPubKey": "a914aafc9f09b99cbb1ba46001ec4868ba4fb32543ca87",
            "ismine": true,
            "solvable": true,
            "desc": "sh(wpkh((a1696bdc/0'/0'/375509')02a7065a210c28d27a591e55ac6be092111349fc4b23927bb4d13c46a683bcfff7))#hrgzj3gs",
            "iswatchonly": false,
            "isscript": true,
            "iswitness": false,
            "script": "witness_v0_keyhash",
            "hex": "00146da71bc5de0c0b59bbf73520df7e7d4048d02594",
            "pubkey": "02a7065a210c28d27a591e55ac6be092111349fc4b23927bb4d13c46a683bcfff7",
            "embedded": {
                "isscript": false,
                "iswitness": true,
                "witness_version": 0,
                "witness_program": "6da71bc5de0c0b59bbf73520df7e7d4048d02594",
                "pubkey": "02a7065a210c28d27a591e55ac6be092111349fc4b23927bb4d13c46a683bcfff7",
                "address": "tb1qdkn3h3w7ps94nwlhx5sd7lnagpydqfv5pyqurf",
                "scriptPubKey": "00146da71bc5de0c0b59bbf73520df7e7d4048d02594"
            },
            "label": "test",
            "ischange": false,
            "timestamp": 1561438016,
            "hdkeypath": "m/0'/0'/375509'",
            "hdseedid": "e2e9dd17501f967b789c28c4be1dbf64897ad8d2",
            "hdmasterfingerprint": "a1696bdc",
            "labels": (
                {
                    "name": "test",
                    "purpose": "receive"
                }
            )
        },
        "error": null,
        "id": 1
    }
    

    sqlite – SQLite3 creating a view profit that combines rows twice with a column

    Given a table

    symbol|action|quantity|price
    foo|buy|1|10.00
    foo|sell|1|10.50
    bar|buy|1|50.00
    bar|sell|1|50.50
    

    I'm trying to create a view showing the benefits per symbol

    I've tried several variants of below with several commands, but without getting the expected result.

    create view if not exists profit_view as select symbol,sum(price * quanity) as profit from trans group by symbol;
    

    What I would like is a view that shows or something similar

    symbol|profit|percent
    foo|.50|5
    

    javascript – Creating a grid for collision detection in an enveloping game

    I make a 2D game that ends (when you move away from the right edge, you appear on the left, etc.). The playing area is square, all objects are circles (with AABB smaller than the playing area and, in most cases, much smaller).

    I divide the game area into a grid to perform collision checks. I must determine in which cell (s) an AABB of an object lives.

    At the present time, I have this tricky code to deal with cases where the object exceeds the left / right limit … I have the impression that it must exist a better way to write it.

    gridX is the x dimension of the grid

    x1 is the x coordinate of the cell in which the left boundary of the object lives (before taking into account the envelope)

    x2 "" right limit

    if (x1 < 0) {
      for (let j = x1 + gridX; j < gridX; j++) someFunction(j)
      for (let j = 0; j < x2; j++) someFunction(j)
    } else if (x2 >= gridX) {
      for (let j = x1; j < gridX; j++) someFunction(j)
      for (let j = 0; j < x2 - gridX; j++) someFunction(j)
    } else {
      for (let j = x1; j <= x2; j++) someFunction(j)
    }
    

    someFunction would then contain the y Coord version of the above and add to the grid.

    Do not forget that I do not want to lose performance (because it will run several times a second).

    I want to write someFunction Instead of declaring a function, I hope there is a better way to do it, especially if I wanted my game to be 3 dimensional in the future. It would be 25 pasta.

    views – Creating a second page to fill publications with a tag

    I think the title is perhaps a little confusing. Basically, I want to create a page that will work similarly to the homepage, but will only populate the posts containing a specific tag.

    I've already tried this by going to structure > views, created a duplicate Front Page. Then, under Filtering criteria, I added a new criteria of Tags (field_tags) and entered the tag that I want to use.

    When I click Save, its home page has simply been lost and the new page has nothing left.

    Is there a way to do what I'm looking for, I'm almost completely new to Drupal?