Nobu

San Francisco

twitter.com/nobuf

2d
awarded Revival
May
19
revised How to get the first field from an anonymous row type in PostgreSQL 9.4?
edited body
May
19
asked How to get the first field from an anonymous row type in PostgreSQL 9.4?
Apr
28
awarded Nice Answer
Apr
21
answered head command to skip last few lines of file on MAC OSX
Mar
19
awarded Yearling
Mar
19
awarded Yearling
Feb
27
comment Capybara: How do I fill in a input field by its ID
A tricky part to me was that # mark shouldn't be included.
Feb
10
comment Rails 3, PaperTrail and Whodunnit User Instance
On v4.0.0.beta2 of paper_trail, has_paper_trail :class_name => 'Version' works without a comma after has_paper_trail.
Feb
9
revised Is there a way to set up simple http authentication for an app on heroku?
fixed indent
Feb
9
awarded Necromancer
Feb
8
reviewed Approve suggested edit on makefile executable permission denied
Feb
6
comment How to unzip files in a Heroku Buildpack
If you want to specify an output directory mkdir /tmp/target; cd /tmp/target does the job. jar has an option -C but seems not working for extracting. As a side note, rake can't run cd you need to use Dir.chdir.
Feb
5
comment How to write factorygirl for table that have fields containing ruby keyword?
This format works with a field with space: add_attribute 'Start Time', 'value'
Feb
3
awarded Populist
Jan
29
answered User.invite! not sending email in tests
Jan
27
comment ActiveRecord::StatementInvalid: PG InFailedSqlTransaction
I had the same issue on test environment (rspec throws the error). rake db:drop + rake db:create + rake db:migrate solved the issue. Maybe I messed up with migration.
Jan
26
answered Converting Rails model to SQL insert Query?
Jan
21
answered Can typeahead.js make cross domain requests?
Jan
21
revised how can I disable everything inside a form using javascript/jquery?
.prop is preferred to retrieve property values. And, I thought using actual attribute name would have less confusions.
1 2 3 4 5