Hello !
I try to bind two pages together, a page which serves to make a research and a page which posts the result of the research.
Here are two pages that I want to bind together :
http://zupimages.net/up/14/05/0efm.png (Index) http://zupimages.net/up/14/05/901g.png (Show)
And here is what it currently gives me when I press the Search button :
http://zupimages.net/up/14/05/cr2r.png (Index) http://zupimages.net/up/14/05/f2mn.png (Show)
Here is the code of the two pages:
Index.html.erb :
<h1>Search counter</h1>
<%= form_tag '/counters/id', method: :get %>
<table>
<tr>
<th>Identifiant</th>
<th><%= search_field_tag "counters" %></th>
<th><%= submit_tag 'Search' %></th>
<th></th>
</tr>
</table>
Show.html.erb :
<p id="notice"><%= notice %></p>
<p>
<strong>Nombre de message :</strong>
<%= @counter_msg %> </br>
<strong>Maximum de message pouvant être envoyé :</strong>
<%= @counter_max %> </br>
<strong>Reset automatique :</strong>
<%= @counter_reset %> </br>
<strong>Date du dernier reset :</strong>
<%= @counter_reset_date %> </br>
</p>
<%= link_to 'Edit', edit_counter_path(@counter) %> |
<%= link_to 'Back', counters_path %>
I would like to have your help to know where the problem comes from and how I could fix it. (I think this is a story of road, but being a beginner I do not know)
Thank you in advance for your help