Search Results for "active-pages-user-s"

Lessons











Forum Threads

Remember Me in Devise fails to Login User

2
Gems / Libraries
If I don't use `remember_me` option, it works perfectly fine. The app flows as expected. However, if I check `remember_me`, it will login in as expected, redirect me to a protected page, which wi...
Szedmák István replied

How do I allow viewing of a paranoia soft-deleted show page?

6
General
I added paranoia gem to my cms application from your soft delete tutorial. I would like users to still be able to access the show page of soft deleted items -- this is where I would add a restore ...
Chris Oliver replied

Using will_paginate and .limit(x) together.

6
Rails
Hi It appears that will_paginate and .limit(x) will not work together. So this didn't work: (I am trying to get 150 most recent records and paginate them) @articles = Article.where.not(site_i...
Simon P replied
Solved

Non Restful actions in the controller

6
Rails
I originally asked this question about building a reporting feature in my app https://gorails.com/forum/advice-on-building-a-reports-feature. I'd like to simplify this question even further. I wan...
shakycode replied

Chartkick and impressionist gem render not working

32
Rails
**EDIT 1** Here is a screenshot of the [current graph](https://gyazo.com/6dfa1edbfe15a5f8f80f424c681ff690) **Original Post** I'm using both chartkick and the impressionist gem and I seem to be r...
Ben John Bagley replied

JSON:API Format and Active Model Serializers Discussion

18
General
Very nice video as always, but there's an editing problem on your video. Check it between 15:00 and 17:00. You actually repeat the same thing twice, but the wordings you use is different, I guess y...
regedarek replied

Authenticating Blog Admin Pages Discussion

18
General
Hi, Is it necessary to add @blog_post behind the edit_blog_post_path in the last part of the video or can that be left out as well? <%= link_to "Edit", edit_blog_post_path if user_signed_in? %>
Chris Oliver replied

Form Objects Design Pattern Discussion

15
General
Nice episode, I've been using forms like this all over the place, especially when an AR object can be saved via many different use cases with many different "valid" states. One quibble, seem more ...
Jasper Wilde replied

Deploy Ubuntu 22.04 Jammy Jellyfish Discussion

46
General
Thanks a lot for this step by step guide! Anyway, I'm facing a problem with Passenger. After deploying the app, I see this in the nginx logs: Error opening '/home/deploy/my_app/current/Passengerfi...
Hamdan M replied

Iam desperately trying to deploy my App with Capistrano but it isnt working

2
Rails
Hey Folks, I have always received great help here, so I hope that it will work out this time so shortly before the end. I would like to deploy my app on my server and use capistrano. However, I c...
Sebastian replied
Solved

Liking Posts Discussion

96
General
Learned a lot of new things through this post, thank you. Never knew how to properly write a route to a module or the proper architecture for that set up. Very useful stuff. Would have liked to s...
Someone replied

Exporting Records To CSV Discussion

58
General
Is there some magic happening when you call @users.to_csv ?? As I understand @users is an ActiveRecord::Relation, how is the method 'to_csv' sended to the User class ??
Nathan Anderson replied

Active Admin Authorization by CanCan gem when User and ActiveAdmin have same model

0
Rails
I already had a User model with different roles handled by cancan gem. Now i have implemented active admin gem in the same User model with another role. Now i could not figure out how to restrict a...
Shaheryar Imtiaz posted

How do I create a delete button for images uploaded with Active Storage

2
Rails
I am creating a user interface for users to upload images and delete ones they've already uploaded. It is using Rails 5.2 Active Storage and Amazon S3. The issue I am experiencing is similar to t...
Dmitriy replied
Solved

Architecture for subscription with multiple users per account

1
Rails
Hi all! I developed an app that uses Apartment for multitenancy, Devise for authentication and Pundit for auth. Each tenant is represented by a business (business model), where the id is also the ...
Luca Rossi replied

How to use Stripe Checkout in Rails Discussion

24
General
Thank you so much!
Aaron replied

Updating Nested Form / Model Attributes

1
Gems / Libraries
I have a nested form on a Devise signup page. The user signs up and then they also fill out their company info (Name , Address etc.). My User and Company model are associated through a Role model...
Chris Oliver replied

Rails 6 + ActiveAdmin + ActionText

1
Rails
I need to create an app with video + blog content, users, permission etc that includes a CMS to change and rearrange content easily. Anyone integrated ActionText into ActiveAdmin - what would b...
Chris Oliver replied

How to process form_with using GET request as XHR

0
Rails
I'm working on a Rails 6 app, and want to update page view based on a dropdown value selected using XHR. Dropdown must use **GET** method coz I am calling **index** action. I am using form_with wh...
Maaz Siddiqui posted