Accessing vars within helpers in Markaby

I’ve been trying to figure out how to do this:

select_tag ‘site_id’,
:order=>‘name’), ‘id’, ‘name’, @site_id)

The select_tag gets output fine, but the default value
isn’t set. @site_id is set in the controller (@site_id
= cookies[:site_id]). In the Markaby template ‘text
@site_id’ shows the value does in fact exist. I
suspect it might be related to the @helpers issue, but
I’m not sure. Any idea how to make this work?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs