Switching from Sqlite3 to MySql or Postgresql and how

2
General
I now have the problem that whenever I deploye something with capistrano my Sqlite3 database disappears. I have already read that it is in a different folder or that there are problems with it. No...
Sebastian replied
Solved

Custom Validations Issue

6
Rails
I have a custom validator that I would like to protect some data on my Users to Sites has_many through relaitonship. There is one extra piece of data on the `sites_users` join table `is_default` w...
Thomas Bush replied
Solved

Iam desperately trying to deploy my App with Capistrano but it isnt working

2
Rails
Hey Folks, I have always received great help here, so I hope that it will work out this time so shortly before the end. I would like to deploy my app on my server and use capistrano. However, I c...
Sebastian replied
Solved

Missing `secret_key_base` for 'development' environment, set this value in `config/secrets.yml`

2
Rails
Hi, im newie with Ruby and Rail. Right now im following Book Two from Daniel Kehoe. I stucked with SECRET_KEY_BASE. Ruby -v : **2.4.1** Rails -v: **5.1.6** After I restart Puma: Puma caught ...
CodeParody replied
Solved

Anyone here built an iOS app with ROR backends.

3
General
Hey all! Just looking to learn more about how to build iOS apps with ROR backend, and wondering if anyone has done the same? If you can share links/resources that has helped you build iOS apps, it'...
Chris Oliver replied
Solved

Shrine::Error: storage :cache isn't registered on FileUploader

1
Rails
Im using Mongoid 6.0.3, ruby 2.3.1 and rails 5.2 I created a file_uploader class for handling my uploads using shrine. > > /app/uploaders/file_uploader.rb ``` class FileUploader < Shrine...
Ashutosh Mittal replied
Solved

Team tracking?

1
Site Feedback
Hi Chris, Is there or will there be a way to see which videos my team have watched, and how many, and what their XP scores are, etc, all on the team page? And see whether they actually watched, o...
Chris Oliver replied
Solved

JWT with Devise (App and API)

3
Rails
Hi, I'm looking to extend my Rails 5.2 application that uses Devise for authentication so I can support API requests via JSON. I have looked at Chris' videos and did some searching around -- most ...
Chris Oliver replied
Solved

rails generate devise:install hangs

2
Rails
I ran into this issue today whilst I was trying to deploy jumpstart template into **my Rails 5.2.1 App** When I ran rails generate devise:install nothing happened. No errors, no output – nothing...
Felender Hlungwani replied
Solved

Load only products based on region ideas please :)

3
Rails
Hi all, Im trying to work out the best way to do a task. On the users menu, they are able to select a region they are a member of. Once a user selects a region I want to load all data on the page ...
Jacob Montgomery replied
Solved

How do I find the next and previous lesson?

1
General
I am currently building an LMS and am looking to add in the ability for the user to navigate to the next lesson. In the admin back end when a teacher adds a lesson they are able to give it a posit...
Chris Oliver replied
Solved

Multi tenancy for one type of user

7
Rails
Chris Would you ever see a scenerio where you would use a multi tenancy approach for one type of user? For example lets say you have an etsy like example, the vendor would have their own section v...
Austin Klenk replied
Solved

Passenger vs Puma

3
Servers
I notice that there seems to be a preference for Passenger over Puma in your screencasts and hatchbox.io. Can you elaborate? I was curious about HTTP/2, multithreading, performance, etc.
Himanshu G. replied
Solved

Sortable Drag and Drop

8
Rails
Hi I am hoping someone can assist. I have gone through the tutorial of Srttable Drag and Drop. https://gorails.com/episodes/sortable-drag-and-drop All is working but once the drop happens I am g...
Clay replied
Solved

Exposing API when uploading image with ActiveStorage in Rails 5.2

1
General
I'm trying to expose my API, but I'm having a hard time exposing an image that I uploaded using ActiveStorage. This is the current out put from the console when running `Recipe.last.image`: ``` ...
Lauro replied
Solved

Direct Uploads with ActiveStorage - DO Spaces

0
General
I managed to up upload images to Digital Ocean's Spaces following the episode on [Direct Uploads with ActiveStorage](https://gorails.com/episodes/direct-uploads-with-rails-active-storage?autoplay=1...
Lauro posted
Solved

Dropdown menu with form data?

1
Javascript
Hey there, I'm building a dropdown menu for a form, that looks something like this: - Entry 1 - Subset - Entry 1 - Entry 2 - Entry 2 The selected option has to be in the params later on. I'm ...
Christian Kienast replied
Solved

cloudflare vs cloudfront vs ?

3
Tips
Hey Chris, I've many images on S3 with avg size of 30KB per img that take about 1-2 seconds to display. I'm looking at cloudfront & cloudflare to speed this up. Later perhaps imgix, but I see ...
Marcus S replied
Solved

How do I sort values incoming from an API call?

3
General
- I have incoming results from an API and I want to sort them (e.g. price) how can i do this without saving the results to the DB?- this is a rails app. 
Chantal Justamond replied
Solved

How is the Trix editor on gorails.com "Parsed with Markdown"?

9
General
I was considering implementing on my website the ability for users to switch between a markdown editor or the trix editor but then I noticed on this gorails.com editor (which appears to be Trix) it...
Sebastian replied
Solved

Want to stay up-to-date with Ruby on Rails?

Join 89,237+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.