1 2 3 4
require 'net/http' require 'rubygems' require 'xmlsimple' ...
Ruby Parsing XML from a Web Service
I'm working with a web serv...
1 2 3 4
@week_endings ||= Actual.get_week_endings(4.weeks.ago.to_date) 6.times do |p| actual = Actual.new ...
Ruby Appending future dates to t...
Line 1 I'm grabbing the mos...
Ruby On Simple model methods to ret...
by mwilliams,
March 05, 2008 23:23
Ahh that's exactly the kind...
Ruby On Simple model methods to ret...
by mwilliams,
March 03, 2008 23:07
Doh, I don't know why I'm n...
1 2 3 4
def self.get_budgeted_hours(charge, rollup) @value = find(:first, :conditions => ["charge_id = ? AND rollup_id = ?", charge, rollup]) @value ? @value.budgeted_hours : 0.to_s ...
Ruby Simple model methods to ret...
by mwilliams,
March 03, 2008 19:31,
51 refactorings, tagged with ruby rails model activerecord kiss dry
I've got a variety of metho...
1 2 3
<%for date in @week_endings %> <td class="chargeBody"><%=@results[result].fetch(date.week_ending.to_s,'0').to_s%></td> <%end%>
Ruby On Iterating through a nested ...
by mwilliams,
February 05, 2008 19:35
Refactoring from my co-work...
1 2 3 4
<table class="charge"> <tr> <td colspan="100%" class="mainHeader"><%=@label.label%></td> ...
Ruby Iterating through a nested ...
by mwilliams,
January 31, 2008 18:21,
2 refactorings, tagged with rails, view, table, hash, nested hash, iterator, iterate, ruby, Ruby on Rails
Good afternoon. I have a n...
Well, it works, but my fami...