How to display checkbox and string fields like this image in a form?

5
Rails
I have a `spectrum` boolean column and a `spectrum_color` string column and I'd like to display the options to user as shown in this image. I'm using Tailwind CSS and the Jumpstart Pro Rails templa...
Daniel Weaver replied
Solved

Is this a good fit for storing JSON in database?

2
General
I've got a Video model that represents a video created by the user. During creation of a video a couple of filters with different options can be applied to the video. Currently only 2 but I'll be a...
Daniel Weaver replied
Solved

Rails loading time

0
Rails
1. I just installed the a new rails version 6 and using ruby -version ruby 2.6.3-p62. I create a new 2. project 'rails new my_new_app' 3. bundle install 4. rails server ![rails respose time](ib...
Hagi lerman posted
Solved

How do I update a page (a row on a table) dynamically?

1
Rails
I have a page which displays all the products in a shop. Each time a new product is added - two things happen. 1) The user is taken to the products/index page which shows a list of all the produc...
Chris Oliver replied
Solved

How do I add minified JS files to the Rails Webpacker

2
Rails
I am trying to add min.js files - and getting an error. This works while adding a normal .js file: *- app/javascript/packs/calendar.js* alert('Calendar loaded') *-# app/views/calendars/index.ht...
Arjun Rajkumar replied
Solved

Rails6 autorization method

1
Rails
I am going to start my new project on rails6. But when i am usign declarative_authorization gem i am facing issues. can you suggest any method for authorization?
Chris Oliver replied
Solved

How do I embed a Rails app into another website?

1
General
Hey! I'm stuck with this - and would love some help. Going to use an example to explain this. Storemapper (https://www.storemapper.com/) was build on Rails. It basically lets you add a store loc...
Chris Oliver replied
Solved

Where is "embeddable javascript widget Part 4"?

2
General
It seems like all parts of "embeddable javascript widget" tutorials are available EXCEPT part 4. https://gorails.com/episodes/embeddable-javascript-widget-part-4 Any idea where to find it?
Chris Oliver replied
Solved

Do you measure your app's uptime?

2
General
If so, than how do you measure it? Any libraries, tools, services, etc worth investigating?
Peter Marcano replied
Solved

Working with Lists from a Database

1
Rails
Greetings, I am learing Ruby on Rails as I'm migrating a legacy app from PHP. I'm just a beginner in ROR, and having trouble setting up the simplest of relationships. In simplest terms, I have a ...
Brad Morrical replied
Solved

Adding external .js files to a new Rails 6 web app

1
Rails
I have created a new rails 6 app. in rails 6, javascript folder is outside assets. I have copied all the css and js files from an existing application to this new one and application.css,applicatio...
Safwan SM replied
Solved

`Redirect from naked domain to www from inside the routes doesn't change the domain in the address bar - because of Turbolinks?

2
Rails
Hi, I am trying to force a redirect from naked domain to www from inside the Rails app, since I can't do this with the Nginx ingress in Kubernetes (basically, users can add custom domains and the a...
Vito Botta replied
Solved

How do I display just the year in a sect date?

2
Rails
Good day Rails Devs, What's the proper way to dsiplay just the year in: ``` <%= form.date_select :year %> ```
Rob Thomas replied
Solved

How do I drag and drop an image file?

3
Rails
I have a rails application that can upload an image using CarrierWave and MiniMagick and a file_field. This seems to be the usual way to do things and works well. I have a user that wants to open...
William Jones replied
Solved

How to model these relations in Rails

6
Rails
For a couple of days now i am going back and forth how to models this. I currently have the following model structure and relations (simplified) ``` class Fleet &lt; ApplicationRecord # proper...
Drazen replied
Solved

How to attach a remote S3 file to an outgoing email? [SOLVED]

3
Rails
I'm using a regular mailer to send text emails and now I want to attach a file stored on S3 to the email. I have the URL of the file and was naively hoping something like this would work: ``` def ...
Daniel Weaver replied
Solved

How to test attachments in ActionMailbox?

4
Rails
I'm trying to test attachments using receive_inbound_email_from_mail, but when inspecting mail.attachments I get an empty array. Is there another way around this? receive_inbound_email_from_mail( ...
Taha Husain replied
Solved

How do I integrate Uppy.io or Dropzone.js into Rails with ActiveStorage?

12
Gems / Libraries
[Uppy](https://uppy.io/) and [Dropzone](https://www.dropzonejs.com/) and popular js libraries that provide rich user experience for file uploads. ActiveStorage supports the integration of such libr...
Ivan Raszl replied
Solved

How do I remove Devise::Trackable from my app?

1
Gems / Libraries
I'd like to remove the Trackable module of Devise. Is it as simple as removing `:trackable` from the `devise` line in `User.rb` and then creating a migration to remove the columns created for the ...
Chris Oliver replied
Solved

Going crazy with console / debugging issue

2
General
In development mode I want errors to hit the browser and specificly the 'better_errors' gem debuging pages. Currently when I hit an issue my console just hangs and reports the error and the browse...
Dan Tappin replied
Solved