only show pagination links when there are results to avoid error
This commit is contained in:
parent
3062dd9376
commit
4497c6bbdb
1 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
= form_tag items_path, :method => :get do
|
||||
= text_field_tag :q, @query
|
||||
= submit_tag 'Search', :name => nil
|
||||
= will_paginate @results
|
||||
= render @results
|
||||
= will_paginate @results
|
||||
- if @results
|
||||
= will_paginate @results
|
||||
= render @results
|
||||
= will_paginate @results
|
||||
|
|
Loading…
Reference in a new issue