I try to make rhomobile search in Fixed DB.
But it returns ALL entries in DB instead of the ones with given QID
<%=@questions.id%>
<% @antworts = Antwort.find(:conditions=>{'qid'=>@questions.id})%>
<% @antworts.each do |antwort| %>
<li>
<a href="sdfsdf">
<%= antwort.antwort %>
</a>
</li>
<% end %>
</ul>
Any idea why?
You need to pass :first or :all in the first argument:
Or change the method to find_all: