0
votes
0answers
19 views

EOF error javascript_include_tag Rails 4

I'm getting an error I can't seem to figure out the cause of: EOF Error end of file reached called from /app/views/layouts/application.html.erb, line 6: <%= javascript_include_tag ...
0
votes
1answer
22 views

Link to Rails partial in D3.js circles?

In my Rails app I have D3.js circles that are created dynamically from data in my Rails app. I'd like to hyperlink the circles so when you click on one, it loads a partial associated to the model that ...
0
votes
2answers
46 views

Rails Time Zone Mapping for browser detected Timezones

I am working on a application, which detects the browser's time zone and asks the user's to set the time zone to the browser detected values. So, I have populated, a select drop down which list all ...
0
votes
3answers
48 views

Updating Rails models through AJAX?

Let's assume that I have a Rails app in which users can write blog posts. After the user starts typing, an AJAX function is called which commits a POST request and saves the blog post. What I'd like ...
0
votes
1answer
41 views

RoR - Large file uploads in rails

I have a rails webapp that allows users to upload videos, where they are stored in an NFS-mounted directory. The current setup is fine for smaller files, but I need to support large file uploads as ...
1
vote
0answers
29 views

Ruby Base64 encoded picture does not display

I'm trying to display a Base64 encoded SVG image in a webpage. The image is encoded using str = Base64.encode64 '<svg> ... </svg>' and displayed using <img ...
0
votes
0answers
44 views

How to make web form appear after previous web form has data entered into it?

I'm looking to make a second web form appear after the first web form has something entered into it. I'm currently using a sinatra set up with slim as the templating engine, and pure javascript. ...
0
votes
2answers
45 views

Rails + Ajax: How to process a JS code after clicking on an element?

I am playing with FIlePicker, where are all requests made in Javascript. For example, for removing a file I have to call this snippet: console.log("Storing..."); filepicker.store("Test text", ...
-4
votes
0answers
40 views

Auto login to Apple developer website [closed]

I am trying to login to the developer site through PHP or some other auto login method but nothing has seemed to work. The website link is here: Apple Developer Login I have tried using curl with no ...
0
votes
1answer
38 views

Rails way to put localhost in include tags and javascript

I've set up a rails app with faye. It includes the following code parts: applications.html.haml: = javascript_include_tag "http://localhost:9292/faye.js" discussions.js: $(function() { var ...
3
votes
1answer
72 views

OpalRb with MeteorJS?

I have been intrigued by the power and elegance that Opal offers in the way of using pure Ruby vs CoffeeScript or, of course, JS. How would one go about leveraging Opal for Meteor as the primary ...
0
votes
1answer
63 views

Ruby On Rails: how can I render a partial inside a loop using js.haml?

I'm trying to render a partial for every object in array of hashes: My controller: @active, @not_active = @objects.partition{ |obj| obj['active'] == 'true' } My js.haml file: # this code works - ...
0
votes
1answer
37 views

how to specify the view or controller for running javascript 'document.ready'

I want to run javascript like bellow when the page is loaded. $ -> $.getJSON '/memos.json', (data) -> $.each( data ), (key,memo)-> $('#memos').append( "#{memo.title} ...
1
vote
3answers
54 views

Regex match count of characters that are separated by non-matching characters

I want to count characters, but they may be separated by characters that do not match. Here is an example. I want to match a text that has 10 or more word-characters. It may include spaces but i ...
6
votes
2answers
78 views

check box is not working in edit page

The select all check box is working well at the initial time. steps: 1.Consider I check some check boxes or check all check box , then saving the form 2.Editing the saved form shows nothing checked. ...

1 2 3 4 5 81
15 30 50 per page