Month: December 2012

  • WARN Could not determine content-length of response body – Ruby on Rails

    Hey everyone I was going through my development logs today and noticed that the following line was appearing everywhere: WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true While nothing appeared to be wrong, it made the logs a lot harder to read. A stackoverflow post…

  • Events Only Showing in Month View – FullCalendar

    Hey everyone, Ran into a bit of a problem with FullCalendar today after setting up a JSON feed. My events were only appearing in the month view. This StackOverflow post explains that this is due to the fact that the allDay property wasn’t set. Original JSON [ “0”, { “title”: “Test event”, “id”: “821”, “start”:…

  • The Name is Either Already Used or Reserved by Ruby on Rails

    Hey everyone, I ran into the following error while attempting to create a new model called calendar today: chris@chris-VirtualBox:~/calendar$ rails g model calendar invoke active_record The name ‘Calendar’ is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again. It turns out that this…

  • Refresh Folder Hotkey – Sublime Text 2

    Hey everyone, Just a quick post on how to setup a refresh hotkey in Sublime on Windows. All you have to do is the following: 1) Open sublime 2) Select Preferences from the top menu and then click “Key Bindings – Default” 3) Go to the end of the file and add a comma to…

  • FullCalendar Example with Client-Side Event Updates

    Hey everyone, I’ve been mucking around with FullCalendar recently and decided to share one of the prototypes I’ve ended up with. It basically lets the user change the events without having to do a postback. A user simply has to click the event, type in the changes and hit update. I’ve posted the code below,…

Create a website or blog at WordPress.com