Auf erb:Wie bette ich die Instanzmethode mit link_to Textfeld ein?
@student.count #--> 4
<li><%= link_to "Show All", 'all' %></li>#-->Show all
Ich möchte
show All(3)
zeigen.
Ich versuchte <li><%= link_to "Show All"@students.count, 'all' %></li>
oder
<li><%= link_to "Show All"[email protected], 'all' %></li>
Aber alles hat nicht funktioniert