Skip to content

create methods in controllers cause root to load multiple times. #50

@serodriguez68

Description

@serodriguez68

Hi Daniel!

I've followed the book closely and the app is working great (https://sr-learn-rails.herokuapp.com/).

When I installed the analytics feature through segment.io (Ch. 26) I noticed a strange behavior on my segment debugger dashboard:
Whenever a form event is triggered (sign up or contact request) the user is redirected to the root (as intended) but the page is loaded 3 times. The same behavior happens when you load the app using the URL (not the nav links).

I attached a screenshot of my segment dashboard to give you some context.

Any idea why this is happening?

Note: The console.log line you wrote in the segmentio.js file is also printed 2 times when an event is triggered.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions