# More help with eruby

**URL:** <https://www.ruby-forum.com/t/more-help-with-eruby/86782>\
**Category:** Ruby\
**Created:** [February 25, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/more-help-with-eruby/86782 "2007-02-25T21:28:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@peter](https://www.ruby-forum.com/u/peter)\
**Post date:** [February 25, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/more-help-with-eruby/86782/1 "2007-02-25T21:28:11Z")

</div>

Hi list  
I really hate to ask for help and it seems that the simplest things are  
stumping me ☹

I’m trying to create a dynamic menu where a var is passed to expose the  
next section based on the link used like my example below. My question  
is what do I use to capture the y variable?

- 2006
- 2007

\<%  
year = ???  
if year == 2006  
printf “

- \<a href=”/2006/?s=help"\>Help
- \<a href=  
“/2006/?s=upload”\>Upload
- \<a href="?/2006/s=download  
“\>Download
”

elsif year == 2007  
printf “

- \<a href=”/2007/?s=help"\>Help
- \<a href=  
“/2007/?s=upload”\>Upload
- \<a href="/2007/?s=download  
“\>Download
”  
end  
%\>

Thanks in advance for any help you can provide.

Peter
