Forum: Ruby on Rails Markaby problem, in need of help

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris (Guest)
on 2006-04-05 15:14
Hi, i've just started using Markaby and I think it's great but I have a
problem.  How would i recreate the following:

<select id="timesheet_state" name ="timesheet_state">
    <option value="" <%if @timesheet_state==nil%>
                        <% end %>>[All States]</option>
    <option value="2" <%if @timesheet_state.to_i==2%>

Any help appreciated,
This topic is locked and can not be replied to.