cuttlefish
cuttlefish copied to clipboard
Can't create apps
I get this:
Showing /app/app/views/apps/new.html.haml where line #7 raised:
wrong number of arguments (given 2, expected 0..1)
Extracted source (around line #7):
= f.semantic_errors
= f.inputs "Basic" do
= f.input :name, placeholder: "Angelfish", input_html: {class: "span6"}
= f.inputs "Tracking" do
= f.input :click_tracking_enabled, as: :boolean, hint: "Rewrite all the links in html emails so that you can find out when users click them"
= f.input :open_tracking_enabled, as: :boolean, hint: "Adds a small transparent image to the end of html emails so that you can find out when an email is opened"
Rails.root: /app
I got the same error and could solve it:
diff --git a/app/views/apps/new.html.haml b/app/views/apps/new.html.haml
index 64a95d04..72950c49 100644
--- a/app/views/apps/new.html.haml
+++ b/app/views/apps/new.html.haml
@@ -4,10 +4,10 @@
= semantic_form_for @app, as: :app, url: apps_path, html: {class: "form-horizontal"} do |f|
= f.semantic_errors
= f.inputs "Basic" do
- = f.input :name, placeholder: "Angelfish", input_html: {class: "span6"}
+ = f.input :name, placeholder: "Angelfish", input_html: {class: "span6"}, label: 'Name', hint: ''
= f.inputs "Tracking" do
- = f.input :click_tracking_enabled, as: :boolean, hint: "Rewrite all the links in html emails so that you can find out when users click them"
- = f.input :open_tracking_enabled, as: :boolean, hint: "Adds a small transparent image to the end of html emails so that you can find out when an email is opened"
- = f.input :custom_tracking_domain, placeholder: "email.angelfishsocute.com", hint: "Leave blank if you want to use default domain (#{Rails.configuration.cuttlefish_domain}) for open and link tracking. You can set this later too."
+ = f.input :click_tracking_enabled, as: :boolean, hint: "Rewrite all the links in html emails so that you can find out when users click them", label: "Click tracking enabled", placeholder: ""
+ = f.input :open_tracking_enabled, as: :boolean, hint: "Adds a small transparent image to the end of html emails so that you can find out when an email is opened", label: "Open tracking enabled", placeholder: ''
+ = f.input :custom_tracking_domain, label: 'Custom tracking domain', placeholder: "email.angelfishsocute.com", hint: "Leave blank if you want to use default domain (#{Rails.configuration.cuttlefish_domain}) for open and link tracking. You can set this later too."
= f.actions do
= f.action :submit, label: "Create App"
= f.input :click_tracking_enabled, as: :boolean, hint: "Rewrite all the links in html emails so that you can find out when users click them", label: "Click tracking enabled", placeholder: ""
- = f.input :open_tracking_enabled, as: :boolean, hint: "Adds a small transparent image to the end of html emails so that you can find out when an email is opened", label: "Open tracking enabled", placeholder: ''
- = f.input :custom_tracking_domain, label: 'Custom tracking domain', placeholder: "email.angelfishsocute.com", hint: "Leave blank if you want to use default domain (#{Rails.configuration.cuttlefish_domain}) for open and link tracking. You can set this later too."
Thank you! Was able to easily find and fix the file. Working now.