From: Lauris Zaicevs Date: 2012-04-19T04:14:15+09:00 Subject: Date output after input is done Hello, i am a newbie on ruby! I wanted to know how can i output year, month and day after i input those values? Here is my code: <% @graffics.each do |gr| %> <% end %>
<%= gr.time.year %><%= gr.time.month %><%= gr.time.day %> <%= gr.name %>
This code return a default date - 2000.01.01 I hope you can help me, thank you! -- Posted via http://www.ruby-forum.com/.