S
sig_UVA
Hi all,
I have a hash that is created in the index method of my controller.
After it is created, the index.rhtml page is rendered. Upon this
rendering I would like to create a check box for each key/value in the
hash.
The has is @recordsHash
I have been trying varying stratagies like the one below, but to no
avail. Do you have any ideas? Thanks for your help on this!
html lang='en">
<head>
</head>
<body>
Some text here
</br>
<%= form_tagcontroller => "AddMassMail", :action => 'addmassmail') %>
<% @recordsHash.each do {|key, value| %>
<%= "Site #{value}<%= check_box('Site', '#{key}', {:checked
=> 'checked'}, 'yes') %> <% } %>
<%= submit_tag("Add Mass Mailing") %>
<%= end_form_tag %>
</body>
</html>
I have a hash that is created in the index method of my controller.
After it is created, the index.rhtml page is rendered. Upon this
rendering I would like to create a check box for each key/value in the
hash.
The has is @recordsHash
I have been trying varying stratagies like the one below, but to no
avail. Do you have any ideas? Thanks for your help on this!
html lang='en">
<head>
</head>
<body>
Some text here
</br>
<%= form_tagcontroller => "AddMassMail", :action => 'addmassmail') %>
<% @recordsHash.each do {|key, value| %>
<%= "Site #{value}<%= check_box('Site', '#{key}', {:checked
=> 'checked'}, 'yes') %> <% } %>
<%= submit_tag("Add Mass Mailing") %>
<%= end_form_tag %>
</body>
</html>