This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d5dce00f (Pietro Giorgianni 2013-06-30 11:43:24 +0200 4) four |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Trying to create a data bag item foo bar with the following json via REST API: | |
{ | |
"id": "bar", | |
"key": "value", | |
"action": "remove" | |
} | |
// The POST succeeds, but then the content of the data bag item is: | |
{ | |
"id": "bar", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
source ~/.rvm/scripts/rvm | |
rvm use 1.9.2 | |
ruby -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GET /employees/new | |
# GET /employees/new.xml | |
def new | |
@employee = Employee.new | |
respond_to do |format| | |
format.html # new.html.erb | |
format.xml { render :xml => @employee } | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> source.last_build_date = Time.now | |
=> Sat Feb 20 14:17:23 +0100 2010 | |
>> source.save | |
=> true | |
>> rss.channel.lastBuildDate.class | |
=> Time | |
>> rss.channel.lastBuildDate | |
=> Sat Feb 20 09:51:17 +0100 2010 | |
>> source.last_build_date = rss.channel.lastBuildDate | |
=> Sat Feb 20 09:51:17 +0100 2010 |