Ruby on Rails Thursday, December 3, 2015

The Html :
<!DOCTYPE html>

<html>
<head>
<title>Créer un incident - Tick{Master}</title>
<link rel="stylesheet" media="all"
href="/assets/application-48635ecbfd04c21cac23ad45e33990ff.css"
data-turbolinks-track="true" />
<script
src="/assets/application-29908a8c5d000f4f4bea87116f40c8ae.js"
data-turbolinks-track="true"></script>
<meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token"
content="kKhRcB6y5NttaYZ6v89/MJL2wotkM4WLiuRowjoEM8EPP4Q+k6Vl8aNnUxi+0ej2gj7j7LepkuFH1TBOzof/mQ=="
/>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body id="connected"></body>
<!--Header-->
<div class="nav-side-menu">
<a class="brand">
TickMaster
</a>
<i class=" fa fa-bars fa-2x toggle-btn" data-toggle="collapse"
data-target="#menu-content"></i>
<div class="menu-list">
<ul id="menu-content" class="menu-content collapse out">
<li class="new_incident_button"><a href="/incidents/new"><img
alt="" class="fa-img"
src="/assets/ICOMOON/32px/0267-plus-878a8aefb2fc5f160df23f8f02b74011.png"
/></a>
<a href="/incidents/new" data-no-turbolink="true">
<i class="fa fa-dashboard fa-lg">Nouvel incident</i>
</a>
</li>


<li data-toggle="collapse" data-target="#incidents"
class="collapsed active"><img alt="" class="fa-img"
src="/assets/accidents-aeb9ce9e10abf41731af384353820dc9.png" width="32"
height="32" />
<a href="#"><i class="fa fa-gift fa-lg"></i>Incidents</a>
</li>
<ul class="sub-menu collapse" id="incidents">
<li><a class="" data-method="get" href="/users/1">Mes
incidents</a></li>
<li><a class="" data-method="get"
href="http://localhost:3000/incidents">Tous les incidents</a></li>
<li><a href="/incidents">Tous les incidents</a></li>
<li><a data-method="get" href="/users/1/allincidents">Incidents
cloturés</a></li>
</ul>

As you can seen, i have write "data-no-turbolink="true"" at the first
link but not at the others links. So, when i create links with link_to,
turbolinks not working but with <a></a> it's working.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/18d4e3c8ade1ad11cb56bce41ccf76b9%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment