Search Results for "how-do-i-reorder-a-table-where-we-define-the-sort-order-explicitly"
Lessons
Forum Threads
video about sortable lists
21
Rails
Hi,
I'm not sure if this is the right place to post this issue, but I'm looking for a way in my Rails app to reorder items by drag and dropping.
I tried to implement the solution by Ryan Bates in...
Chris Oliver replied
Updating sort_index attr on a collection of models
9
Rails
Hey there!
I've got a collection of models (Product) and each product has an attribute called `sort_index` that allows the store owner to set a specific order for their products. The UI allows the...
Sean Washington replied
Solved
Datatables From Scratch Using Hotwire Discussion
32
General
fantastic thanks
David Krider replied
Nested attributes with collection_select not saving
11
General
In my edit form I simply cannot figure out why collection_select isn’t saving the various values when it's nested. It works fine if I use a {multiple: true} and pull it outside of the fields_for ev...
Sean M replied
How to complete a task via json using a check_box?
0
General
Hi guys,
I am new in this world of web development. I'm trying to mark a task as complete using a check_box, but I can't. Have you any ideas based on my code? Thank you in advance.
routes.rb
```
...
rodolfo posted
How do I design Rails apps for better performance and conversion?
3
General
I’m working on several Rails-based products where the backend is solid, but I’ve noticed performance and user flow issues impacting real user behavior (drop-offs, slow interactions, low engagement)...
Slope Rider replied
LearnHotwire Course - stuck with Could not find table 'solid_queue_processes'
3
Rails
Hi all,
I bought the Learn Hotwire course and stuck at the Rails Application Introduction (3rd video).
When I ran "rails s" at 1.29 minute of the video, I got this error
'ActiveRecord::Connectio...
How do I test different configurations which are set at Rails boot time?
1
Testing
I'm currently working on a fix related to an issue in spree commerce: https://github.com/spree/spree/issues/12231
To test the failing behavior before I apply my fix, I wrote a Rspec test like this...
Karla Lara replied
How do I implement john hancock gem into jumpstart
0
General
Hi Everyone.
I need document signing in my app, and want to implement john hancock. https://github.com/Brantron/john_hancock
I am lazy so I like to start with Chris's https://github.com/excid3/go...
Jeremy Bray posted
How to determine acceptable memory baseline for my application?
7
Rails
Hey everyone, I have a Rails app deployed on Render's "Starter" plan which only includes 512MB of memory. My Rails app is a very simple blog that doesn't do anything crazy (as far as I know) with r...
Adam Taylor replied
How do I dynamically update views when objects change
9
Rails
Hello,
I have objects called lockouts. I have several views where the users lockouts are listed or displayed. I want to update those views without having to refresh the page. So if an attribute of ...
LOLCONCEPTS replied
How do I disable testing in Jumpstart pro?
2
Testing
I am having a conflict with test data in jumpstart Pro. It continues to automatically add accounts that are conflicting with my other test data. I’m encountering an issue where Jumpstart Pro’s auto...
Chris Oliver replied
How do I access these submitted Stripe card parameters in my controller action?
0
Rails
I'm having a confusing issue with a checkout process I've created for an online shop (Rails 7.2.0, MYSQL database). I'm using the Stripe Gem to process payments. It is working fine but I need to us...
Tee posted
Noticed V2 is great! What am I missing on the issue of 'persisting clients subscription'
2
Gems / Libraries
I use the web_push strategy in Noticed V2 - and it's a kicker - my +1 on that, really!
But I must be doing something wrong b/c everytime a user logs into the app hem is requested (by the service-w...
Walther Diechmann replied
How do I modify the query used to eager load associations
0
Databases
Hi, I have a classic hierarchical entity with single level of nesting
```
class Job < ApplicationRecord
has_many :children, class_name: 'Job', foreign_key: 'parent_id'
belongs_to :parent, op...
mchwalek posted
Using tailwind css in my rails app, patterned after your blog tutorial. How do I get rid of all the whitespace on each side of the page, I want to use the whole screen?
1
CSS
So I have modified by tailwind.config.js file as such:
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
content: [
'./public/*.html',
'./app/helpers/**/*.rb',
...
Mike Cannon replied
How to use Dev Containers with Rails Discussion
20
General
Pretty excited about this because it makes Rails development so much easier to start for beginners or for teams using various operating systems.
I also forgot to mention, there is a `devcontainer`...
Chris Oliver replied
How do I install a Bootstrap 5 theme with Rails 7
8
Rails
Hello,
I have trouble using a Bootstrap 5 theme (like those we can find on themes.getbootstrap.com, for instance) with a Rails 7 application I'm building. I'm not sure which is the best way to inte...
Among Us Free replied
How do I create a gem for my ViewComponents that include Stimulus?
0
Gems / Libraries
Can anyone point me at a guide or tutorial that will help me built a gem that does the following:
- Allows me to have my ViewComponents
- Styled with Tailwind
- Interaction with Stimulus controlle...
Mark Stephenson posted
How do I connect StimulusJS controller to ActiveAdmin resource
1
Rails
Hi Everyone, I've recently moved on rails 7 and new to stimulus as well. for some reason when i connect my stimulus controller to normal index.html.erb file (or any other file outside activeadmin) ...
Ajit Dhanje replied