I'm trying to use the Mongoid / Devise Rails 3.1 template (Mongoid and Devise), and I keep getting an error stating ExecJS cannot find a JavaScript runtime.  Fair enough when I didn't have any installed, but I've tried installing Node.j...
I'm starting a new project in Rails, and it looks like the application.js manifest file is doing something funny with the javascripts that I reference - does it cache those files as part of the asset pipeline?  Here's what happened. I added a...
My website has been broken since Dreamhost upgraded their servers a couple of weeks ago. I have been tearing my hair out trying to get it fixed and made some progress but am stuck on what is hopefully the final issue.  I'm using Rails 3.1.1 on Ru...
Currently I have an each loop in the template for where the comments are display. Say a user has 50 comments to a micropost they have posted. A long list showing 50 comments will be displayed.  To save space on the page I've decided I'd like...
I'm tearing my hair out over this one:  I'm trying to use the Twitter Bootstrap modal (v.1, not 2) to post comments via AJAX, using the standard TB modal attributes for the div:  <div class="modal hide fade" id="commentModal...
Using coffeescript, jQuery, and sprockets in rails 3.1 the coffeescript files are compiled in to blocks like:  (function() {  var a;  var b;  var c;  foo = function() {    alert("foo");  }  bar = function() {   alert("bar");  }  }).ca...
My Basic Goal  A Rails app that can load new content via Ajax while using HTML5 to maintain the browser's history state. I have a super basic version of the app running on Heroku. I've also set up a public GitHub repository so that all the co...
Playing a little with coffeescript and Rails 3.1.0.rc4.  Have this code:  yourMom = (location) ->   console.log location  yourMom "wuz hur"   When the page loads, this outputs "wuz hur" properly.  But when I try to call  yourMom(&#...
We have an existing Rails 3.1 consumer-facing web app and are reworking the UI to be far more interactive, snappy, app-like.    We have a modestly complex data model, but there's only a modest need for form-based user input.    We use jQuery now...
I may just be doing something wrong but all of my javascript files as well as my css files are each individually available.  This would be perfect except asset pipeline also adds my applicaion.js which is making my javascript crash.  Is there a way t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.