
How do i log user out from subdomain using devise
0
Rails
hi guys i am trying to build a blog platform like hashnode/substack where user register on root domain and create blog. I am currently using devise and i have set up subdomain routing. My question ...
Henry posted

Rails for Beginners Part 25: Twitter Account Model Discussion
21
General
Hi! After setting the twitter_account model, before accessing Ruby console and running the "User.last.twitter_accounts" command, shouldn't we run 'rails db:migrate' to actually create the table in ...
Andrii Mishchenko replied

What is the cost of iOS app development?
1
General
Hello everyone!
I'm interested in developing an iOS app and I'm curious about the cost involved. Could anyone share their experiences or insights regarding the cost of iOS app development? Any ti...
Urban Luis replied

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

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

CanCanCan, Pagy, and MeiliSearch, How to combine the 3 gems?
5
Rails
I'm working on a project that has Cue model that could be accessed and searched by multiple roles like guest and admin. The authorization happens using CanCanCan gem based on some logic written in ...
mariakennet 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