How do I allow the owner of a group add new moderators?

1
Rails
Hi, I am trying to develop similiar functionallity to Shopify where the owner of the store can add new managers to the seller account and allow them to manage orders. However, in my case its just `...
Taylor Cooney replied

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

Was wondering id there is a way i can simply this ...

6
Rails
I was wondering if there is any way I can simplify this code, Ideally, I don't want to be looking up brands that are associated with the user, i want to do it on hit. ``` #Gets the ID associated t...
Alan Reid replied
Solved

How do I add opensearch to a Rails app

3
General
I'm talking about the feature in chrome, it's present on GoRails, where if you type the URL of the site and hit Tab, you're able to search the site from the Chrome omnibar. I've gotten this to work...
Chris Oliver replied

Hotwire Modal Forms Discussion

25
General
Thanks a lot for this video! I see it's becoming a trend to add a `format.turbo_stream` response in all my controllers only if it fails.
Fernando Flores replied

How do I handle Koala error

2
Rails
After watching [Facebook API and Auth Tokens with Koala](https://gorails.com/episodes/facebook-api-and-auth-tokens-with-koala), I decided to implement it. However, I made a mistake in my logic and...
Alexey replied

Issues with JQuery AtWho

5
Javascript
Hello, I enjoyed your screencast on implementing the @ functionality for user interactions. What I'm trying to figure out is how to handle the index.json.jbuilder when using devise jQuery -> ...
Lee Terng Gio replied

Flash Messages and Toasts with Hotwire & Turbo.js Discussion

25
General
Nice! I've been playing with Turbo and that comes on perfect timing, thanks! But didn't you think that feels wrong? We used to have the controller do all of that for us with the redirects and fla...
Chuck replied

Setup Ubuntu 18.04 Bionic Beaver Discussion

18
General
nice guide... i tried it with sucess on ubuntu 18 !DISTRIB_ID=UbuntuDISTRIB_RELEASE=18.04DISTRIB_CODENAME=bionicDISTRIB_DESCRIPTION="Ubuntu Bionic Beaver (development branch)"rbenv version2.5.0 (se...
Nezir Zahirovic replied

Saved messages as HTML

3
General
Hi Chris, I'm wondering, on your episode https://gorails.com/episodes/message-templates, would it be possible to have one of the saved messages as HTML? I've tried entering ```testthis is a te...
Chris Oliver replied
Solved

Database structure advice

1
Databases
Hi all, I need advice on what to do with an existing table on an existing app. Right now the table is used to store details about a property and its closing costs. Normally there are always a h...
Chris Oliver replied
Solved

Error message is displayed One to one relationship with Ruby on Rails

1
Rails
Hi Everone, i am trying to create one to one relationship with ruby on rails5. 1. I ahve created the Dubject model in the below format class Subject < ApplicationRecord has_one :page ...
Jacob Montgomery replied

Rails 5's ActionCable and Websockets Introduction | GoRails - GoRails

27
General
Great Post. Thanks
Someone replied

Tracking Rails App Usage with Analytics

3
Rails
Hi I notice this site uses Google Analytics to track usage. Is that the standard when it comes to tracking your rails apps? I know it is generally pretty standard in the case of my websites but fo...
Chris Oliver replied

Rails for Beginners Part 17: Login Form Discussion

8
General
It would be great to show how to do login with both username and email as well.

undefined method username after update

0
General
Forum_threads Controller class ForumThreadsController < ApplicationController require 'forum_controller' before_action :authenticate_user!, except: [:index, :show] before_action :set_foru...
Erick Sitter posted

How To Add Impersonation To Rails Authentication Generator Discussion

9
General
I really love how flexible and easy to customize the new Rails 8 authentication generator is. Think we should cover 2 Factor Auth next?

custom method in class to perfom simple calculation

4
General
Hi Chris, Checkout mt simple scenario below: I am trying to get the total count of all absent and present person from an attendance sheet here are my models. class AttendanceSheet < Acti...
shakycode replied

Elasticsearch server with Hatchbox timing out

19
General
Got another hatchbox issue trying to figure out. With elasticsearch now, I have a dedicated cluster that only runs elasticsearch. In the ENV there is the elasticsearch_url and ive SSH into the el...
Chris Oliver replied

Best Method For User's Dashboard?

1
Rails
Hi, I am looking for advice on the best way to organize a dashboard to show the user various information from across different models. I was considering just generating a DasboardsController, ...
Kevin Vanzandberghe replied
Solved

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

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

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