link to new crop request form

This commit is contained in:
Taylor Griffin
2015-02-10 22:12:22 +11:00
parent 2ab73d3df6
commit 102763f2ab
9 changed files with 3 additions and 9 deletions

View File

@@ -14,7 +14,7 @@
= collection_select(:harvest, :plant_part_id, PlantPart.all, :id, :name, { :selected => @harvest.plant_part_id }, { :class => 'form-control' })
%span.help-block.col-md-8
Can't find what you're looking for?
= link_to "Request new crops.", Growstuff::Application.config.new_crops_request_link
= link_to "Request new crops.", new_crop_path
.form-group
= f.label :harvested_at, 'When?', :class => 'control-label col-md-2'

View File

@@ -12,7 +12,7 @@
= auto_suggest @planting, :crop, :class => 'form-control', :default => @crop
%span.help-inline
Can't find what you're looking for?
= link_to "Request new crops.", Growstuff::Application.config.new_crops_request_link
= link_to "Request new crops.", new_crop_path
.form-group
= f.label :garden_id, 'Where did you plant it?', :class => 'control-label col-md-2'
.col-md-8

View File

@@ -12,7 +12,7 @@
= auto_suggest @seed, :crop, :class => 'form-control', :default => @crop
%span.help-inline
Can't find what you're looking for?
= link_to "Request new crops.", Growstuff::Application.config.new_crops_request_link
= link_to "Request new crops.", new_crop_path
.form-group
= f.label :quantity, 'Quantity:', :class => 'control-label col-md-2'
.col-md-2

View File

@@ -44,7 +44,6 @@ Growstuff::Application.configure do
# config.action_view.raise_on_missing_translations = true
# Growstuff config
config.new_crops_request_link = "http://example.com/not-a-real-url"
config.action_mailer.default_url_options = { :host => 'localhost:8080' }
config.action_mailer.delivery_method = :letter_opener

View File

@@ -67,7 +67,6 @@ Growstuff::Application.configure do
config.active_record.dump_schema_after_migration = false
# Growstuff configuration
config.new_crops_request_link = "http://growstuff.org/posts/skud-20130319-requests-for-new-crops"
config.action_mailer.default_url_options = { :host => 'growstuff.org' }
config.action_mailer.smtp_settings = {

View File

@@ -69,7 +69,6 @@ Growstuff::Application.configure do
config.active_record.dump_schema_after_migration = false
# Growstuff configuration
config.new_crops_request_link = "http://example.com/not-a-real-url"
config.action_mailer.default_url_options = { :host => 'staging.growstuff.org' }
config.action_mailer.smtp_settings = {

View File

@@ -40,7 +40,6 @@ Growstuff::Application.configure do
# config.action_view.raise_on_missing_translations = true
# Growstuff config
config.new_crops_request_link = "http://example.com/not-a-real-url"
config.action_mailer.default_url_options = { :host => 'localhost:8080' }
Growstuff::Application.configure do

View File

@@ -40,7 +40,6 @@ describe "plantings/edit" do
it 'includes helpful links for crops and gardens' do
assert_select "a[href=#{new_garden_path}]", :text => "Add a garden."
assert_select "a[href=#{Growstuff::Application.config.new_crops_request_link}]", :text => "Request new crops."
end
it "chooses the right crop" do

View File

@@ -41,7 +41,6 @@ describe "plantings/new" do
it 'includes helpful links for crops and gardens' do
assert_select "a[href=#{new_garden_path}]", :text => "Add a garden."
assert_select "a[href=#{Growstuff::Application.config.new_crops_request_link}]", :text => "Request new crops."
end
it "selects a garden given in a param" do