Skip to main content
Webpacker: How do I use images inside my .vue single file components?
Rails • Asked by TL
We're using Rails and Webpacker with Vue single file components. How do we insert images inside the `` ? A far as I can see there are many options. **OPTION 1**: Use .vue.erb (with webpacke...
1
post

Is it safe to render the creditcard in my application
General • Asked by Arnas Klasauskas
I'm currently adding stripe to my application. I think stripe form doesn't look that good, therefore I would like to beautify the form. I found this gem https://rails-assets.org/#/components/car...
2
posts

Can I setup Rail app to the managed DigitalOcean Server
General • Asked by EstherLewis
I am looking to setup the Go rail app to the [managed DigitalOcean server](https://www.cloudways.com/en/digital-ocean-cloud-hosting.php) which consist of: Ram: 1GB Processor: 1Core Basic Storage...
1
post

How to pass the value of input type radio in application_helper?
Rails • Asked by theshashiverma
I am creating an admin template, and there is a customizer section in which I have created 3 radio buttons (named: Red, Blue, Green). There is a left sidebar navigation menu and I want to chang...
1
post

Active Query: object date within the next 30 days.
Rails Solved • Asked by Matt
Hi there, I'm fairly new to programming and rails. I was wondering if someone could help point me in the right direction here. I've created a new date field in Active Record and I'm trying to...
5
posts

creating multiple input fields in rails
Rails Solved • Asked by lucywilson
1
post

How I can use extra params in habtm without so many troubles?
Rails Solved • Asked by Jack
I have a model `Station` ``` class Station < ApplicationRecord validates :name, presence: true has_many :ways has_many :routes, through: :ways has_and_belongs_to_many :tickets ...
2
posts

How to implement e-wallet system in rails?
Rails • Asked by Paulo Avelino
I will be working on a booking system where user can pay booking with wallet credits. User can load credits via paypal payment. Is there any existing gem or project doing this? Any pointers would b...
1
post

User Avatars with ActiveStorage Discussion
General • Asked by Chris Oliver
Hi Chris, great episode. I posted a question about ActiveStorage but I have not received any response yet. Basically what i want to do is upload images for a has_many_attached directly from a contr...
4
posts


Dynamic Nested Forms with Stimulus JS Discussion
General • Asked by Chris Oliver
Yes this is what ive been waiting for!
22
posts

How do I structure a Conversation between two models?
Rails Solved • Asked by Taylor Cooney
I have a `Store` object that has an `email_address` attribute. Using the logic from and [How To Build A Form](https://gorails.com/series/how-to-build-a-forum) and [Handling Inbound Email Parsing wi...
7
posts

Editable emails templates
Rails • Asked by Karim Tarek
Hi there 👋 I need users to be able to edit email templates, something like: `Hello {{ first_name }},` Please advice, thanks 👍
5
posts

Rails Webpack caching
Javascript Solved • Asked by Stephen Sizer
I'm having an issue in development where I've changed my main application.js file in /javascript/packs/ and the file is being cached so having a hard time testing new changes. Does anyone else have...
3
posts

How do I add HTTParty to ActiveJob ?
General • Asked by Arnas Klasauskas
I'm currently trying to make a GET request with ActiveJob. It looks like everything is working, but somehow the GET request isn't saving in my database. This is my TypeformJob: ``` def perfo...
2
posts

Sortable List with GoRails Guide
Ruby • Asked by Rares Roca
Hello all, I have a question, I finished with the sorting of the list with Chris's help. But now I want to be able to sort the list by only when I drag the item from a div/icon/text. Can you ...
2
posts

Deleting Comments In Nested Threads Discussion
General • Asked by Chris Oliver
How about taking an OO approach i.e. changing the type to DeletedComment, e.g. using STI? This eliminates the code smell of conditionals in a partial.
3
posts

Rails Counter Caches Discussion
General • Asked by Chris Oliver
I feel this video was cause of me in the forum haha!A+++
15
posts

Nested Comment Threads in Rails - Part 2 Discussion
General • Asked by Chris Oliver
There's a security vulnerability in the code which allows any authenticated user to delete anyone else's comment. While there's a check in view (`if comment.user == current_user`) for showing the d...
1
post

User Onboarding Progress Bar Discussion
General • Asked by Chris Oliver
Great episode! One thing that would improve these for me would be to include testing. Thanks
7
posts

Subscribe to the newsletter

Join 22,346+ 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.