ruby - Continous loading of resources after routing in rails -


Hello I'm a beggar with rail and English is not my main language, so please support me with this medium.

I am just trying out some routes in my train app, using the resource: Name and allocate rail routes

I have these routes. RB

  Rails.application.routes.draw do # is based on the order of priority creation: first created - & gt; Highest priority. # See if all your routes exit with "Rake Routes" to get "signup": "User #New", such as: "Signup" Get "Session" for "Login #", such as: " Login: Get "Logout" as: "Session # deleted", as: "Dashboard" resource: Site Resource: Page Resources: Sitemap Nom place: API, "Dashboard": "Session #" 'Session': Default = & gt; ; {: Format = & gt; 'Json'} Name: v1 resource: session, only: [: create, show, delete] resource: password, only: [: create, update] resource: user, only: [: create, show << code> = link_to 'Add new site', new_site_path, target: "_self"  end my thought  

The site loads at this point, but GET requests are being sent, resulting in the file being constantly being downloaded

I received some from the FireBug / XHR console I will post the issues

  GET angular.js? Body = 1 & amp; _ = 1414486911946200 OK Localhost: 3000 760.9 KB 127.0.0.1:3000 4ms GET index.js? Body = 1 & amp; _ = 1414486911 947 200 OK localhost: 3000 74b 127.0.0.1:3000 3ms GET Infl. Js? Body = 1 & amp; _ = 1414486911948 200 OK Localhost: 3000 1,1 KB 127.0.0.1:3000 3ms GET Injector.JS? Body = 1 & amp; _ = 1414486911949 200 OK Localhost: 3000 1,9 KB 127.0.0.1:3000 3ms GET url_builder.js? Body = 1 & amp; _ = 1414486911950 200 OK localhost: 3000 2.0 KB 127.0.0. 1: 3000 2ms GET serialization.js? Body = 1 & amp; _ = 1414486911951 200 OK Localhost: 3000 25.2 KB 127.0.0.1:3000 2ms  

Edit I have noticed that if I get it for it like

  "Add_site": "sites # new", such as: "add_site"  

and call it Add_site_path is not it

< Div class = "post-text" itemprop = "text">

This is normal - the HTML you send contains references to JavaScript files and browser needs to worry about here to download them separately. Nothing in production, applicants are served directly by the server without the application, so they will not appear in the production log.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -