To edit pages or tickets please login with username/password: aaf/aaf

Changeset 230

Show
Ignore:
Timestamp:
08/27/07 19:41:55 (10 months ago)
Author:
jk
Message:

pagination

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/demo/app/views/searches/search.html.erb

    r229 r230  
    11<h1>Search</h1> 
    2 <% form_for :search, @search, search_path, :html => { :method => :post } do |f| %> 
     2<% form_tag search_path do |f| %> 
    33  <fieldset> 
    44    <legend>Search</legend> 
    5     <%= f.text_field 'query' %> 
     5    <%= text_field_tag 'q', @search.query %> 
    66  </fieldset> 
    77  <%= submit_tag 'search' %> 
     
    1414  <p><%= will_paginate @results %></p> 
    1515  <ul> 
    16     <% @results.each { |result| -%> 
    17       <li><%= link_to result.title, :action => 'show', :id => result %></li> 
    18     <% } -%> 
     16    <% for result in @results -%> 
     17      <li><%= link_to result.title, content_path(result) %></li> 
     18    <% end -%> 
    1919  </ul> 
    2020  <p><%= will_paginate @results %></p> 

To edit pages or tickets please login with username/password: aaf/aaf