# Checkbox

**URL:** <https://www.ruby-forum.com/t/checkbox/102592>\
**Category:** Ruby\
**Created:** [November 26, 2006, 6:39am UTC](https://www.ruby-forum.com/t/checkbox/102592 "2006-11-26T06:39:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandrahas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@chandrahas](https://www.ruby-forum.com/u/chandrahas)\
**Post date:** [November 26, 2006, 6:39am UTC](https://www.ruby-forum.com/t/checkbox/102592/1 "2006-11-26T06:39:21Z")

</div>

Hi Guys,

I am working out for assigning the check boxes to the new entries in a  
view(form). And now the thing is i have to add functionality to those  
check boxes so that when i make multiple selections and press a button  
called delete then the checked items all must be deleted. The table i am  
using in MySql is documents, which has filename, description and  
uploaddate as the columns.I have a delete method assigned to each and  
every column.But When i select the delete function assigned to those  
checked items, then all the selected items must be deleted.

```
                                               Regards,
                                              Chandoo..
```

---

<div class="post-metadata">

**Author:** ![chandrahas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@chandrahas](https://www.ruby-forum.com/u/chandrahas)\
**Post date:** [November 26, 2006, 10:20am UTC](https://www.ruby-forum.com/t/checkbox/102592/2 "2006-11-26T10:20:30Z")

</div>

Chandoo… Kalamakuntla wrote:

> Hi Guys,
> 
> I am working out for assigning the check boxes to the new entries in a  
> view(form). And now the thing is i have to add functionality to those  
> check boxes so that when i make multiple selections and press a button  
> called delete then the checked items all must be deleted. The table i am  
> using in MySql is documents, which has filename, description and  
> uploaddate as the columns.I have a delete method assigned to each and  
> every column.But When i select the delete function assigned to those  
> checked items, then all the selected items must be deleted.

You left out a few important things:

1. What GUI interface library are you using? There are dozens.

2. What did you expect to happen?

3. What happened instead?

4. How exactly do (2) and (3) differ?

5. What error messages, if any, were presented to you?
