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..
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/650416e58561c8ec1aee94ab57a4df33%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.