Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ruby On Rails 3

Javascript Not Loading Due To Net::err_content_length_mismatch

I've got an app that runs fine locally, but barfs in production. (Classic problem, right?) In … Read more Javascript Not Loading Due To Net::err_content_length_mismatch

Rails: Dynamic Select On Multistep Form Not Keeping Selected

I am working on a multistep form for an order placement process following Ryan Bates's Multiste… Read more Rails: Dynamic Select On Multistep Form Not Keeping Selected

How Would I Go About Recording Changes In A Large Text Field?

Let's say I want a user to write a story in 20 minutes. After the user is done I want to play b… Read more How Would I Go About Recording Changes In A Large Text Field?

Rendering Haml File In A Javascript Response With Rails

I am trying to render a haml file in a javascript response like so: $('# .preview .mail_conten… Read more Rendering Haml File In A Javascript Response With Rails

Back Button In Browser Not Working Properly After Using Pushstate (in Chrome)

I am using this type of line in an JS response if (history && history.pushState){ hist… Read more Back Button In Browser Not Working Properly After Using Pushstate (in Chrome)

Handling Jsonp In Rails 3 Controller

I want my controller action to handle jsonp requests from jquery $.getJSON. In my controller action… Read more Handling Jsonp In Rails 3 Controller

Backbone.js - Coffeescript Extends

I'm making chaining selects with backbone.js by this article http://blog.shinetech.com/2011/07/… Read more Backbone.js - Coffeescript Extends

Rendering A Background Using Bigvideo.js Within A Rails Application

I have the following implementation of bigvideo.js functioning perfectly outside of my Rails projec… Read more Rendering A Background Using Bigvideo.js Within A Rails Application

How Can I Use Javascript To Get The Local Time In A Rails Form?

I'm using the local_time gem to show dates in users local times and it works well for dates alr… Read more How Can I Use Javascript To Get The Local Time In A Rails Form?

Js + Rails - Can't Get This Form Working

I adapted this js from this SO question, but I've never used js before and not sure what I'… Read more Js + Rails - Can't Get This Form Working

Using Controller Set Variables In Conditional .js.erb File

I have a controller with an action that is being hit remotely, after which my controller_action.js.… Read more Using Controller Set Variables In Conditional .js.erb File

Mongodb: Pulling Multiple Random Documents From A Collection

I need to pull multiple random documents from a collection in MongoDB. I don't want to ad a new… Read more Mongodb: Pulling Multiple Random Documents From A Collection

Register Onclick Events From Dynamically Created Div Array? Rails + Jquery?

After failing to achieve this with link_to remote, I decided to try jQuery way. Here is the jQuery… Read more Register Onclick Events From Dynamically Created Div Array? Rails + Jquery?

Configuring Google Annotated Timeline

I have a working Google Annotated Timeline (see docs at http://code.google.com/apis/chart/interacti… Read more Configuring Google Annotated Timeline

Javascript Not Running On Heroku With Rails 3.1

I've migrated a rails 3.0 app to 3.1 on Heroku. It's running on the cedar stack and everyth… Read more Javascript Not Running On Heroku With Rails 3.1

Passing JavaScript Variable To Ruby-on-rails Controller

How can I pass a variable (id) from the JavaScript listener: Gmaps.map.callback = function() { … Read more Passing JavaScript Variable To Ruby-on-rails Controller

Rendering A Background Using Bigvideo.js Within A Rails Application

I have the following implementation of bigvideo.js functioning perfectly outside of my Rails projec… Read more Rendering A Background Using Bigvideo.js Within A Rails Application

Javascript Not Running On Heroku With Rails 3.1

I've migrated a rails 3.0 app to 3.1 on Heroku. It's running on the cedar stack and everyth… Read more Javascript Not Running On Heroku With Rails 3.1

MongoDB: Pulling Multiple Random Documents From A Collection

I need to pull multiple random documents from a collection in MongoDB. I don't want to ad a new… Read more MongoDB: Pulling Multiple Random Documents From A Collection