<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="364472" data-post-id="364472">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="iyjim" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/iyjim/120/37051_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  iyjim
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I just did a test:</p>
<ol>
<li>git clone</li>
</ol>
<pre data-code-wrap="elixir"><code class="lang-elixir">git clone https://github.com/ash-project/ash_phoenix.git
</code></pre>
<ol start="2">
<li>copied the following test in form_test.exs:</li>
</ol>
<pre data-code-wrap="elixir"><code class="lang-elixir">describe "generic actions" do
    test "generic actions can have forms made for them" do
      params = %{containing: "hello"}

      assert 0 =
               Post
               |&gt; Form.for_action(:post_count)
               |&gt; Form.validate(params)
               |&gt; Form.submit!(params: params)
    end
  end
</code></pre>
<p>and saved to be:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">describe "generic actions 2" do
    test "generic actions can have forms made for them" do
      params = %{containing: "hello"}

      assert 0 =
               Post
               # |&gt; Form.for_action(:post_count)
               # |&gt; Form.validate(params)
               |&gt; Form.for_action(:post_count, params: params)
               |&gt; Form.submit!(params: params)
    end
  end
</code></pre>
<ol start="3">
<li>run the test with:</li>
</ol>
<pre data-code-wrap="elixir"><code class="lang-elixir">
MIX_ENV=test mix test
</code></pre>
<ol start="4">
<li>get 1 failure</li>
</ol>
<pre data-code-wrap="elixir"><code class="lang-elixir">..................................................................................

  1) test generic actions2 generic actions can have forms made for them (AshPhoenix.FormTest)
     test/form_test.exs:30
     ** (Ash.Error.Unknown) 
     Unknown Error

     * ** (Spark.Options.ValidationError) unknown options [:params], valid options are: [:domain, :context, :authorize?, :tenant, :actor, :skip_unknown_inputs, :tracer, :private_arguments]
       (ash 3.5.9) lib/ash/error/unknown/unknown_error.ex:5: Ash.Error.Unknown.UnknownError.exception/1
       (ash 3.5.9) /home/jim/ph18/ash_phoenix/deps/splode/lib/splode.ex:336: Ash.Error.to_error/2
       (elixir 1.18.3) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
       (ash 3.5.9) /home/jim/ph18/ash_phoenix/deps/splode/lib/splode.ex:229: Ash.Error.to_class/2
       (ash 3.5.9) lib/ash/error/error.ex:108: Ash.Error.to_error_class/2
       (ash 3.5.9) lib/ash/action_input.ex:139: anonymous fn/1 in Ash.ActionInput.for_action/4
       (ash_phoenix 2.3.0) lib/ash_phoenix/form/form.ex:500: AshPhoenix.Form.do_for_action/3
       test/form_test.exs:35: AshPhoenix.FormTest."test generic actions2 generic actions can have forms made for them"/1
       (ex_unit 1.18.3) lib/ex_unit/runner.ex:511: ExUnit.Runner.exec_test/2
       (stdlib 6.2.2) timer.erl:595: :timer.tc/2
       (ex_unit 1.18.3) lib/ex_unit/runner.ex:433: anonymous fn/6 in ExUnit.Runner.spawn_test_monitor/4
     code: |&gt; Form.for_action(:post_count, params: params)
     stacktrace:
       (ash 3.5.9) lib/ash/action_input.ex:139: anonymous fn/1 in Ash.ActionInput.for_action/4
       (ash_phoenix 2.3.0) lib/ash_phoenix/form/form.ex:500: AshPhoenix.Form.do_for_action/3
       test/form_test.exs:35: (test)

..................................
</code></pre>
<p>So, it looks like the AshPhoenix.Form.for_action() does not accpet ‘params’ option.</p>
<p>The document below does not have a ‘params’ option, either. But it would be great if it has.</p><aside class="onebox allowlistedgeneric" data-onebox-src="https://ash-phoenix.hexdocs.pm/2.3.0/AshPhoenix.Form.html">
  <header class="source">

      <a href="https://ash-phoenix.hexdocs.pm/2.3.0/AshPhoenix.Form.html" target="_blank" rel="noopener nofollow ugc">ash-phoenix.hexdocs.pm</a>
  </header>

  <article class="onebox-body">
    

<h3><a href="https://ash-phoenix.hexdocs.pm/2.3.0/AshPhoenix.Form.html" target="_blank" rel="noopener nofollow ugc">AshPhoenix.Form — ash_phoenix v2.3.0</a></h3>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="364472" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-make-the-function-that-provids-default-value-of-an-argument-of-a-generic-action-be-able-to-get-the-actor/70352/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-364472" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="364472"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="364483" data-post-id="364483">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="zachdaniel" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/120/31980_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  zachdaniel
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Creator of Ash</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>So the problem there appears to be that it’s forwarding the params option to the underlying action input call. Could you open an issue on <code>ash_phoenix</code>?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="364483" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-make-the-function-that-provids-default-value-of-an-argument-of-a-generic-action-be-able-to-get-the-actor/70352/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-364483" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="364483"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-solved cat-solved" title="Marked as solution"></div>
  </section>
</div>
    <div class="postbit" id="364629" data-post-id="364629">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="iyjim" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/iyjim/120/37051_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  iyjim
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I just created an issue on ash_phoenix, please have a look:</p>
<p><a href="https://github.com/ash-project/ash_phoenix/issues/358" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/ash-project/ash_phoenix/issues/358</a></p>
<p>Thank you!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="364629" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-make-the-function-that-provids-default-value-of-an-argument-of-a-generic-action-be-able-to-get-the-actor/70352/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-364629" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="364629"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>