Displaying 1 result from an estimated 1 matches for "faq_control".
Did you mean:
fancontrol
2008 Apr 07
0
link_to only links to current controller?
...ersion of the code and
totally doesn''t work on a newer version, in spite of the fact I can see
no difference whatsoever either in the rhtml pages, the controller or
any of the routing code. Right now I literally have no idea what the
cause of this could be.
This code lists FAQ entries (in faq_controller.rb ):
<ul>
<% @questionList.each do |question| %>
<li><%=link_to(question.question, :action=>''show_question'',
:id=>question.id)%></li>
<% end %>
</ul>
On the current code it gives this output:
<li><a href="/faq/s...