Ruby On Parsing XML from a Web Service

by mwilliams, May 21, 2008 11:26

Well, it works, but my fami...

4236ea6b84f4899b469e8edff4bf6d22 Talk
1
2
3
4
require 'net/http'
require 'rubygems'
require 'xmlsimple'
...

Ruby Parsing XML from a Web Service

by mwilliams, May 17, 2008 21:10, 3 refactorings, tagged with ruby, hash, xml, web, service

I'm working with a web serv...

4236ea6b84f4899b469e8edff4bf6d22 Talk
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...

by mwilliams, March 24, 2008 19:36, 2 refactorings, tagged with ruby dates mode kiss

Line 1 I'm grabbing the mos...

4236ea6b84f4899b469e8edff4bf6d22 Talk

Ruby On Simple model methods to ret...

by mwilliams, March 05, 2008 23:23

Ahh that's exactly the kind...

4236ea6b84f4899b469e8edff4bf6d22 Talk

Ruby On Simple model methods to ret...

by mwilliams, March 03, 2008 23:07

Doh, I don't know why I'm n...

4236ea6b84f4899b469e8edff4bf6d22 Talk
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...

4236ea6b84f4899b469e8edff4bf6d22 Talk
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...

4236ea6b84f4899b469e8edff4bf6d22 Talk
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...

4236ea6b84f4899b469e8edff4bf6d22 Talk