Question : Doing a date loop in rails with step

Hi, apologies for a newbie question...

I'm trying to loop through 2 dates ...

so ..

<% start_date.until(end_date) do |dates| %>
<%= dates %>
<% end -%>

It prints out each date till the end_date which is fine but I'd like to do the following with the loop.

<%= link_to 'Details for ' + @month.to_s + '/' + @year.to_s , :action=>'details', :year=>@year, :month=>@month %>

Can someone direct me the right way.

Thank you.

Answer : Doing a date loop in rails with step

My CSS is pitiful. Can you use a span instead of a div?  Maybe it being a block level element has something to do with that?
Random Solutions  
 
programming4us programming4us