Skip to content

Michi Kono

Stuff only Michi cares to read

Categories

  • business (179)
    • News (128)
  • geeky (47)
  • life (31)
  • Startup-ing (5)

Recent Posts

  • In Depth Tutorial on Writing a Slackbot
  • The Most Interesting Fact About the Apple Watch
  • Avoiding the Mentality of Hiring “Rock Stars”
  • PSA: Stop Releasing Hobby Bitcoin (or similar) Projects for Your Own Good
  • Adding BasicAuth to the Kue Dashboard in an Express App
  • Capybara error: undefined method `node_name’ for nil:NilClass
  • Format Date into yyyy-mm-dd hh:ii:ss Format in JavaScript
  • How Amazing Features Can be a Waste of Time
  • Facebook is okay with hurting their developers
  • Three Analogies for Pitching Your Startup Right

Calendar

February 2013
S M T W T F S
« Oct   Aug »
 12
3456789
10111213141516
17181920212223
2425262728  

Tags

  • annoyinggoogle
  • autocast
  • backbonejs
  • bug
  • bugs
  • business
  • coding standards
  • coffeescript
  • digg
  • dumb ideas
  • entertainment
  • facebook
  • funny
  • geeky
  • google
  • hiring
  • htaccess
  • java
  • javascript
  • jobs
  • joke
  • libraries
  • life
  • management
  • memcached
  • minifier
  • MySQL
  • news
  • node
  • obfuscation
  • off-beat
  • oop
  • oracle
  • PHP
  • pitching
  • Politics
  • predictions
  • programming
  • random code
  • ruby
  • salary
  • security
  • structure
  • typecasting
  • wordpress

Month: February 2013

Capybara error: undefined method `node_name’ for nil:NilClass

When trying to use click_button on a button in a form, if you get this error:

undefined method `node_name' for nil:NilClass

Check that the button is inside a form. As in, the following code will cause this error:

HTML:

<form></form>
<input type="submit" value="save" />

Capybara:

click_button "save"

Moving the button to the inside of the form will fix the issue.

Posted on February 21, 2013August 5, 2015Categories geekyTags ruby

Format Date into yyyy-mm-dd hh:ii:ss Format in JavaScript

This is a recurring thing I have to deal with. Here’s the code:

Posted on February 10, 2013February 20, 2013Categories geekyTags javascript
Proudly powered by WordPress