Displaying 1 result from an estimated 1 matches for "find_by_lemma".
2006 Aug 06
6
View passing empty or no value to controller -- help
...39;') %>
<p>
<%= text_field_tag :lemma, params[:lemma] %>
</p>
<%= link_to "Find It", :class => "submit" %>
<%= end_form_tag %>
And the following find action in the controller:
def find
lemma = Lemma.find_by_lemma(params[:lemma])
if lemma
redirect_to (:controller => "lemma", :action => "show")
else
flash.now[:notice] = "Unable to find lemma: #{lemma}."
end
end
It appears that the view does not pass back any value to the controller,
or...