Save 36% for Black Friday! Learn more

Ruby on Rails Community Forum

How do I do multiple uploads in Active Storage?

0
Rails
Hi there, I am following this tutorial to do multiple file uploads with DropboxJS but I don't know how to get multiple images belonging to a model to show in the 'show' page. Only one image shows ...
Arthur Truong posted

How do I use Devise in normal AND API mode

0
Rails
Hi guys, I want to use Devise for creating users with mobile app via REST API but I also want use it in classic fashion. So in API I want to return JSON and appropriate HTTP codes. Also I want to i...
Jaroslav Horák posted

Showing online users in chatroom sidebar

0
Rails
Hi I am building a website ("All-In-One") with articles publishing and a chatroom. The basic is done and apparently, everything works. So, now I'm working on better styling and details. here is the...
Bina Darabzand posted

Doing multiple uploads with Active Storage

0
Rails
Hi there, I am following this tutorial to do multiple file uploads with DropboxJS but I don't know how to get multiple images belonging to a model to show in the 'show' page. Only one image shows ...
Arthur Truong posted

Migration issues

0
Rails
Can I know when I run "rails db:migrate" its updating mysql and schema but not in migration folder files. Also "rails db:migrate VERSION=0" is not working...
Semicolon posted

Sending a series of keystrokes to the terminal. (CentOS)

0
Ruby
Hi there, I'm just trying to automate a process. We use a command line tool which is navigated by keystrokes (no mouse). I was hoping to create a ruby script to send the required keystrokes to tha...
MaxwellMax posted

Is it a good practice to call third party api before every controller action?

4
Rails
Is it a good practice if we can call a REST api on `before_action` hook of `application_controller.rb` and store the response in helper method? My Scenario is that I wanna call an API from another...
Ali Ahmed replied
Solved

Install Ruby On Rails on Mac OS X 10.15 Catalina (Issue)

2
Ruby
I'm running the following command: mysql_secure_installation I get this error: Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) I have enabled root.
WoodbineOne replied

Draper Gem or explicitly use Decorators and Presenters?

0
Rails
Hi, my question is simple that sometimes I have to extend my model with methods that are usually for more advance business logics and sometimes I need some methods that are used in views (not speci...
Ali Ahmed posted

Setup Ubuntu 14.10 Utopic Unicorn Discussion

0
General

Collection and Vars in Controller are different than what's rendered in View

0
General
I'm having a really odd issue and have tried tons of things, but just cannot figure out why this is happening and how to change it. I have a collection of resources that I render on an index page...
Lauren B posted

Can two apps consume webhooks of each others

0
General
So let's say I have two apps with different dbs and both are dependent to each other (feature wise). For example App #1 has the user table and App #2 calls the App #1 Sign In Api to login the user ...
Ali Ahmed posted

Episode for Unpoly framework

0
Javascript
Episode for Unpoly framework?
Nikola Okonesh posted

Making GeoSearch smooth with AJAX Discussion

2
General
Nice video Chris!
Amanda replied

How to make rails associations work

1
Rails
I have this set up, but noting gets saved to the db when I try to save a practitioner. The tables are users, clinics and practitioners. The user should be able to create multiple clinics and each c...
Kasper Valentin replied
Solved

How to version model validations for an API?

1
Rails
Why is API versioning necessary at all? It is required for when we want to make some breaking changes to an API endpoint, like stop accepting certain parameters or if we remove some part of the res...
Chris Oliver replied

Reducing Transfer costs with AWS S3

7
General
Have had my website up for about a month and a half now and have run into an issue where the data transfer cost for AWS S3 is crazy high (around $200/month). The website is a recipe sharing websit...
Alex Deering replied

How do I sort fields for and include a new fields for entry?

1
Rails
Sorry for the confusing question, I couldn't think of a better way to phrase it. I have a 'Prospect' model that accepts nested attributes for 'prospect_calls'. When editing the prospect I need to...
William Jones replied
Solved

How to Set Up a Stripe Scheduled Subscription with an option for Deposit but with only X months to Pay the Balance?

6
Rails
I am creating a Stripe product that gives the buyer an option to put a deposit down then they are given x amount of months to pay. Or they can pay in full. I'm sure that I would use scheduled subsc...
Jim Miller replied
Solved

Who wants to run Cypress.io tests in multiple browsers and platforms? AskJS

0
General
I'm reading about Cypress and its li [Mobdro](https://mobdro.onl/) mitations in many forums and blogs for quite a long time. Most of the posts talk about the missing ability to test cross-browser a...

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.