Skip to main content
How to send Webhook?
Rails Solved • Asked by Andre Zimpel
I'm building a content management service which needs to send a webhook everytime the user saves a record. What's a best practice to send webhooks in a rails app? A LOT of tutorials are about re...
8
posts

How do I integrate Uppy.io or Dropzone.js into Rails with ActiveStorage?
Gems / Libraries Solved • Asked by Ivan Raszl
[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...
11
posts

Screencast Suggestion - ElasticSearch / Datatables (with Search Panes)
Site Feedback Solved • Asked by Dan Tappin
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
4
posts

EleasticSearch and Indexing Empty Models
Gems / Libraries Solved • Asked by Dan Tappin
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"...
3
posts

Friendly URL's question
Gems / Libraries Solved • Asked by Nelson Casanova
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...
3
posts

Rails 6, Devise not allowing editing of user without password
Gems / Libraries Solved • Asked by Matt Bjornson
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...
3
posts

Active Storage and Subdomains
Rails Solved • Asked by Ted Martin
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...
4
posts

How do I send params from Rails Ajax to the controller???
Rails Solved • Asked by Gus P
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_c...
6
posts

hit
Rails Solved • Asked by jake
xx
2
posts

DataTables Install via Webpacker
General Solved • Asked by Dan Tappin
Anyone get this to work? Details here: https://datatables.net/forums/discussion/57642/installation-issues-rails-yarn-webpacker#latest
2
posts

Can not use toast of bootstrap in rails
Javascript Solved • Asked by Junyao111
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...
2
posts

Why is github permission denied after adding deploy keys?
Rails Solved • Asked by Ethan Groat
I followed every single tutorial, and tried multiple different methods of authenticating my server's access to the github repo. All of it results in the same error, permission denied. Last few ...
1
post

API params validation in Rails app
Rails Solved • Asked by Alex Musayev
Hey guys! I'm wondering, what could be a good and scalable way to validate if API request is well formed, before processing it. Rails has strong params for that, but I have a case when an API en...
3
posts

How do I get avatar.variant(resize: “200x200”) on Rails 5 to work using aws on production?
General Solved • Asked by Luis Daniel Fonseca
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. ``` # Current Output # Should be ...
4
posts

How to import javascript from Gems with webpacker
Ruby Solved • Asked by Alex Deering
Ive come across an issue where some gems I want to use (specifically social-share-button) need to have a javascript file imported but with webpacker in rails 6, not quite sure how to do that now
4
posts

How do I store users’ API keys for 3rd party services
General Solved • Asked by Yi Mei Wang
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...
3
posts

Install Bootstrap with Webpack with Rails 6 Beta
Javascript Solved • Asked by Shawn Wilson
For those of you who are going to give Rails 6 Beta a test run here is how I have installed Bootstrap 4.3.1 and configured with Webpack **Step 1:** `yarn add [email protected] jquery popper.js` ...
13
posts

How do I install UIKit via yarn?
CSS Solved • Asked by Tabish Iqbal
Answer: 1. Add uikit through yarn: yarn add uikit 2. Create a file to be transpiled by webpacker: app/javascript/uikit.sass (or app.sass... whichever name suits you best.) 3. Within uikit.sass...
1
post

How can i Configure my Trix Editor / ActionText field?
General Solved • Asked by will
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).
3
posts

Javascript not executing
Javascript Solved • Asked by Paul Stutler
I viewed the easyAutocomplete video, which was great. I have the DB query and JSON assembly working. And the Javascript loads into the browser (Chrome DevTools let's me inspect it). But it never tr...
2
posts

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.