Hi,
I am new to rails.i am taking set of mails from database..my requirment
is
whenever admin select mails from checkboxes..he need to send mails to
those mailids..i have created controller name newsletters..and in index
i have written this code
able class="table table-striped">
<thead>
<tr>
<th></th>
<th>Email</th>
<th>Action</th>
<!-- <th>Location</th>
<th>Description</th> -->
</tr>
</thead>
<tbody>
<% @news.each do |n| %>
<tr>
<td><%=check_box_tag('email_ids[]',n.email,options =
{:class=>'NewsLetter'})%></td>
<td><%=n.email%></td>
<td><%= link_to 'Delete', n, method: :delete, data: { confirm:
'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<%= submit_tag("send") %>
but now i dont know whether i can take those values whenever i ll click
on checkboxes..and how to get those values..how to store it in other
page..here i need to take more than 1 mail id..dont have knowledge about
javascript..please anyone helpme out with the code that what i need to
put it in controller and views..