# Div problem

**URL:** <https://www.ruby-forum.com/t/div-problem/125689>\
**Category:** Rails\
**Created:** [January 11, 2008, 6:17am UTC](https://www.ruby-forum.com/t/div-problem/125689 "2008-01-11T06:17:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [January 11, 2008, 6:17am UTC](https://www.ruby-forum.com/t/div-problem/125689/1 "2008-01-11T06:17:01Z")

</div>

\<%=javascript\_include\_tag :defaults %\>

- show 

 //something here 

* * *

now if i click show link then the div “show” is shown  
at now if i click refresh button then its not shown

what should i do to show div “show” after refreshing.

any idea or is there any plugin ?

pls help.

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [January 11, 2008, 10:35am UTC](https://www.ruby-forum.com/t/div-problem/125689/2 "2008-01-11T10:35:19Z")

</div>

> now if i click show link then the div “show” is shown  
> at now if i click refresh button then its not shown
> 
> what should i do to show div “show” after refreshing.
> 
> any idea or is there any plugin ?
> 
> pls help.

if it is decided that the div is shown / not shown per user basis, it  
calls for a session implementation

session[‘shown’] or whatever

although there may be some cheaper trick.

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [January 11, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/div-problem/125689/3 "2008-01-11T15:16:12Z")

</div>

Shai R. wrote:

> if it is decided that the div is shown / not shown per user basis, it  
> calls for a session implementation
> 
> session[‘shown’] or whatever
> 
> although there may be some cheaper trick.

how to manage that ?  
is it Rails session or any other ?

can you show a simple example solution ?\

thank you
