Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6748799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:36:36+00:00 2026-05-26T12:36:36+00:00

I have a view with a form_tag, <table class=center> <%= render @products %> </table>

  • 0

I have a view with a form_tag,

<table class="center">
  <%= render @products %>     
</table> 
<%= form_tag write_offs_path, :remote => true, :id => "add_write_off" do %> 
<%= submit_tag "Write off", :id => "set_write_off" %><br/>
<%= text_area_tag 'comment', nil, :size => "100x5", :id => "write_off_comment" %> 
<% end %>

in products patrial I have

<% check_box_name = product.class.table_name + "[]" -%>
<tr>
 ....
 <td>
    <%= check_box_tag check_box_name, product.id %>
  </td>
</tr>

Now when I select some checkboxes and press the submit button, only comment form text_area comes into params, but the products checkbox values array didn’t come, how to solve it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:36:36+00:00Added an answer on May 26, 2026 at 12:36 pm

    Your partial must be rendered inside the form_tag to be a part of the form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following form in my /app/views/password_resets/new.html.erb view <% form_tag password_resets_path do %>
Rails 2.3.5 I have a view displaying 'employee' records in a table where each
I have a table like so: <table class=data> <thead> <tr class=columns> <th> </th> <th>
controller $data[controller] = $table; $data[rows] = $this->base_model->get();//get table attributes and names $write_add = $this->load->view(generate/add,$data,TRUE);//load
Let's say I have a form_tag in a view gathering a view user input
I have an MVC view with a form built with the Ajax.BeginForm() helper method,
I have a view user control that can post form. This control can be
I have a view which contains a form, the form posts and the data
I have a View with an exposed form . I am trying to a
if i have created a view model and have a partial form that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.