Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

Was there a change in how JQuery 3 and Jquery 1 handled remote form errors on Rails? In the past, (Rails 6, Zurb Foundation, Jquery 1), the code below would work. A user would submit a form, they'd ...
1 vote
0 answers
93 views

Bugsnag is reporting this error on many pages: "If you load both jquery_ujs and rails-ujs, use rails-ujs only" Rails 6.1.3, with webpacker. application.js: // //= require rails-ujs //= ...
0 votes
1 answer
38 views

It looks trivial, but rails cannot parse this .js.erb file properly: $('.username-content').fadeOut('slow', function() { var div = $("\ <div class='username-content'>\ <%= t('...
Seto's user avatar
  • 1,722
0 votes
1 answer
2k views

I've just upgraded my Rails 6 app to Rails 7, and now my Javascript and ActionCable aren't working. After a bit of googling, I now know that this is because my app is set up to use sprockets with the ...
0 votes
0 answers
126 views

jQuery and ujs work fine in the development environment, but are not working in production environment. This is what my code looks like: application.html.erb <html> <head> <%= ...
1 vote
1 answer
2k views

I am starting a new Rails 7 app and recently found out that we can't use ujs anymore :( I found a plugin called mrujs which is working correctly to send my forms remotely to the server. I am also ...
3 votes
0 answers
2k views

I'm confused as to exactly what I need to do to run my old jQuery snippets and Rails UJS along with Turbo. DHH added this PR in June that was supposed to improve compatibility, but it lacks details on ...
0 votes
1 answer
60 views

The following view has a div for receiving a rails ujs action result <div class='grid-x grid-padding-x'> <div class='cell small-12 text-center'> <div id="afamilis"> ...
Jerome's user avatar
  • 6,357
1 vote
2 answers
634 views

I am trying to upgrade a Rails 5.1.7 application to 5.2.0. Some forms on the site were broken by the upgrade. The template for the form looks like this: <%= form_with model: record, url: ...
0 votes
0 answers
267 views

I have a problem where, when I upgraded to Rails 5.1, one of my forms does not work. Specifically, if I click on the submit button, it gets disabled and the form does not submit. I think the issue is ...
0 votes
1 answer
450 views

I am trying to apply this rails tutorial to my project. I made create action works. I added some validation to my model file. Now, problem comes here. When i submit entry form, rails must give errors. ...
0 votes
0 answers
80 views

I've added a realtime chat to my rails application using only vanilla javascript. I've included it below. I'm just wondering, are there any security issues just looking at the code I've provided? I'm ...
1 vote
1 answer
429 views

I have a simple Rails ujs app, with some remote links on the page. <%= link_to 'Test', posts_path, remote: true, id: 'test' %> In my js template, I replace this link with new one. $('#test')....
1 vote
2 answers
1k views

I have a partial that is being rendered with the CommentsController. Lets call this partial _edit_comment.html.haml where I'm passing in the instance variable @comment. $("#edit-comment-#{object....
Nigel's user avatar
  • 1,027
1 vote
2 answers
1k views

I have a form with two input text fields. The datalist for the second field needs to be populated when the first field has a value. I have everything working as I want except I can't work out how to ...

15 30 50 per page
1
2 3 4 5
...
19

AltStyle によって変換されたページ (->オリジナル) /