Skip to content

Instantly share code, notes, and snippets.

@coderforhire
Created December 8, 2011 16:50
Show Gist options
  • Save coderforhire/1447566 to your computer and use it in GitHub Desktop.
Save coderforhire/1447566 to your computer and use it in GitHub Desktop.
appliance = Appliance.new(:venue => "m1234", :ip_address => "123.123.123.123", :last_login => "123545")
=> #<Appliance id: nil, venue: nil, ip_address: nil, last_login: nil, created_at: nil, updated_at: nil>
class Appliance < ActiveRecord::Base
attr_accessible :venue, :ip_address, :last_login
end
~
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment