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...
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...
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...
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...
I'm using Rails 3.1 and Backbone with the backbone-rails gem. The views are jst.ejs  Is there any way I can use HAML in the views? Are those views precompiled in production environment?...
For a Rails 3.1 app, some of my site wide JavaScript is only included when certain real time, instance specific conditions are met. This means I can't put it in the new asset pipeline's application.js because that isn't parsed by erb for...
Is it possible to call controller method from a javascript? I mean it's not from view(html.erb) also not from js.erb. I want to call method from .js file, which in public folder. Thank you...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.