# Newcomer of ROR

**URL:** <https://www.ruby-forum.com/t/newcomer-of-ror/176759>\
**Category:** Rails\
**Created:** [October 5, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/newcomer-of-ror/176759 "2009-10-05T23:39:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![silver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a3d4f5/32.png) [@silver](https://www.ruby-forum.com/u/silver)\
**Post date:** [October 5, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/newcomer-of-ror/176759/1 "2009-10-05T23:39:44Z")

</div>

I was trying to build a blog webpage. I followed the steps of  
cookbook2. Now I want to add some new functions to my blog system.That  
is, I want to show all blogs that belongs to one category when I click  
the category’s name on category/list.rhtml.Also, I want to add a new  
link to view all the categories from blog/list.rhtml.  
But I have trouble with how to do it. I want to call the category’s  
list action from blog/list.rhtml but I don’t know how to do it.

I hope I have explained my question clearly. Thank you!

---

<div class="post-metadata">

**Author:** ![silver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a3d4f5/32.png) [@silver](https://www.ruby-forum.com/u/silver)\
**Post date:** [October 6, 2009, 1:02am UTC](https://www.ruby-forum.com/t/newcomer-of-ror/176759/2 "2009-10-06T01:02:16Z")

</div>

On Oct 5, 12:36 pm, silver [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> But I have trouble with how to do it. I want to call the category’s  
> list action from blog/list.rhtml but I don’t know how to do it.

What have you tried so far?

-eric

---

<div class="post-metadata">

**Author:** ![silver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a3d4f5/32.png) [@silver](https://www.ruby-forum.com/u/silver)\
**Post date:** [October 6, 2009, 2:31am UTC](https://www.ruby-forum.com/t/newcomer-of-ror/176759/3 "2009-10-06T02:31:15Z")

</div>

Not sure what you have done so far BUT I think this will do

\<%= link\_to “All”, blogs\_categories\_path(@blog) %\>
