
Hatchbox Postgres Problem
4
Rails
Hello,
I have my app running on Hatchbox. I link it with the app hosted on Github so anytime that I push something on my master branch, its deploy automatically. Yesterday I did some modification ...
Solved

Attempting to generate a URL from non-sanitized Rails 5 upgrade
0
Rails
Hi so Im upgrading my rails 4 app to rails 5.
I have a link with foo _path(params.merge(format: "pdf")) Im getting the non-sanitized error.
Im looking for the correct way of permiting the this p...
Francisco Quinones posted

Manage multiple rails project with different versions of rails and ruby | RVM vs Rbenv | Bundler
0
Rails
I am new to rails so I have a lot to ask and I find out there is a huge debate on ruby version managers i.e RVM and Rbenv, and there is a bundler too. Now all the articles I have read are old and t...
usama akram posted

Deploying error: The dependencies in your gemfile changed
0
Rails
Hello Devs,
I am on my way to deploy a rails app, but I got this error:
```
** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 20 lines:
DEBUG [504959b4] Install mis...
ykostov posted

Precompile error on hatchbox with yarn 2
1
Rails
After upgrading to yarn 2, I get the following error when deploying to hatchbox:
-----> Precompiling assets...
Unknown Syntax Error: Unsupported option name ("--no-progress").
$ yarn install [...
Matthias Orgler replied

Using Activestorage how do I restrict a file that can only be accessed through links and not outside the website?
3
Rails
So if you copy the link of the rails blob and paste it ( incognito ) it basically downloads the file how is this remedied?

Faraday::SSLError
2
Rails
ran into this error while using facebook to login on a project does anyone know how to fix this

Hotwire turbo stream update_or_[append/prepend] ?
1
Rails
Given a list of items that could be visible or not on a page (like a paginated list ), how is the best way to send from the server an update or append to that list? I Mean, update element when the ...
Miguel Michelson Martinez replied

Law of Demeter - Question
4
Rails
Had a question about how to refactor some of my code. I've been reading some books AntiPatterns & Refactoring. Given the code block here, should the method here be in Evaluation or Skill? If...
David McDonald replied

Moving from STI to roles
1
Rails
Finding it tricky to move from STI (Single Table Inheritance) to user roles because associations between the various user roles to other resources mean different things to different user types.
`T...

List of Ruby Gems by Category on Go Rails
2
Rails
I think I remember seeing somewhere on Go Rails that listed out a bunch of helpful ruby gems by category. It had everything from badges, to cacheing, to styling, all with descriptions and a link ou...
Splohr replied
Solved

Create (or not) a BaseComponent to work with TailwindCSS and ViewComponent?
2
Rails
Hi all,
this is my first post and I am working with Ruby and Ruby on Rails for about a month. I have years of experience as a web developer but my focus was more on the Frontend part, if you don't ...

How can i get youtube_id form the embedded youtube video in rich text editor?
0
Rails
hello everyone, currently i'm working with rails fast json api. and i came into an issue which i need to response the youtube video which we embedded in the rich text editor to the client. i tried ...
lyden29 posted

How to write a conditional in a create action?
4
Rails
I recently worked through the 4 episodes here on direct uploads to S3 with shrine.
I have things setup to upload both images and documents and am now trying to write a conditional to create either...

Native mobile app and Rails
0
Rails
Is it be possible to use both JWT and session auth in Rails, where session auth would be used by web client and JWT by native mobile app?
Balsa Janjusevic posted

Hatchbox not returning correct credentials
0
Rails
Hi there,
I have deployed an app successfully but the app crashed immediately I tried to login. I ran `bundle exec rails c` and it seems like the values aren't being returned (returns as `nil`) fr...
Christopher Lam posted

How do I upload images using (Administrate Gem + ActiveStorage + Rails 6)
2
Rails
Hey Everyone I'm working on rails 6 and building an admin panel using Administrate Gem. I have a product model "has_many_attached :images"
but administrate does not recognizing:
images_attachme...

How are folk handling ownership of an ActiveStorage::Attachment?
3
Rails
Hi all,
With carrierwave etc it was easy enough to associate a User with an uploaded image. Things are a bit different with ActiveStorage::Attachment & Blobs.
For example, suppose I have a`Pa...
Rahul Paul replied

Transcode a video and move to a remote server
3
Rails
Hi Chris,
I'm following the introduction video where show the usage of Shrine and FFMPEG. What I'm trying to do is having the users upload the videos, then transcode them to MP4 and save to a dedi...

Auto-removing notices from a turbo_stream
1
Rails
I am appending a notice partial via turbo_stream on a few actions for a model. I am running into an issue on figuring out the best way to remove these notices after a set period of time.
The actua...
Tabish Iqbal replied