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...
Anthony Candaele 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

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 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 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

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

How do I install a Bootstrap 5 theme with Rails 7

2
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...
Tommy Ortega 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

0
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) ...

How do I start from the very beginning?

1
General
I want to start from the beginning so as to understand everything very well with ease. But I am confused because I think the courses are not arranged accordingly.
Chris Oliver replied

How do I have 2 users associated with a model

0
Databases
I have a model that I want 2 users to have an association with. So this model would have a proposer (user) and a challenger (a different user). I am getting a bit tied up in spaghetti around whethe...
dwedigital posted

How do I create a sortable & searchable table with pagination?

2
Rails
Not really sure how to set this up with the different query params. Could someone point me in the right direction? Thanks!
Kevin Gutowski replied

How do i log user out from subdomain using devise

0
Rails
hi guys i am trying to build a blog platform like hashnode/substack where user register on root domain and create blog. I am currently using devise and i have set up subdomain routing. My question ...
Henry posted

How do I prevent ActiveRecord::PreparedStatementCacheExpired errors during deploys?

1
General
I'm using Hatchbox to deploy my Rails 7 application. However, occasionally during deployment, I encounter the ActiveRecord::PreparedStatementCacheExpired error. How can I avoid this issue to ensure...

How do I have a list view like tailwind?

1
CSS
Hello, I created a real estate listings model, but on the index view the list isnt like in the example, it showing all the details of the listing creating like a big box of each listing instead o...
Emma Wilson replied

How do I start to learn programming and eventually land my first job?

0
Tips
I am a 21-year-old adult with just the basic understanding of programming; however, I am fascinated by the applications modern computer programs have reached. I would like to hear any tips anyone m...
Ernesto Flores posted