Article:
  Rolling with Ruby on Rails, Part 2
Subject:   how to update date?
Date:   2006-04-14 10:38:44
From:   Arican
I wrote edit.rhtml but I have problems
updating the date. I want to show the
stored year by <option value="<%=@recipe[date(3i)]%>" selected="selected"><%=@recipe[date(3i)]%></option>
however it "doesn't like" the (3i). When I write recipe.date it works but shows the entire date in one pull down. Can anybody help me?
thanks