refactoring
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user