Ruby on Rails Community Forum
Protecting from XSS with Sanitize Discussion
7
General
Thanks Chris! I'm building an app and just realized I'm not sanitizing user generated urls. Thanks for the helpful tips.
octanepower replied
Rails for Mac OS Catalina
2
General
Hello,
Super excited to be part of this group as I am in need of help. I have an existing Rails project that I cannot run anymore. I followed the steps here (https://gorails.com/setup/osx/10.15-ca...
Marc Guerrero replied
Building a product in under 10 minutes with Jumpstart Pro Discussion
16
General
**Congrats on the 300th episode! 🎉**
Jumpstart Pro looks great!
Vitaly Kozadayev replied
Help with Debugging
0
Javascript
Hi all,
I am trying to help out an open source project that I use. I found an issue and the developer has asked me to help debug the javascript but I'm a javascript hack and not sure how to do it.
...
Jim Miller posted
User 'folders' for uploaded files?
0
Rails
Is there any best practice / tutorial for organizing user uploaded files?
In my app I have an 'uploadable' polymorphic structure where the user can upload files to pretty much any model etc.
Curr...
Dan Tappin posted
Server Administration with Cockpit Discussion
6
General
Chris, I get a not secure warning in Chrome when I try to access :9090 in my domain (I deploy with Hatchbox). It's sending the browser a self signed localhost certificate.
Yi Mei Wang replied
Rails 6 - What Javascript/CSS Framework is good for me?
0
General
Dear community,
since I'm not a good javascript programmer and new to Rails 6 (especially webpacker), I'm looking for a good framework for the whole fancy shit (Slider/Datepicker/Autocomplete/..)....
Chris-P-Chicken posted
Rails, turbolinks and javascript. How to avoid duplicate Switchery button appear?
0
Javascript
I'm implementing Switchery button in my Rails app and Turbolinks is on. When I navigate to another page, and then click the back button, the button is being duplicated.
Here is my Javascript code:...
Lee Terng Gio posted
Making a contacts form page, getting LoadError
0
Rails
Hello. I'm trying to create a contact page that emails me directly from the contact me page of my portfolio site. I created the contact form model by following this tutorial on YouTube. But I'm get...
Kyle Williamson posted
How are lockbox and attr_encrypted different from each other?
0
Gems / Libraries
I'd like to store users' API keys in my database. Lockbox was previously suggested to me, but I just came across attr_encrypted gem and they look like they achieve the same results to me.
I'd like...
Yi Mei Wang posted
how to model on rails that a supplier can be a customer and a customer can also be a supplier. ?
2
Rails
Good evening everyone,
Here's my problem:
I have 2 tables, suppliers and customers who are all companies.
how to model on rails that a supplier can be a customer and a customer can also be a sup...
Peter vande Put replied
Any Rails code documentation best practices? Yard vs Rdoc?
0
Rails
Main question:
I've been looking into documenting my own code, and came across Yard and Rdoc. Right now, just trying it out, I have Yard installed. But are there other alternatives out there that I...
Yi Mei Wang posted
How do I have a root route without an action parameter in the URL?
0
Rails
My system is using a post model with friendly_id so the calls are /name_of_the_post and this works great.
The initial home page is also a post so in routes.rb I have
```
root 'home#index'
get ':...
Peter vande Put posted
Does it make sense keep using Carrierwave having ActiveStorage?
1
Rails
Hi, I have been thinking about that since a few Days ago. I don't know which is more efficient and how much, and also how easy/hard could be the migration from one to the other. Any experience/insi...
HP replied
Setup Ubuntu 18.04 Bionic Beaver Discussion
0
General
Rails, turbolinks and javascript. How to avoid duplicate Switchery button appear?
0
Javascript
I'm implementing Switchery button in my Rails app and Turbolinks is on. When I navigate to another page, and then click the back button, the button is being duplicated.
Here is my Javascript code:...
Lee Terng Gio posted
foreman issues
2
Rails
Added foreman to my Gemfile and when i run bundle install, i get the following error:
Could not find foreman-0.87.0 in any of the sources
Run `bundle install` to install missing gems.
Wole Ikotun replied
Geo-spatial Search with Geocoder and Google Maps Discussion
14
General
Awesome episode! Really enjoying the maps and geolocation episodes!Thanks, Chris!
Amanda replied
How to for Devise user to update password after first login?
0
Rails
Hello, I'm a newbie on Rails.
I use devise for the authentification and i want to force all new users to changer thier default password at the first connexion.
I also want them to update thier pa...
lionnel Patrick posted
Rails 6 With Full Vue Frontend vs Sprinkled Vue Components
4
Rails
I'm struggling to decide how best to integrate Vue in my Rails 6 app. 🤔
I've read [some tutorials](https://web-crunch.com/ruby-on-rails-api-vue-js/) that suggest using Rails as API with Vue as fro...
Tabish Iqbal replied