+dropdown("select type",[
{text: "by month", url: 'javascript:change_chart(#{chart},'month')'},
{text: "by year", url: 'javascript:change_chart(#{chart},'year')'}
])
this is my snippet, i want to render the page with variables that server gives me. but not matter how, i couldn't make it.