1 2 3 4
if @events != nil @events.each do |event| if @recurrents != nil ...
1 2 3
<%= link_to image_tag("go_back.png"), user_path(@user) %><%= link_to 'Go Back', user_path(@user) %>
Ruby link_to with an image_tag a...
by ttdavett.myopenid.com,
August 06, 2008 08:10,
6 refactorings, tagged with link_to rails ruby image_tag
I have two links side by si...
1 2 3 4
event_times = events.collect { |event| event.date.strftime("%I:%M %p") } times.each do |time| ...
Ruby On two for loops cleanup?
by ttdavett.myopenid.com,
August 01, 2008 08:50
This code doesnt seem to wo...
Ruby On two for loops cleanup?
by ttdavett.myopenid.com,
July 31, 2008 04:27
This does not work, the da...
1 2 3 4
times.each do |time| events.each do |event| if time.strftime("%I:%M %p") == event.datetime.strftime("%I:%M %p") ...
Ruby two for loops cleanup?
times is an array of dateti...
I'm pretty sure theres a be...