adds external link

This commit is contained in:
rgarcia
2015-09-12 13:02:37 +02:00
parent 68790ac8e5
commit 90744e6588
3 changed files with 7 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ class ProposalsController < ApplicationController
private
def proposal_params
params.require(:proposal).permit(:title, :question, :description, :tag_list, :terms_of_service, :captcha, :captcha_key)
params.require(:proposal).permit(:title, :question, :description, :external_url, :tag_list, :terms_of_service, :captcha, :captcha_key)
end
def load_featured_tags

View File

@@ -17,6 +17,11 @@
<%= f.cktext_area :description, maxlength: Proposal.description_max_length, ckeditor: { language: I18n.locale }, label: false %>
</div>
<div class="small-12 column">
<%= f.label :external_url, t("proposals.form.proposal_external_url") %>
<%= f.text_field :external_url, placeholder: t("proposals.form.proposal_external_url"), label: false %>
</div>
<div class="small-12 column">
<%= f.label :tag_list, t("proposals.form.tags_label") %>
<span class="note"><%= t("proposals.form.tags_instructions") %></span>

View File

@@ -57,6 +57,7 @@
</div>
<%= @proposal.description %>
<%= @proposal.external_url %>
<%= render 'shared/tags', proposal: @proposal %>