# How can I put a sidebar in a f.selec?

**URL:** <https://www.ruby-forum.com/t/how-can-i-put-a-sidebar-in-a-f-selec/126741>\
**Category:** Rails\
**Created:** [January 21, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/how-can-i-put-a-sidebar-in-a-f-selec/126741 "2008-01-21T20:51:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [January 21, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/how-can-i-put-a-sidebar-in-a-f-selec/126741/1 "2008-01-21T20:51:33Z")

</div>

How can I put a sidebar\_here?

**Client**  
 \<% @clients.each do |client| %\> \> \<%= client.name%\> \<% end %\>

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [January 21, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/how-can-i-put-a-sidebar-in-a-f-selec/126741/2 "2008-01-21T22:31:38Z")

</div>

John S. said the following on 21/01/08 02:51 PM:

> \<% end %\>

First, you need to have the CSS that supports the layout.  
There are many sites which describe how this work.  
Google is your friend here.  
However you may also want to look at the method described in  
“Modular Page Assembly in Rails”  
[http://www.railsdev.ws/blog/3/modular-page-assembly-in-rails/](http://www.railsdev.ws/blog/3/modular-page-assembly-in-rails/)  
which is also a good read on views, partials and an interesting way of  
implementing ‘custom skins’

## But you will most definitely need the proper CSS

I would rather try to persuade a man to go along, because once I have  
persuaded him he will stick. If I scare him, he will stay just as long  
as he is scared, and then he is gone.  
Dwight D. Eisenhower
