Followed the deploy instructions; nginx throwing a 500 for rails app
0
Servers
I'm not sure what happened, but I had a production environment/config working with nginx/passenger deployed on Digital Ocean. I am not seeing errors in log files, but nginx is throwing a 500 when I...
Matt Bjornson posted
Solved
How do I style select options?
2
General
I have options for a select field from 2 sources (this years options and last years options). In the drop down list I would like to distinguish the options between the sources (e.g. this years opti...
William Jones replied
Solved
Phusion Passenger error on Hatchbox
5
Rails
Hello,
I have just deployed my app successfully on Hatchbox. Its works perfectly but when I try to access a page via activeadmin, I get this error and I definitely don't understand it nor what do....
Houssein abil replied
Solved
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
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
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
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
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
hit
1
Rails
xx
ff replied
Solved
Can not use toast of bootstrap in rails
1
Javascript
I did `yarn add bootstrap jquery popper.js` and import bootstrap into the app.
Also, bootstrap's popover and tooltip style works well.
But when I add a toast in page and run `$('div.toast').toast('...
Chris Oliver replied
Solved
How do I get avatar.variant(resize: “200x200”) on Rails 5 to work using aws on production?
3
General
I can't get user.avatar.variant(resize: "200x200") to work while using a cloud provider in production because it uses my website path instead of aws.
```
<%= image_tag user.avatar.variant(resiz...
Chris Oliver replied
Solved
How do I store users’ API keys for 3rd party services
2
General
So I am working on a multitenancy app that needs to store users' API keys for 3rd party services, but given that these are rather sensitive information, I imagine I should have some form of securit...
Yi Mei Wang replied
Solved
How can i Configure my Trix Editor / ActionText field?
2
General
Is there a way to add / delete buttons from the tool bar for action_text? For eg, I'd like to add more semantic header levels (h2-h4).
Christopher replied
Solved
Devise on Heroku
0
Rails
Hello, I have been implementing device JWT with rails 6.0 API . I have used this callback to protect from fogery requests, On the applicationController
```
protect_from_forgery unless: -> { requ...
Moses Gathuku posted
Solved
Thoughts on adding non-standard REST actions to a resource?
4
Rails
I have a `milestone` resouce that can be activated/deactivated as well as completed/reopened.
Rails pushes the standard 7 actions in your controllers: index, new, create, show, edit, update, destr...
Dan LeGrand replied
Solved
Parsing a Ruby hash sent to a Javascript API
1
Javascript
Sending data from Rails via HTTParty to a Node endpoint:
`params = { str: "word", bool: true, hash: { number: 123 } }`
`result = HTTParty.get("http://localhost/test.js", query: params)`
It works ...
Daniel Weaver replied
Solved