Question regarding creating new items with belongs_to association!!

0
General
Hi, I am completely new to Rails and would like some help. I am trying to implement a to-do list using Rails as my backend and React as my frontend. Initially, I created a model and controller that...
MasonLogan posted

Is it possible to open a file via File Explorer in Ruby?

0
Ruby
For example: if you open Microsoft Word, you can open the File tab and Open a file. This opens up the File Explorer and allows you to choose a .doc or .docx file to open. [appvalley](https://getapp...
BontieFernandes posted

Basic CMS: Allow users to add custom CSS

0
Rails
For an App I am building, the platform provides users with a unique subdomain, which they can customize the layout by adding Rows, which have various templates to choose from. I want to allow users...

ActiveStorage trix image before record exist.

3
Rails
Hi, I have a Concept model with description string field. Concept `has_many_attached :images`, I use them to store images that I dragged into trix wysiwyg. Everything works great if Concept alrea...
Chris Oliver replied
Solved

SSL issue with nginx

0
Rails
Hi everyone, i have followed this tutorial and got stuck https://gorails.com/guides/free-ssl-with-rails-and-nginx-using-let-s-encrypti enabled the option to redirect on https. and now when i'm...
Muneeb Ahmad Farooqi posted

API Tokens with Devise Token Authenticatable Discussion

18
General
Yes!! I have been waiting for this one. I need to watch it still, but thanks!
Roberto Brevé replied

Recommendation for a maintained library similar to Datamapper?

0
General
I really liked to use Datamapper for my small hobby projects, it was so easy to set up and change the schema (no migrations needed). However the repos have been archived and they're unmaintained no...
Edward11 posted

SEEKING FREELANCER, Colorado Springs, remote: true

2
Rails
I have a Rails app I built with 5.2. It's intended to be similar to Soundcloud in some ways, Spotify in others. I am using Carrierwave to upload audio files to Amazon S3. One of the things I would ...
Marcus S replied

Set up S3 or DO Spaces for storage, and serve stored images through Cloudfront or other CDN

0
Rails
Hi all, I'm trying to set up a Rails 5.2 app to directly upload images to Digital Ocean Spaces, and to then serve those images using Cloudfront. I'm able to do direct uploads to Spaces using Active...
Ken posted

Setup for roles and authorization

7
Gems / Libraries
Hi all! This is my first question for the community. I'm super excited to be here and hope to be answering a few of them myself as well. I'm working on a rails project where people can work on a ...
Jacob Montgomery replied
Solved

Opt-in to receiving thread notifications

8
Site Feedback
Hey Chris, It would be great if users had the ability to opt-in to receiving new thread post notifications. Sometimes I like to just throw my two cents in, but don't really intend on following th...
Jacob Montgomery replied
Solved

could not connect to database postgres

2
Databases
I'm trying to install postgresql but I'm running into an error when I try to create a user: createuser: could not connect to database postgres: could not connect to server: No such file or dir...
shakycode replied

Should I be able to master JavaScript in less than two months?

6
Javascript
I realise this is probably a redundant post because others have asked the same question, but I'm curious if I'm any good at JavaScript now that I've been learning it for two months. I feel as if I ...

Active-storage creating/uploading folder

4
Ruby
Have any of you guys worked on a project where you can upload or create folders inside your active-storage attachment model? In another words or better way of describing, imagine you have a model c...
leochad82 replied
Solved

How to prevent missing images or assets after deployment in rails

0
Rails
I'm building a website as side project with a friend. Ngnix + Rails in docker. After deployment, I usually do assets:clobber and assets:precompile. This changes the name of the assets. When I try...
oscarlopezalegre posted

Bootstrap 4 modal form in rails disables submit button on ajax refresh

1
Rails
I've been struggling with this all day. Please see the link below. [Bootstrap 4 modal form in rails disables submit button on ajax refresh](https://stackoverflow.com/questions/44489517/bootstrap-...
nynhex replied
Solved

Hatch: Deploying my first App

7
Servers
Hey Chris, I was playing around with Hatch last night and it's really cool, awesome work! I am having a little drouble deploying though. I'm getting this > Git clone failed > > This ...
Chris Oliver replied
Solved

Send Notifications in Rails with Noticed gem v2 Discussion

9
General
The video talks about implementing a sort of escalated notification. Like send a slack web hook and then in 5 minutes send an email but not if the recipient already saw the slack web hook. Is buil...
Monica Wolff replied

How To Create A Gem For Frontend Javascript And CSS Libraries Discussion

4
General
Thanks for posting this video! it really helped me with creating my own gems. here is the last one https://rubygems.org/gems/aw-highstock_rails for pushing it to https://rubygems.org/ i used `gem ...
Marco Beffa replied

Exporting Records To CSV Discussion

58
General
Is there some magic happening when you call @users.to_csv ?? As I understand @users is an ActiveRecord::Relation, how is the method 'to_csv' sended to the User class ??
Nathan Anderson replied

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

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

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