Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
17 views

Problema with bootstrapDualListbox and ajax

I have the following: html: <div id="modal-form" class="modal fade" tabindex="-1" aria-hidden="true" style="z-index: 0;"> <div class="...
Javier Mejías's user avatar
0 votes
1 answer
95 views

i can't render partial js from controller rails 7

I've created my_portfolio.html.erb with form submission to controller with remote: true , the controller take the params and verification everything work fine with condition and code, but it's can't ...
LAX's user avatar
  • 3
0 votes
0 answers
43 views

Why I see ajax response instead of view in my RAILS 5 app

I have button which submit login form. This button generate POST request for my session controller Started POST "/login" for 127.0.0.1 at 2024-04-03 10:49:13 +0300 Processing by ...
Anderson's user avatar
  • 125
0 votes
0 answers
22 views

How do I write a rails 6 `form_with` block to make a JSON call?

Here's the code: <%= form_with(url: invitations_path, remote: true, 'data-type' => 'json') do |f| %> <%= hidden_field_tag :from, user_id %> <%= hidden_field_tag :to, secret_crush_id %...
Eric's user avatar
  • 2,235
0 votes
1 answer
28 views

Rails Cancancan Ajax custom action not working

I have a Rails App to which I added Devise and Cancancan to authentication and authorization. Before that, the actio worked correctly, now in the console browser I see a redirect to the home. I call ...
Alfredo's user avatar
  • 116
0 votes
2 answers
131 views

Rails Error: ActionController::UnknownFormat is missing a template for this request format and variant

I have a form in index page and I want that the action will be executed by Ajax, to display the result in the Index page. This is my form in the index Page: <%= form_with model: @shopping, :...
Alfredo's user avatar
  • 116
0 votes
1 answer
77 views

FullCalendar implementation in Rails

I am implementing FullCalendar in a RoR project and I got this error when I try to update a row : PATCH http://127.0.0.1:3000/events 404 (Not Found) Here is the Ajax call to update a row when I ...
userHG's user avatar
  • 589
1 vote
1 answer
77 views

Unprocessable entity in Ajax

I need to make an ajax request to change the "status" parameter of my "task" object. the script, that's right, i can get the id of the task and the new status, that's all i need. ...
Alex Nunes's user avatar
0 votes
0 answers
39 views

ruby POS system. AJAX Adding an item executes twice

I'm kinda still new to web development and just started working on a POS system as a fun little project. I'm struggling really hard with my items page, I basically need all crud to be done on one page ...
Mike Barrett's user avatar
-1 votes
2 answers
35 views

In Rails applications, how do we deal with the DOM that appears dynamically?

So as you all know that 1 trick of JS is that let's say for example we bind a click event for all buttons on this page: $(".btn").click(...) <button class='btn'>A</button> <...
Invincible_Pain's user avatar
0 votes
0 answers
71 views

Create a form dynamically based on the elements of json data

In my rails app. I have a new.html.erb with the contents below <div class="container align-items-center"> <br> <br> <div class="col-sm-9"> <...
Hakeem Baba's user avatar
0 votes
2 answers
23 views

Rending partial from Ajax response is not updating variable

I have a Rails partial I am attempting to populate and display based on a Ajax response but it seems the instance variable is not being updated. I know I'm missing something. It might be due to the ...
Jeremy Thomas's user avatar
2 votes
1 answer
70 views

Display the price of a coin after selecting its name in select

I use slim-select in which you can select the name of the coin, how to display its price after selecting the name (the price is in the database, i can find it by the name that is selected in the ...
Taras Rogulya's user avatar
1 vote
1 answer
44 views

Fetch not including Cookies despite correctly configured options and CORS

I have an backend server -- https://b.com -- and a client server -- https://a.com. I want to issue authenticated ajax requests from a.com to b.com. Before the request is issued, the user will go to b....
Vitor Pereira's user avatar
0 votes
1 answer
716 views

Understanding how to use Turbo with Ruby on Rails

I am trying to understand how to use Turbo in order to refresh the content of the page without having to refresh the page. I have gone through some videos and web tutorials, but it doesn't apply to ...
djFuz's user avatar
  • 25

15 30 50 per page
1
2 3 4 5
441