Skip to content

Can't create apps #443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
parasiteoflife opened this issue Sep 28, 2024 · 1 comment
Open

Can't create apps #443

parasiteoflife opened this issue Sep 28, 2024 · 1 comment

Comments

@parasiteoflife
Copy link

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
@edtsz
Copy link

edtsz commented Jan 23, 2025

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants