# Conditions in show.rthml?

**URL:** <https://www.ruby-forum.com/t/conditions-in-show-rthml/146165>\
**Category:** Rails\
**Created:** [August 18, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/conditions-in-show-rthml/146165 "2008-08-18T17:20:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [August 18, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/conditions-in-show-rthml/146165/1 "2008-08-18T17:20:34Z")

</div>

Hi,

newbie-question:

i have a show.rhtml which generates the continents of the world…in  
addition i want show an image map based on the continent. This  
image-map(html) is coded in the view-template.

if?  
[http://domein.com/werelddeel/europa](http://domein.com/werelddeel/europa)  
(logfile \> SELECT \* FROM `werelddelen` WHERE  
(`werelddelen`.`werelddeel_id` = 4)

![]()

if?  
[http://domein.com/werelddeel/azia](http://domein.com/werelddeel/azia)  
(logfile \> SELECT \* FROM `werelddelen` WHERE  
(`werelddelen`.`werelddeel_id` = 3)

![]()

ect…

Question: wich conditions must i use…to show the correct imagemap based  
on the url…

Grtz…remco

---

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [August 18, 2008, 8:09pm UTC](https://www.ruby-forum.com/t/conditions-in-show-rthml/146165/2 "2008-08-18T20:09:40Z")

</div>

Try inspecting params[:action].

On Aug 18, 9:20 am, Remco S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
