# List articles by category

**URL:** <https://www.ruby-forum.com/t/list-articles-by-category/104978>\
**Category:** Rails\
**Created:** [May 24, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/list-articles-by-category/104978 "2007-05-24T15:50:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![james-calivar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Post date:** [May 24, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/list-articles-by-category/104978/1 "2007-05-24T15:50:55Z")

</div>

I am new at Rails, I have a number of articles excerpts etc that I want  
to organise in a blog like format. I am nearly finished, but now I want  
to have a list of categories (dynamically created from a MySQL table)  
which I want to link to all articles tagged as that category.

What is the easiest way to create all this dynamically?

Thanks

---

<div class="post-metadata">

**Author:** ![james-calivar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Post date:** [May 26, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/list-articles-by-category/104978/2 "2007-05-26T18:15:18Z")

</div>

James Cumming wrote:

> I am new at Rails, I have a number of articles excerpts etc that I want  
> to organise in a blog like format. I am nearly finished, but now I want  
> to have a list of categories (dynamically created from a MySQL table)  
> which I want to link to all articles tagged as that category.
> 
> What is the easiest way to create all this dynamically?
> 
> Thanks

Hi James,  
I think these can help you:  
[http://source.mihelac.org/articles/2007/05/12/rails-in-practice-group-records-by-condition](http://source.mihelac.org/articles/2007/05/12/rails-in-practice-group-records-by-condition)

best,  
Bojan

–  
Bojan M.  
 → Ruby on Rails and Web D. Blog : [http://source.mihelac.org](http://source.mihelac.org)
