0 votes
in Ruby by

Which HTML is closes to what this code would output?

<% check_box(:post, :visible) %>

 A.

<input type="hidden" name="post[visible]" value="0" />

<input type="checkbox" name="post[visible]" value="1" />

 B.

<checkbox name="post[visible]" value="1" />

 C.

<input type="checkbox" name="post[visible]" value="1" data-default-value="0" />

 D.

<input type="checkbox" name="post[visible]" value="1" />

1 Answer

0 votes
by

Which HTML is closes to what this code would output?

<% check_box(:post, :visible) %>

Correct answer is :- <input type="hidden" name="post[visible]" value="0" />

<input type="checkbox" name="post[visible]" value="1" />

Related questions

0 votes
asked Sep 3, 2022 in Ruby by DavidAnderson
0 votes
asked Sep 3, 2022 in Ruby by DavidAnderson
...