Ruby on Rails Community Forum

[HELP] How configure "pundit" to display items belonging to a parent bond

1
Gems / Libraries
I lost hours to solve it, but I know, I am a newbie =X. My use case is, if the user have role `:agency`, he can see clients. But I have to use the link between the client's agency to verify this. ...
Bruno Wego replied

Added last_read_at to chatroom_users_controller: No method error

11
General
Added the following to my chatroom_users_controller but keep running into a NoMethod Error. ``` def create @chatroom_user = @chatroom.chatroom_users.where(user_id: current_user.id).first_or_cre...
Rob Sturcke replied

Avoid devise automatic sign-in after email confirmation

1
General
After email confirmation, devise automatic sign-in users, how configure devise to avoid that? ```rb # devise.rb Devise.setup do |config| config.mailer_sender = 'noreply@secret.com' end ``` ```r...
Bruno Wego replied

How do I integrate Doorkeeper gem with a Multitenant SaaS Application?

0
General
So I have a Multitenant SaaS Application where users signup, pay, create an account and start using the service. Now I have received a requirement where this service needs to have a andriod client ...
Aniket Rao posted

Can you make an episode on Recurring Events- recurring_select + ice_cube

17
Site Feedback
Can you make an episode on this! I've gotten to the point of adding recurrence rules, but having trouble generating and showing events that are recurring on future dates the same way they appear r...
Francisco Quinones replied

Multiple role based authorization

1
General
Hello friends, I have a handful of doubts in an interesting senario, I hope can give me a little help. My application uses angular with [ng-token-auth](https://github.com/lynndylanhurley/ng-token-...
Jeremy Bray replied

What's the best way to install a robust system which checks if an event is over-booked in Rails?

1
General
I need to create a system for my Events site that monitors the number of bookings being taken to ensure an Event does not become over-subscribed. What is the most effective (DRY) way to do this? ...
Jacob Montgomery 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

Can products like APPSUMO or Sumome be built using rails?

2
General
So say i wanna build a website widget where people can install it with a few lines of codes. And in that widget users are able to sign up for my website or see certain information that's on my webs...
Masud Hossain replied

How do I add Ransack in my posts controller?

11
General
I am new to rails so this might be an easy question. I am trying to figure out the best way to add ransack to my posts index action. # Ransack @q = Post.ransack(params[:q]) @posts = @q.result(di...
Chris Oliver replied

How do I read an incoming webhook post in Rails 4.2

1
General
I have something along the lines of this: case request.request_parameters.keys.first when "new_subscription_notification" when "canceled_subscription_notification" deactivate_subscription...
Chris Oliver replied

Which gem is the best for dynamic image resizing from an S3 URL?

2
General
Hi, Which gem is the best for dynamic image resizing from an S3 URL? I know i can pre define this, but I have hundreds of people using the product with endless uses cases I'd like them to specify t...
Robert White replied

Searchkick: Reindex on model in multitenancy through default scope app

28
General
Has anyone had any success indexing their multitenant data with searchkick? I followed the suggested article in the readme (https://www.tiagoamaro.com.br/2014/12/11/multi-tenancy-with-searchkick/) ...
Chris Oliver replied

Hey how can I add "working days" to a task model and "working hours" to a shift?

0
General
Hey I would like to add "working days" to a task model and "working hours" on a shift model wich belongs to the task model. So that I can select on which days a task will be repeatedly done and as...
Drilon Buzuku posted

Issue with devise

2
Rails
Hi all, I am getting this error when i reset passwords - it throws to this error message. It still sends out the email, and allows me to reset the password. Any ideas whats causing this so i can fi...
Bill Tihen replied

How do I showcase ruby skills for Backend Developer in Mind

0
General
Hi guys, It may be out of topic but got to ask and get some help. If We are going for Ruby Developer role (specifically for the Backend type), how do we showcase our skills ? Is it by building a ...
Nahwin Rajan posted

Problems Viewing Videos

11
Site Feedback
I am having a lot of problems watching the videos here the last couple of weeks. Multiple videos on different laptops and different browsers. The videos freeze constantly and I have to reload the...
Thomas Bush replied

How do I separate out the devise form like gorails.com (edit profile, edit password)?

3
General
I've followed this link https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-password, but would like to just use the update action and not have to use update_password &am...
Frank replied

Building an enterprise app that has revision control similar to github (any gem that does something similar to this?)

2
General
I'm looking to create a webapp that lets users upload and save files similar to github (except no terminal usage. Users upload through the website) and have version control so they can retrieve pre...
Masud Hossain replied

Video request: react-rails + caching

2
Site Feedback
idk if this is the best place to include screencast requests... Would love to see advance tutorials on using react with rails. A specific one would be caching best practices in react.
Ayo Jimoh replied

Learning Ruby on Rails? Join our newsletter.

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