# RESTful sublist (e.g. open invoices)

**URL:** <https://www.ruby-forum.com/t/restful-sublist-e-g-open-invoices/154387>\
**Category:** Rails\
**Created:** [November 28, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/restful-sublist-e-g-open-invoices/154387 "2008-11-28T15:51:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alphaone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e274bd/32.png) [@alphaone](https://www.ruby-forum.com/u/alphaone)\
**Post date:** [November 28, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/restful-sublist-e-g-open-invoices/154387/1 "2008-11-28T15:51:10Z")

</div>

Hi,

i’ve got a restful ressource named ‘invoice’. the index-method shows a  
paginated list of all invoices.

now i want to get a new view for all open invoices. i don’t know how to  
achieve this in most-restful manner.

i considered these options:

- a new collection method for the ressource: ‘show\_open’
- a get-parameter for the index view: ‘?only\_open=true’

but i’m pretty sure, you guys can come up with a more elegant solution.

i may want to get some more views in the future: ‘paid’, ‘last\_month’
