I’m having trouble finding then displaying all items in my “posts” table
that match a certain search string.
I have a from field:
<%= start_form_tag :action=> “search” %>
Search<%= error_messages_for 'post' %>
<input type=text name="title"> <input type="submit" value="Search »" class="primary" />
<%= end_form_tag %>
That points to this action in my “post_controller.rb”
@post = Post.find_all_by_title(params[:title])
Which I think is assigning the @post variable with the results. But how
exactly can I get them to display? I made a dummy action in the
post_contoller.rb called “show_search” and a view called
“show_search.rhtml” what’s the last step to get the results to display?