All Questions
772 questions
0
votes
0
answers
610
views
A single `remote: true` form tag will not generate requests as type: `js` in my rails app
Basically I can't get a form with remote: true to submit as an xhr request.
It's been a long time since I've worked with a html.erb and js.erb based front end so I'm probably doing something dumb here
...
0
votes
2
answers
65
views
How to remove surrounding quotes (") while using <%= %> in Ruby on Rails?
I have a Rails application which has toinsert as column names of one of the tables that has a whole div element stored in it. I want to insert that element using jquery in HTML DOM to an element with ...
0
votes
0
answers
41
views
JS files not loading on all pages in Rails 4
I'm currently working on a project where I used an app that has been already built. I'm actually just upgrading that one. Now, the app has a lot of javascript files. Most of them are located in vendor/...
-1
votes
1
answer
32
views
Rails and JQuery-Load DB data into Textfields for save and delete
I have below data in database.My requirement-I have two options in dropdwon Get and Set. If i select Set option from dropdown , textfields along with checkbox needs to be created inside table ...
0
votes
1
answer
398
views
How to access a java script variable in render partial url of Rails ERB file?
I have below piece of code in results.js.erb of Rails application where I need to render the partial URL dynamically using the string interpolation concept. I was unable to interpolate selector value ...
0
votes
2
answers
54
views
I need help to solve relationship error and list options in a second select, according to the value entered in the first select
I need help to solve relationship error and list options in a second select, according to the value entered in the first select
In the browser console I have the following error when selecting the ...
-1
votes
1
answer
132
views
How to disable server side validation of nested form in rails
I have given server side validation of nested form. each of that having model and in that given server side validation.
But, main of that form of in model server side validation working of at the time ...
1
vote
0
answers
192
views
How to suppress Turbolinks response when using JQuery form submit with Rails?
Given a form that is being submitted with JQuery in CoffeeScript:
$('form').submit ->
$.ajax
url: $('form').attr('action')
type: 'POST'
data: $('form').serialize()
...
0
votes
1
answer
191
views
Rails 4 remote request callback issue with data-type JS
I'm having a issue on Rails 4.1.6, Ruby 2.3.0, JQuery 1.11.1 (jquery-rails 3.1.1, coffee-rails 4.0.1), I will make a simple example to explain my problem:
I have a view with a list of items that gets ...
0
votes
0
answers
30
views
Loading rails assets after page had loaded using jquery
I have a rails application that uses Rails templating and I usually return my data via the controller actions with @profile.
However, I have a page that I don't want to increase the page load for, ...
0
votes
1
answer
78
views
jquery ajax post request does not accept absolute url rails application
I am running a rails application and i have a jquery ajax post request
$.ajax({
url: 'http:127.0.0.1:8000/api/ags/request/',
method : 'POST',
data: paramsData,
...
0
votes
1
answer
514
views
opening an image in rails on click
I need to open an image on click listener
like this
and this should have close button also so that user can close it
i tried
<a class="need-help"><p>Need Help</p> <img ...
3
votes
1
answer
2k
views
'jquery-rails' and 'jquery-ui-rails' can they be managed under one project?
I have a Rails app using Rails 5.1.6 and ruby 2.3.5p376
I have these two gems in my Gemfile
gem 'jquery-rails', '~> 4.3.3'
gem 'jquery-ui-rails', '~> 6.0.1'
In show.html.erb I have the ...
1
vote
1
answer
40
views
How to edit check-boxes without losing existing values
I am building a job app with rails. In creating a new company, a user has the ability to select perks associated with the company in the "Company new page" through checkboxes. Ths works well until a ...
0
votes
0
answers
22
views
Rails 4 - File upload as per user subscriptions
I have a Rails app, where users can upload pictures and videos.Now i want the uploads to be controlled as per the plans/subscriptions selected by the users, as i am integrating it with CCAvenue ...