search for: teacher_url

Displaying 1 result from an estimated 1 matches for "teacher_url".

2010 Jun 18
0
Simple search in ror
...br> <% if searchresults.length == 0 %> <p>No teacher found...</p> <% elsif params[:query] == "" %> <p>Insert a term, please.</p> <% else %> <ul> <% for teacher in searchresults %> <li><%= link_to teacher.cognome , teacher_url(:id => teacher.id)%></li> <% end %> </ul> <% end %> But when I push the search button the page goes to the show function... Heeeeeeelp !!!! Many many thanks to all who... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subsc...