refactoring

This commit is contained in:
albert
2011-06-25 19:31:39 -04:00
parent 28d179708f
commit 739e28919a
11 changed files with 159 additions and 54 deletions

View File

@@ -4,7 +4,7 @@
<section id="search-box">
<h1>Search Favorites</h1>
<%= form_tag(favorites_path, :method => "get") do %>
<%= text_field_tag("tags", params[:tags], :size => 20) %>
<%= text_field_tag("tags", @favorite_set.tag_string, :size => 20) %>
<%= submit_tag "Go" %>
<% end %>
</section>
@@ -25,12 +25,12 @@
<section id="content">
<h1>Posts</h1>
<%= @post_set.presenter.post_previews_html %>
<%= @favorite_set.presenter.post_previews_html(self) %>
<div class="clearfix"></div>
<div class="paginator">
<%= sequential_paginator(@post_set.favorites) %>
<%= sequential_paginator(@favorite_set.favorites) %>
</div>
</section>

View File

@@ -70,7 +70,7 @@
<%= f.input :name %>
<%= f.input :password %>
<%= f.input :password_confirmation %>
<%= f.input :email %>
<%= f.input :email, :required => false %>
<%= f.button :submit %>
<% end %>