Skip to main content

Community

Subscribe to GoRails to join the conversation. Ask questions about your code, get help adding a new feature, and discuss implementation details with other members.

2 posts Gravatar

Creating nested attribute with two parent attribute.

Rails • Asked by Ariff Munshi

Hi, Been going round in circles for a day or so but still can't seem to find a solution for this. I have project management chat app that on sign up, you create the project and the first chat me...


4 posts Gravatar

Rails API backend with Electron Frontend

Rails • Asked by shakycode

I'm working on a SaaS platform that will be heavily API driven with a React or Vue front end. But there's a requirement for a desktop app to give the customer something "tangible" to hold in their...


2 posts Gravatar

Actioncable production settings when using heroku + custom domain

Servers • Asked by Masud Hossain

So I built a website and pushed it to heroku production `example.herokuapp.com` and bought a domain to reroute example.com to show whatever is on `example.herokuapp.com`. This all works great, ex...


1 post Gravatar

error when i click on follow button ... Relationship is not working

Rails • Asked by khemlall mangal

All i am trying to create follow and follwers relationship and i am experiencing some issues. Chris i think you should create a course on this as well. i am getting issue undefined method `id' for ...


1 post Gravatar

Administrator creates user accounts with Devise gem

General • Asked by Nymweb

I have a project with Devise gem. I need to create a user with the admin account. If I am logged in with the admin account I can not enter the path / sing_up. How can I access this page?


5 posts Gravatar

How to write a conditional in a create action?

Rails • Asked by Adrian DeGus

I recently worked through the 4 episodes here on direct uploads to S3 with shrine. I have things setup to upload both images and documents and am now trying to write a conditional to create eith...


4 posts Gravatar

Anyone with experience using Quilljs?

Javascript • Asked by Stéphane Paquet

Hi, I'm lloking forward using http://quilljs.com in a project and wonder if anyone can share his/her experience with such text editor. Related gems are looking pretty outdated (I'm using Rail...


2 posts Gravatar

Mention

Rails • Asked by Aime Ngongang

hi Chris Oliver on the @mentions episode can you share the css you use to show both user name and profile picture? Thanks


3 posts Gravatar

After adding the activeadmin gem, my previous style changed, How can avoid this?

Gems / Libraries • Asked by Larry Qu

After adding the activeadmin gem, my previous style changed , How can avoid this? Previous style is : ![previous style](http://calmops.com:83/down/previous-style.png) After adding the...


1 post Gravatar

cancel actioncable connection for unauthorized users?

Rails • Asked by Matt Taylor

Followed the series on action cable notifications and setup the meta tag so that action would not try to connect if the meta tag was present. Here is my code. ``` $(document).on("turbolinks:loa...


4 posts Gravatar

Freelance advice

General • Asked by Karim Tarek

Hello 👋 I got into freelance recently, I thought I'd reach out to the veteran freelancers in the community to seek advice, things I'm curious about, are: * What is(are) the most important s...


15 posts Gravatar

Why after I switch controller and switch back again , the form submit button Failure?

General • Asked by Larry Qu

after I switch the controller, and switch back, the form submit button Failure, if I refresh the page , it can works again. the console and network no error log.


4 posts Gravatar

How to setup the model associations for a simple e-marketplace?

Rails • Asked by Robert Paul

Hey GoRails devs, I am in the middle of setting up a marketplace (with stripe) and could use some help in conceptually thinking about the model associations. In the marketplace: a user can sell ...


10 posts Gravatar

Screencast Request: iOS / Android Adapter Example

Site Feedback • Asked by Patrick Berarducci

Hey Chris -- Thanks for all the great content. I've been enjoying it for quite awhile; you do a great job, really. I'd love to see a short tutorial on how to take a rails app or a portion of a ra...


4 posts Gravatar

How do I create two buttons that generate CSV files with different attributes?

Rails • Asked by Stephen Strange

Hello, I have two questions: 1) I would like to create a button that can generate a CSV file with one set of attributes, and another button that will be able to generate a different set of attr...


1 post Gravatar

Mailboxer: How to attach a file when starting a new conversation

Rails • Asked by Mehdi Mehrtash

I am using the Mailboxer gem. When creating a new conversation, the message that is created at that point is does not attach the file I am uploading. new.html.haml = form_tag conversations_path...


11 posts Gravatar

Ecommerce multi-step checkout with guest accounts

Rails • Asked by Sean Murphy

Hello, I've been thinking about the best approach for implementing a checkout scenario in a custom ecommerce site I've been developing and wanted to see if anyone here had advice to share. We're...


1 post Gravatar

How do I add multiple attachments to Mailboxer?

Rails • Asked by Mehdi Mehrtash

I am using the Mailboxer gem. I have enabled multiple file uploads for the attachment field. What is the best way to set up my controller so it saves all the attachments? Would making a new model c...


3 posts Gravatar

Proper location for null objects

Ruby • Asked by Alex Musayev

I've recently watched couple of screencasts on using Null Object Pattern: https://www.rubytapas.com/2017/01/31/two-screencasts-two-ways-eradicate-ruby-nil-values It was a good reminder about a ques...


5 posts Gravatar

Cookies vs token for authentication

General • Asked by Masud Hossain

You can keep a users session logged in by putting their cookies into the browser . But what about if youre using token based authentication instead and the users browser doesn't allow cookies ? ...