Ruby Forum Typo > need some help regarding the views

Posted by Sanjay Bisht (hashpipe)
on 13.02.2008 20:17
(Received via mailing list)
Hi,

I was going through the views, but I am unable to locate the views for 
the
sidebars..I mean I do find the _sidebar partial, but where exactly is 
the
final HTML generated from, because the generated output is something 
like
this

<h3>Categories</h3>
<ul id="categories">

  <li><a 
href="http://localhost:3000/articles/category/code-n-design">Design
n Code</a> <em>(2)</em></li>


  <li><a href="http://localhost:3000/articles/category/idea">Idea</a>
<em>(2)</em></li>


  <li><a href="http://localhost:3000/articles/category/music">Music</a>
<em>(2)</em></li>



  <li><a href="http://localhost:3000/articles/category/rails">Rails</a>
<em>(2)</em></li>

</ul>


I was wondering if I could include the <em> inside the <a>, which gives 
a
better look and is easier to style.

I would be really glad if someone could really help me with this.

--
Cheers!

S
www.bishtblogs.net
Posted by Piers Cawley (Guest)
on 14.02.2008 07:48
(Received via mailing list)
On Feb 13, 2008 7:16 PM, Sanjay Bisht <crazy.bisht@gmail.com> wrote:
> Hi,
>
> I was going through the views, but I am unable to locate the views for the
> sidebars..I mean I do find the _sidebar partial, but where exactly is the
> final HTML generated from, because the generated output is something like
> this

Sidebars are plugins, so if you look in the plugin directory you'll find

vendor/plugins/category_sidebar/views/content.rhtml

which is the view you seek.