Save 36% for Black Friday! Learn more

Rails Ruby on Rails Forum

How would I setup a two-sided referral program in rails with stripe?

2
Rails
I want to set up a two-sided referral program in rails that would similar to the setup used by Dropbox. How would I get this setup? The referral program would work with Stripe to reward the referri...
Jonas Johnson replied

How do i populate a dropdown based on the parent_id selected in a tree structure?

0
Rails
i am currently working on an online store where the category model has ancestry with the ancestry gem, i would like to add products by selecting the parent category first and then based on the sele...
Nana Manu posted

'bcrypt' gem install Error

3
Rails
So, I was attempting to install the gem 'bcrypt' and I received the following error:Installing bcrypt 3.1.11 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native e...
William Kennedy replied
Solved

Can't connect to rails server

11
Rails
Hello, I am very new to programming and Ruby on Rails (day 3). I'm having a lot of trouble connecting to a server.  I have tried,rails s -b $IP -p $PORTrails s bundle execand several other...
AustinH00 replied

Rails 5.1.5 ( redirect to login but not saving data [omniauth + Devise]

2
Rails
Im Trying to make Oauth using multi model, User and Identity. i setup the one to many Relationship between User and Identity and write some code for each model like thisuser.rbclass User < ...
Michael Lazuardy replied

How to generate these episodes applications Scaffold used by Chris?

3
Rails
I would like to know if there is any guide that shows how to generate this initial Scaffold of the application (with device, gravatar, bootstrap, all configured to start a new project quickly), lik...
Alisson Patrick replied
Solved

How do I access files on server with a cron or similar ? (outside of app)

17
Rails
Hi everyone, i'm a bit new to rails and i'm searching for help.I have a rails app where I receive a zipfile on my server (outside of the app, homedir of new FTP user).Then I want to unzip t...
Jacob Montgomery replied
Solved

How do I display dynamic fields from collection and bind data back?

0
Rails
I just started working on Ruby on Rails project for maintenance.  I have array of objects and want to display separate section of fields for each object.  They have design to call field f...
gopinath ponnivalavan posted

How to create a user profile with OmniAuth?!

0
Rails
Hi guys, I want to build an application where users are going to sign up with just their social media profiles and I don't want to use devise, the application should display user profiles with ...
Muhammad posted

Best Practices on organizing complex business logic

0
Rails
Hi!  I'm new to the community (so be nice) but I've been developing Rails applications professionally for a while now.  I would like some help from the experienced developers in t...
Sergio Rodríguez posted

Rails bootsnap-compile-cache and other files all of a sudden appears

2
Rails
Hi everyone,I am a bit confused; whether I am using Rails 5.1.4 or upgrading to 5.2.0.rc1 (Ruby version is 2.5.0) a lot of new files have all of a sudden appeared in my apps and I am unsure of the ...
Jacob Hedengren replied
Solved

The best way to use permissions in serializers

0
Rails
I want to show the attrib, using cancancan in serializer model, it is possible ? what is the good practices for that, thanks !
Jose Aguirre posted

How do I post a client ID in a different controllers view?

1
Rails
Hello, I am so very new to Rails that my question might seem odd. But I will try to be as explicit as possible. I have a controller named clients, It shows <%= @client.client_identifier %> - ...
Simon Cooper replied

Using webpacker in Rails Engines?

6
Rails
I'm making a pluggable CMS engine and want to keep the JS/CSS (preferably by writing Tailwind components) in the engine. It works great with models, controllers, routes and the asset pipeline, ...
Angel Garcia replied

How to manage upstream with ssl?

0
Rails
I am trying to deploy with nginx puma using upstream so should i use ssl connection with my upstream https://my_app upstream my_app { server 127.0.0.1:9292; # or the port you co...
naveen kumar posted

Multitenancy with different account types

0
Rails
I'm just getting started on a multitenant application for the lending / finance space. I've looked into Apartment, Milia, Act_as_tenant, etc. but none seemed to really fit what I'm try...
Robert Farese posted

Implementing global app settings

3
Rails
I am wondering what the best way to go about setting up Settings for an application. Settings will consist of name, address, phone number, and some other project specific entries. What has me a lit...
RJ McCollam replied
Solved

How do I pass an id to a foreign controller?

2
Rails
A very basic question I know, but I'm really struggling. If I use a link_to with the current controller's path then I get the id as a parameter but if I instead use a path to a different co...
Robert Farese replied

Download large files from an external server with permissions

1
Rails
I have a rails application that requires file downloading. To download the files, permission is required - in this case only a logged in user can download the files. Currently, this is working as t...
Robert Farese replied

Why CKeditor is not working in production?!

2
Rails
Hi guys, I'm using CK editor in my rails 5 app and when I deoployed it on Digital Ocean and the editor doesn't load with this error in the console. ``` ReferenceError: CKEDITOR is not defi...
Muhammad replied
Solved

Learning Ruby on Rails? Join our newsletter.

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