# Non-index method doesn't display the viex correctly

**URL:** <https://www.ruby-forum.com/t/non-index-method-doesnt-display-the-viex-correctly/152167>\
**Category:** Rails\
**Created:** [October 30, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/non-index-method-doesnt-display-the-viex-correctly/152167 "2008-10-30T19:10:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Post date:** [October 30, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/non-index-method-doesnt-display-the-viex-correctly/152167/1 "2008-10-30T19:10:54Z")

</div>

Hi there.

I have a problem with the view of the method related to the same  
controller.

I have two methods in one controller: “index” and “causes”, which each  
one has a view. I make my “index” view with stylesheets, javascripts  
and images saved on their respective folder in /public. e.g.:

\<%= stylesheet\_link\_tag “menu”, “style”, :media =\> “screen,  
projection” %\>  
\<%= javascript\_include\_tag “swfobject” %\>  
 ![]()

I put the all that in the index view and it does it well.

I tried to do the same in the “causes” and… unfortunately it fails.

I don’t know what happened. Can you please help me? I need to  
understand what’s wrong?

Greetings…

The N.

---

<div class="post-metadata">

**Author:** ![The\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Post date:** [October 30, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/non-index-method-doesnt-display-the-viex-correctly/152167/2 "2008-10-30T19:24:26Z")

</div>

> I tried to do the same in the “causes” and… unfortunately it fails.

This of course leaves us with many options…

Would failed mean, that your machine crashed?  
Ok, most likely it doesn’t render anything at all?  
Or is missing to include the stylesheet?  
Or the swfupload code?

Does it run the right action or what?

---

<div class="post-metadata">

**Author:** ![The\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Post date:** [October 30, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/non-index-method-doesnt-display-the-viex-correctly/152167/3 "2008-10-30T19:32:03Z")

</div>

It doesnt’t show anything at all, at least the images, it doesn’t  
matter they’re located in the right folder, they don’t show up in the  
view. It’s working on the index method but not on the other one…and  
I’m afraid that doesn’t work on the others. My PC didn’t crashed, just  
the view.

Later…
