0
votes
0answers
10 views

Carousel Next with a Back to Top Feature

I have added Bootstrap Carousel and a Back to Top Button to my rails app. Everything works perfect. Is there anyway in which I can combine Bootstraps Carousel's Next Button with my Back to Top ...
0
votes
2answers
43 views

Rails update model without leaving page

What would be the best way to update a record and display a flash success notice without leaving the page? Here is part of my code but it redirects back to root path: View <%= form_for ...
-6
votes
1answer
67 views

Days of week office hours to sentence algorithm [on hold]

Say I have the days of the week in an array: weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] A user can pick one or more days. Based on the user's ...
2
votes
2answers
69 views

Rails 4 Turbolinks make form submit multiple times

I use some code working nicely on Rails 3 but not on Rails 4, I guess it is caused by Turbolinks but I don't know much about it, can't dig more deep to solve my problem, here is the code: view: ...
0
votes
1answer
54 views
+300

Eager load HTML/erb templates in Rails for AngularJS

I'm following the thread on http://minhajuddin.com/2013/04/28/angularjs-templates-and-rails-with-eager-loading for eager loading HAML templates. Seems like it's a reasonable way of ensuring Angular ...
0
votes
2answers
40 views

decrypt using cryptojs not working

I m trying to send a encrypted data via json to client and decrypt it in client using cryptojs My ROR code def getkey aes = OpenSSL::Cipher::Cipher.new('AES-128-CBC') aes.encrypt key = ...
2
votes
2answers
47 views

Rails: Form partial not clearing/reloading after AJAX submission

I am trying to create a one page/view application. I have a form I submit that creates a simple tweet object: _form.html.erb <div id="schedule-tweet-form"> <%= simple_form_for @tweet, ...
1
vote
0answers
25 views

Double Saving after AJAX-Call

i have a weird problem by saving a record with AJAX and Rails. I want to save a record by using drag'n drop with jQuery Sortable (http://jqueryui.com/sortable/#connect-lists). The saving is working ...
1
vote
4answers
59 views

Capturing variables in Ruby methods

In CoffeeScript: f = -> v = 5 g = -> v g() f() # returns 5 as expected In Ruby: def f v = 5 def g v # undefined local variable or method `v' for main:Object (NameError) ...
0
votes
1answer
28 views

Execute JavaScript on partial render

I have some JavaScript code that I'd like to execute after a user clicks one of their folders -- it triggers the show action and show.js.erb, which renders the partial. Show.js.erb, which is ...
0
votes
2answers
32 views

Rails / Unobtrusive Javascript - link_to_remote :update

After looking around (a lot) I've dug through numerous posts on the subject, but I'm really confused since this issue seems to mainly have been addressed a while back (when the change happened) and ...
0
votes
2answers
56 views

Preview form button in another view

I have a form where user enters some information (text boxes, select box). Inside the form I have a link_to "Preview" where users can preview what they did without saving it. They can preview it in ...
1
vote
3answers
45 views

using json data from localhost in js file using ruby

I'm creating a web app that uses MONGOHQ to store data, and that uses Sinatra to run the app. If I go to: localhost:4578/names.json, I get the names of all the names that I use for my data. However, ...
0
votes
0answers
10 views

Uservoice Widget for Rails 3 App

I'm having trouble displaying the Uservoice widget on my page. I copied the javascript code from the Uservoice admin, converted it to HAML then pasted on to my app: layouts/_uservoice.html.haml ...
-1
votes
1answer
50 views

Soon to get my paws on a £150 Amazon voucher, which programming books do you recommend? [closed]

I'm looking to invest my £150 in programming related books, and I'm curious as to what people recommend. I am: Predominantly a front-end JavaScript developer with Angular/Ember; Strong PHP ...

1 2 3 4 5 81
15 30 50 per page