I am trying to create a Facebook iFrame app. The app should first show an image and if the user likes the page, he will get access to some content.  I use RoR, therefore I can't use the Facebook PhP SDK.  Here is my iFrame HTML when the user ha...
Is there any way to use a Rails helper method, more specifically, a path helper method within a javascript asset file. This file foo.js.coffee.erb  $('#bar').val("<%= create_post_path %>")   I would love it if I could get from...
I am trying to get jquery-ui datepicker to work with highcharts so that a user can select a date an example being   A user selects 10th October  to 25th October   Once the user has selected the dates the highchart should redraw and show the hours for...
I'm making chaining selects with backbone.js by this article http://blog.shinetech.com/2011/07/25/cascading-select-boxes-with-backbone-js/, but got errors, when extending classes.  So, i have LocationsView class:  class Blog.Views.LocationsView e...
I have a form which submit a form via AJAX with :remote => true. Looking at the server log and FireBug, I get the response 200 OK and it returns JSON in the form of:  { "email": "[email protected]"}   then I have these two handlers:  $...
I've looked at this which seems to have no effect on my code. I've tried this which seems to only affect the first checkbox, but doesn't uncheck the checkbox when i click it again anyway.... I've also seen some other ways of doing it...
I have a Rails 3.2.14 app which collects call data.  The new and edit action form is pretty long on one page.  I'm looking to implement a multistep form that uses JS/client side processing to move along the steps.  I've looked at the Wicked G...
If it is possible, how can I run it from another js.erb-file?  Trying to keep things DRY!  EDIT:  Explanation: I have a js.erb routine in search/index.js.erb. I want to use the same routine in location/index.js.erb. Therefore I wondered if I could ma...
I am practicing this RoR tutorial project of Michael Hartl: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book  I am using Ruby 1.9.2 and Rails 3.1 on Ubuntu 11.04 with Apache and MySQL.  I am here now: http://ruby.railstutorial.org/chapters/u...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.