```
<script type="text/javascript">

function openpopup(pop){
  var pop1=window.open(this.pop , "", "width="+(screen.width-10)+", height="+(screen.height-10)+",hotkeys=no,scrollbars=yes");

}
</script>

<a href ='#' onClick="javascript:openpopup(showLongMessage.this)">Show More </a>

```

IT gives the following error
No route matches "/undefined" with {:method=>:get}