removes tags from spending proposals

This commit is contained in:
Juanjo Bazán
2016-01-06 14:47:07 +01:00
parent 1710445016
commit 8aebfecae0
5 changed files with 1 additions and 19 deletions

View File

@@ -26,7 +26,7 @@ class SpendingProposalsController < ApplicationController
private
def spending_proposal_params
params.require(:spending_proposal).permit(:title, :description, :external_url, :tag_list, :terms_of_service, :captcha, :captcha_key)
params.require(:spending_proposal).permit(:title, :description, :external_url, :terms_of_service, :captcha, :captcha_key)
end
end

View File

@@ -1,7 +1,6 @@
class SpendingProposal < ActiveRecord::Base
include Measurable
include Sanitizable
include Taggable
apply_simple_captcha

View File

@@ -17,17 +17,6 @@
<%= f.text_field :external_url, placeholder: t("spending_proposals.form.external_url"), label: false %>
</div>
<div class="small-12 column">
<%= f.label :tag_list, t("spending_proposals.form.tags_label") %>
<p class="note"><%= t("spending_proposals.form.tags_instructions") %></p>
<span class="tags">
<% @featured_tags.each do |tag| %>
<a class="js-add-tag-link"><%= tag.name %></a>
<% end %>
</span>
<%= f.text_field :tag_list, value: @spending_proposal.tag_list.to_s, label: false, placeholder: t("spending_proposals.form.tags_placeholder"), class: 'js-tag-list' %>
</div>
<div class="small-12 column">
<% if @spending_proposal.new_record? %>
<%= f.label :terms_of_service do %>