Rails credentials returning nil

8
General
I have a Rails 6.0.0beta2 app and I'm having trouble reading my credentials. When I do rails credentials:edit I can add credentials and they're saving just fine. ``` aws: access_key_id: 123 s...
Valeriia Chavdar replied

Edit user profile with devise if user signed up with facebook omniauth

3
Rails
Hello. I use 2 gems (gem 'devise' and gem 'omniauth-facebook'). The user is able both to sign_in ou sign_up with facebook. If a User did a regular sign up in the past, he's found by email, and if ...
Ubuntus replied

Controller naming...

3
Rails
Evening all, So i have a question about naming controllers. Which would be best to use? MyOrder or MyOrders Is it just the DB which get pluralised?
Alan Reid replied
Solved

has_and_belongs_to_many associations

6
Rails
Im building an app where a `User` belogns to several projects. Is this a good approach to create a "join table" that just tracks which `Projects` are connected to which `Users`? Is the `Collaborati...
Lauro replied
Solved

Primer on Rails 5.1's new UJS library Discussion

4
General
Hey Chris, thanks for this guided tour, very useful! Rails.ajax(...) will be super helpful.I found some other changes in UJS behaviour since the rewrite, particularly in handleRemote's function cal...
WilliamCass replied

How to extract from MS Word or Google Docs

1
Ruby
Hi! does anyone know how to implement a feature that extract the content from microsoft word or google docs and keep its as rich_text? thanks!!
MatthewHicks replied

'Uncaught ReferenceError: Rails is not defined' even after importing it in application.js file

0
Javascript
hello, i am really new to Rails. I wanted to make ajax call to a function in controller. I have following in my view: ``` function fetchMessages() { // Get user input from text field let inpu...
anujmohatkar posted

Building A Hosting Platform in Ruby Discussion

11
General
Just thought I would share this in case anyone is interested how Hatchbox.io works. 👍

How do I build a multi step wizard in ruby with StimulusJS

6
Ruby
Hi GoRails, I would like to make a multistep wizard in ruby on rails without making use of the wicked gem. Just stimulusJS and ruby :) Could you make a tutorial about that? Thanks in advance!
Fatih replied
Solved

Multi-step forms, without a gem?

1
Rails
I am looking for a good way to get multistep forms working, I have seen a couple of ways to do this and each has their own merits. Now I would like to be able to navigate back and forth between t...
Fatih replied

The Unusual Error when rendering the main page at start

0
General
Hi, I am having this unusual error where I have created the view, models, and controllers for a page with home and about views. I have also set the routes to point to the pages#home, but the view ...
Asim Mehmood Khan posted

SQL Learning Path - Creating and Dropping Tables Discussion

0
General
One fun tip; You can have multiple statements in the Query editor and hi-light the statement that you want to run and it will only run that statement. For example, you could have both statements i...
Eric Halverson posted

How to download multiple files from s3 on fly?

3
Rails
Hi, I am able to download files from s3 as a zip by using below mentioned code. require 'open-uri' def download_all_files folder_path = "#{Rails.root}/public/downloads/" zipfile_name = "#{...
mamatharao replied

How to work with nested methods correctly

2
Ruby
I am trying to figure out how to pass parent arguments to child arguments of a nested method block so I would like to do something like ```ruby namespace "top" do namespace "middle" do names...
Freibuis replied

Setup Ubuntu 20.10 Groovy Gorilla Discussion

2
General
Hi! How are you? When I try this: curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add ---> Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt...

Testing Rails ActionCable with Devise Discussion

1
General
Can't we just use sign_in and sign_out helpers from the Devise, instead of stubbing out Warden?
Matthew Kennedy replied

Copy Link To Clipboard Discussion

0
General

Adding Link Integration Tests Discussion

0
General

Challenge: Add Users To The URL Shortener Discussion

0
General

Creating The Link Model Discussion

0
General

Learning Ruby on Rails? Join our newsletter.

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