Sha256: ca01aa5a1fccbd6e4bae21ff6f2c8fa11504f0faf7eb7fb9a0e95390e9e2f4a0

Contents?: true

Size: 191 Bytes

Versions: 5

Compression:

Stored size: 191 Bytes

Contents

class HarksController < ApplicationController
  def index
    Hark.create(:tidings => "Joy!") if Hark.count == 0
    render :text => Hark.find(:all).map{ |h| h.attributes }.to_yaml
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
technomancy-harker-0.0.3 test/sample/app/controllers/harks_controller.rb
technomancy-harker-0.5.0 test/sample/app/controllers/harks_controller.rb
technomancy-harker-0.5.1 test/sample/app/controllers/harks_controller.rb
technomancy-harker-0.5.2 test/sample/app/controllers/harks_controller.rb
harker-0.5.3 test/sample/app/controllers/harks_controller.rb