Commit a1792191e94bba026e798297efe3327ab36d2247

Authored by MoisesMachado
1 parent 521efba0

ActionItem1: acts_as_ferret added

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@146 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/controllers/manage_tags_controller.rb
... ... @@ -5,7 +5,6 @@ class ManageTagsController < ApplicationController
5 5  
6 6 uses_flexible_template :owner => 'owner'
7 7  
8   -
9 8 # Index redirects to list action without modifing the url
10 9 def index
11 10 redirect_to :action => 'list'
... ...
app/views/manage_tags/list.rhtml
1   -<br/>
2   -<% form_tag :action => 'search' do %>
3   - <%= text_field 'query', 'term'%>
4   - <%= submit_tag _('Search') %>
5   -<% end %>
  1 +<%= render :partial => 'search_box' %>
6 2  
7 3 <h2> <%= _("Listing tags") %> </h2>
8 4  
... ...
app/views/manage_tags/search.rhtml
  1 +<%= render :partial => 'search_box' %>
  2 +
1 3 <h2> <%= _('Matching tags') %></h2>
2 4  
3 5 <% if not @tags_found.empty? %>
... ...
lib/extended_tag.rb
... ... @@ -13,7 +13,7 @@ class Tag
13 13 end
14 14 end
15 15  
16   -# acts_as_ferret :fields => [:name]
  16 + acts_as_ferret :fields => [:name]
17 17  
18 18  
19 19 # Return all the tags that were suggested but not yet approved
... ...