Ruby on Rails Community Forum

Setting background image from User uploaded asset

6
CSS
Hi, I am trying to set a user uploaded image as the background for their profile but cant seem to get it working. I'm stuck on what way to reference the image in the background css style. I'm usi...
Gerard Donnelly replied
Solved

Model/concerns question

6
Rails
Hi. I am learning ROR on my own (no formal programming trainng) so this may be a question with an obvious answer but i'm stuck and the answer will help me understand how to call concerns. I have ...
Chris Oliver replied

Display non-image attachments with Trix/action_text

0
Rails
I've got the barebones functionality of Trix working ok... The editor displays ok and text and images display as expected. But when I drag and drop a PDF (for example) I can see in the editor a sma...
Nelson Casanova posted

Flatpickr with "Present" value as well.

4
General
I am currently adding date ranges for jobs in my app. I want the user to pick the start and end dates using flatpickr gem. I also want the user to be able to set the field to "Present" if they are ...
Gerard Donnelly replied
Solved

How do i track or list online users with rails?

0
Rails
How can i track or list online users in rails?
3DWaffle posted

Screencast Suggestion - ElasticSearch / Datatables (with Search Panes)

3
Site Feedback
Seems to be a natural extention to this Screencast: https://gorails.com/episodes/search-filters-with-elasticsearch-aggregations?autoplay=1 https://datatables.net/blog/2020-01-13
Dan Tappin replied
Solved

Looking for a secure place to store scanned tax forms

2
Rails
I am looking for something like Cloudinary that I can store w-9s that would be filled out by contractors. They get scanned and need to be stored for access at the end of the year. Do you think clou...
Jeff Wolfram replied
Solved

EleasticSearch and Indexing Empty Models

2
Gems / Libraries
I have added Elastic Search to my Rails app via the Searchkick gem. I have hit a snag - when I have a model with no records I get these errors: Searchkick::InvalidQueryError: [400] {"error":{...
Dan Tappin replied
Solved

Friendly URL's question

2
Gems / Libraries
Hello, I'm building a small forum for my website and its a very simple app with the schema looking a bit like: Topic -> Forum -> Post So, Topic can be 'Off-Topic' with a Forum called 'Intr...
Chris Oliver replied
Solved

Get Jumpstart Pro

2
General
Hi Chris - love your stuff and been a long term subscriber of Gorails.com. Do you have any special pricing for subsrcibers on Jumpstart Pro: https://jumpstartrails.com/pricing ? Love to get the sin...
Martin Curiel replied

Updating CSS classes in production doesnt show changes

2
General
Ive noticed that anywhere that I adjust the css classes dynamically (select2 boxes and one of my stimulus controllers adds a border when a div is clicked) the classes are added but the display isnt...
Alex Deering replied

Embeddable Javascript Comments Widget Models - Part 1 Discussion

0
General
Hello everyone,, This is perhaps a bit of a newbie question but I wanted to ask your opinion on what are the things I would consider usually when it comes to using the approach you outlined in the ...
Konhaivo12 posted

Rails 6, Devise not allowing editing of user without password

2
Gems / Libraries
I've followed the instructions on the [devise wiki](https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-account-without-providing-a-password/). I'd like a user to be able...
Matt Bjornson replied
Solved

Shrine Dynamic s3

1
Gems / Libraries
Hi Chris, I have a question I hope it's not out of scope for gorails but I'm having a hard time figuring it out. I have a multi tenant site, each of the tenants add their own s3 credentials there...
Chris Oliver replied

Elasticsearch server with Hatchbox timing out

19
General
Got another hatchbox issue trying to figure out. With elasticsearch now, I have a dedicated cluster that only runs elasticsearch. In the ENV there is the elasticsearch_url and ive SSH into the el...
Chris Oliver replied

Hatchbox deployment questions

20
Rails
Im launching my app and using your Hatchbox service to help. I was planning on using digitaloceans managed database and wondering how that works with hatchbox and if I need to change anything in m...
Alex Deering replied

Active Storage and Subdomains

3
Rails
I have a simple app for photos and wanted to make it a subdomain of a domain I own and use. It would be https://photos.com This seems to break active storage however. Has anyone else ran into a sim...
Chris Oliver replied
Solved

How do I send params from Rails Ajax to the controller???

5
Rails
I am trying to send all the params from the form into my controller after a promise my params include :name , :email , :address_line1, :address_city, :address_state, :address_zipcode, :address_cou...
Chris Oliver replied
Solved

How to set up Email newsletters

0
Rails
So this is less a question on how to set up integration with sendgrid or mailchimp, and more along the lines of how would you go about creating an admin setup to create dynamic newsletters without ...
Alex Deering posted

multistep forms

0
General
Is there a class or recommendation on how to do multstep forms in Rails?
Kirk Keeter posted

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.