Search Results for "how-to-delete-message-in-chatroom-that-belongs-to-current-user"
Lessons
Forum Threads
Action cable - How to delete message in chatroom that belongs to current user?
Lee Terng Gio
posted
1
Rails
Group Chat with ActionCable: Part 7 Discussion
Hey Chris just to let you know, document.hidden did not work for me, so i test documen.hasFocused() == true and it works just fine.
FX
replied
31
General
Dynamic nested forms with Stimulus *and* has_many :through relationship
I wanted to generate a pair of partials. My approach is prerhaps flawed, but I was generating the same "id" for both partials when doing the replace for "NEW_RECORD". The way I managed to get aro...
David McDonald
replied
•
Solved
5
General
How to add Notifications to Rails with Noticed Discussion
Can we use a PORO class to deliver ?
This is what I did
# app/models/new_email.rb
class NewEmail
attr_reader :params
def initialize(params)
@params = params.permit(:to, :subject, :body)
...
Guillaume Occuly
replied
35
General
In-App Navbar Notifications Discussion
This is exactly what I was looking for!! Thank you so much!!! I'd love to see how you integrate React to this feature too.
Ken Hibino
replied
56
General
Advanced Mailboxer: Multiple User Conversations Discussion
I love the insight that an out-of-date gem can be an opportunity to learn how to level up your skills. BTW, here's an update about mailboxer: someone has forked and has answered some of the pull ...
Carl Tanner
replied
19
General
How do I access files on server with a cron or similar ? (outside of app)
Awesome! Good to know about the cron jobs, and great to hear that it seems to be a pretty simple fix!I look forward to the "good news" update, fingers crossed! :)
Jacob Montgomery
replied
•
Solved
18
Rails
Validation Errors Not Showing in Views
I have an app where I got the CRUD functionality working and I added some AJAX to learn how to use it. I changed a class to use AJAX for the delete, edit and show views from the index view. That ...
Drew
replied
2
Rails
Rails for Beginners Part 14: Handling Sign Up Errors Discussion
For those who are using Rails 7:
Rails 7 has Hotwire enabled by default, and it will validate the response status code. For failed validation, the status code should be 422 (Unprocesssable entity)...
Michael
replied
40
General
Drag and Drop sortable lists with Rails & Stimulus JS Discussion
Is there anyway to reverse the index and position order? For example:
```
First div <%# index: 3, position: 3 %>
Second div <%# index: 2, position: 2 %>
Third div <%# index: 1, posi...
Reece Jones
replied
23
General
How to use Sweet Alert to replace standard confirm dialog
If you're using a Rails helper, you can do this:
<%= link_to path,
method: :delete,
data: {
confirm: "Confirmation message",
'confirm-button-text': 'Confirm',
'cancel-butt...
Sbstn
replied
10
General
Host sets website root to rails 6 public folder... why?
Hello.
My host service sets website root at my rails 6 app public folder.
This results in rendering the static public/index.html instead of root 'pages#index' each time i visit the website url.
If ...
Soppi
posted
1
Servers
Deploying Sidekiq To Heroku Discussion
Allright, thank you. I will do that once I add more migrations if the same problem occurs!Yes, I used the heroku run rake db:migrate, but I am guessing there were problems in the new migrations for...
W. Ama
replied
9
General
Using Active Storage to upload images not working.
Hey guys,
I could really use your assistance with my current app. I decided to add the active storage feature and followed the guide on how to set it up. I did a practice project first to test the...
Shan Siddiqui
posted
1
Rails
Migrating from Rails UJS to Hotwire: Data Method, Confirm, and Disable With Discussion
I exactly followed the example, but it doesn't work for me. The form is submitted but the button is not disabled and the text is not changing. Do I miss some JS magic? Any ideas?
Robert Reiz
replied
18
General