Tagged Questions
0
votes
2answers
40 views
Undefined ruby object in javascript
I'm trying to do something ONLY if a variable DOES exist (the variable's name is @filter), the problem is I can't seem to figure out how to get the code to work. I keep getting
undefined method ...
0
votes
1answer
18 views
rhtml to template for javascript
I'm working on a project with an old version of rails (1.2.6) and no javascript templating system. I want to render the same HTML on the server (e.g. in an rhtml view) and also on the client (e.g. ...
0
votes
2answers
41 views
Dynamic javascript div id in nested form
I have a nested form, which is loaded by add more button, In the nested form I have radio button. According to the radio button, a javascript function is called to hide or show a div. But for more ...
0
votes
1answer
49 views
heroku deployment error ruby on rails
I'm using ruby on rails 3.2 and added a jquery based calendar, i worked until I added this calendar. I don't understand whats the problem. The error is the typical: We're sorry, but something went ...
4
votes
1answer
38 views
Does Javascript have a BasicObject similar to Ruby?
In Ruby, in order to get the absolute cleanest inheritance chain, you can inherit from BasicObject instead of Object. This way you don't have an object with methods you don't necessarily want (the ...
-3
votes
0answers
39 views
Communication between cheap usb finger print scanner & Web App. Programming languages for the job? [closed]
So, i came with a start up idea, but in order to make it happen, i need to make a web app communicate with any finger print usb scanner - those that you can buy anywere.
It must take the scanned ...
0
votes
0answers
12 views
Download file to the server using webpage UI
I have a local server and I want to download huge files with it because it is running all day round. So I'm doing the routines like logging on to the server via SSH, use wget, and download the file ...
2
votes
2answers
63 views
How can I evaluate Ruby on the server side of a NodeJS app?
I'm diving into NodeJS to build an app on Heroku to help teach my students about various aspects of a few different programming languages. Currently, the app can safely evaluate Javascript using the ...
0
votes
0answers
40 views
Endless scrolling will_paginate is not working in ruby on rails
I am following this railcasts to integrate endless scrolling in my rails application. Here i am doing like this..
static_pages_controller.rb --
def home
@posts = Post.paginate(page: ...
0
votes
1answer
11 views
Ajaxifying vote creation which “POSTs” through member route
I have a polymorphic vote model which is called via a member route "POST" on 3 different models. In each of the parent models below (routes.rb), I have a vote method in each of the corresponding ...
0
votes
0answers
23 views
How can I write a file in ISO-8859-1 with Chrome's File API
At the moment I am writing a file like this:
var blob = new Blob([contents], {type: 'text/plain;charset=iso-8859-1'});
fileWriter.write(blob);
However, when I run file -i on the resulting file the ...
-9
votes
0answers
48 views
BootCamp vs. BootCamp - Products on Display - [closed]
There are about 20-30 Code Bootcamps in the country.
JavaScript vs. Ruby on Rails vs. Python
Sinatra
Rails
Python
Ruby
JavaScript
The creation of the final product, how fast, how involved would be ...
0
votes
2answers
28 views
Retrieving value using get() with coffeescript and Ruby on Rails
I'm trying to create code that will retrieve a value from another page and put it into a textbox.
However, the value is returning [object Object]
The page that i'm trying to get a value from is just ...
1
vote
0answers
16 views
How to embed googlebooks search api in view?
I have a code GoogleBooks.search('The Great Gatsby') of this gem that I can work out from command-line. But how do I make search possible from a textfield in view?. One way I know is having a ...
0
votes
1answer
29 views
Ajaxified Average-Rating Bar won't reload in Rails
I'm working on a Ruby on Rails Application with a Rating System. The Rating is working fine so far. I also ajaxified it and it works. I also wanted to display the current Rating average in a Bar which ...