Tag Archives: rails

AJAX Responses in JSON with Rails 2.1

In a recent task on my current project I was working on an ajax feature where i needed the response to be JSON. In my controller I was using the following to return the data in json format. However, in firebug it kept showing the response as text, not json. (Prototype 1.6.0 FWIW)
format.js { render [...]

Posted in ajax, ruby/rails | Also tagged , , , | Leave a comment

Textmate - fix filetype recognition issues with RSpec and Rails bundles.

Over time i have collected several ruby related textmate bundles which i have enjoyed tweaking for easier usage. During this time I somehow managed to mangle my file type recognition settings. I first noticed this problem by losing the ability to use the shortcut keystroke to execute rspec tests.
The solution lies in this textmate blog [...]

Posted in software | Also tagged | 1 Comment
Copyright 2008 brightpoint | Powered by WordPress. Built on the Thematic Theme Framework.