Ruby on Rails Community Forum

My first gem

0
Rails
Hi, I have implemented my first open-source gem and I would like to share it with you all. It's for validating request parameters outside your controller logic: https://github.com/felipefava/requ...
felipe posted

How can I integrate the number of users in a room?

0
Rails
This is very cool tutorial https://gorails.com/episodes/group-chat-part-7. Now I want to integrate the number of users in the room there. How can i do it? Thanks
ilikali posted

Rails Complex Model Association, Shared Document Between Users and Teams of Users

0
Rails
I have a relatively complex model association in mind, and was wondering how I could accomplish it. In essence, this is what i want to accomplish. - I have a User model, and a Document model - U...
Ibraheem posted

How do I create localized dropdowns with countires and cities?

2
General
Hi, I want to create a webpage (localized) with venues that have address (geocoded) and than search them by dropdowns/search field(autocomplete) in the area of X miles/km around location, so that ...
Casey Morris replied

In-App Navbar Notifications Discussion

55
General
Thank you thank you thank you!
Ken Hibino replied

Problem deploy with Capistrano

1
Servers
HI! Deploying with Capistrano is a continuous challenge. After overcoming a few bugs, now I am stock with the following error. Any idea? PLEASE! INFO [1fd8e2f6] Running $HOME/.rbenv/bin/rbenv e...
Bina Darabzand replied

how i plot a profit_loss graph

0
Rails
have income,expense, user controller i want to plot a graph of currrent user profit i calculated it in model. def total_expense expenses.pluck(:amount).sum end def total_incomes incomes.pluck(:amo...
Ahmedzain posted

Setup MacOS 10.15 Catalina Discussion

0
General

Share session across multiple Rails micro-services using CookieStore

1
General
Has anyone successfully made multiple Rails 6 applications share the same session cookie? I have two applications: login and admin. Login authenticates the user and sets a session cookie after whic...
Ricky replied

Getting Cookie Overflow in rails application(REDMINE)

0
Rails
ActionDispatch::Cookies::CookieOverflow (ActionDispatch::Cookies::CookieOverflow): actionpack (4.2.8) lib/action_dispatch/middleware/cookies.rb:529:in `[]=' I am getting this error when hitting re...
Uttam Sapkota posted

Rails 6 form_with will not pass resources with Association

2
Rails
I am using Rails 6. I have a form that I need to pass `remote: true` so I get POST to process as JS: `LOG: MessagesController#create as JS` Here is what I have tried: `<%= form_for [@hangou...
Jim Miller replied

Multiple Users with Devise

3
Gems / Libraries
Hello! I'm new here. I'm currently working on an app and I'm trying to wrap my mind around how I want to handle authentication using Devise. I've read the past threads that were similar to my situa...
Chris Oliver replied

Deploy with problems

1
Rails
hello everyone I have installed a ruby ​​and rails application in vps of dreamhost with many problems and I have solved a lot but apparently this is too big or very complex. Just starting with this...
Chris Oliver replied

Could not find gem 'turbolinks (~> 5) x86-mingw32' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems.

3
Rails
in your problem for rails server Could not find gem 'turbolinks (~> 5) x86-mingw32' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems.
Mayneth replied

CSS Beginner Need Help

2
CSS
Hi, i am new to CSS and HTML and i have been trying to make the background of my HTML site an image, but it doesnt seem to work and the image does not appear on my HTML after i have refreshed the p...
AfjalKhan replied

I tried to align this TEXT center.

2
CSS
Okay. So I guess the title gives it away. I’m a real noob when it comes to CSS. Like I’m good with JavaScript and have been working with ReactJS and Angular for a while now. But I just can’t seem t...
serjio replied

Any video or guide how to do multi-image uploads with Shrine using Stimulus?

0
Rails
I'm new to rails and I just realised that activestorage doesn't support CDN's.. I'm trying to figure a way how to do multi-image uploads with Shrine using stimulus but I can't seem to find any gui...
Arthur Truong posted

best way generate pptx file in ruby/rails like prawn PDF

0
Ruby
I love prawn PDF for generate pdf file , i need gems like prawn for generate ppt/pptx file in ruby . what I need * Table with some style * multi pages * Add image and add above some text * add s...
TalaatMagdy posted

How do I update a model with has_many :through association in grouped_collection_select

0
Rails
I have the following models: ``` class User < ApplicationRecord self.table_name = 'user.users' has_many :user_sources has_many :sources, through: :user_sources, foreign_key: :source_code e...
MH posted

How to implement cursor based pagination

0
Rails
Hi! I'm new to RoR. Followed [Chat Series](https://gorails.com/series/realtime-group-chat-with-actioncable) and want to improve it using infinite scroll. When user reaches top of box I want to load...
Daniyar Baitursynov posted

Learning Ruby on Rails? Join our newsletter.

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