Ruby on Rails Community Forum
How to send checkbox ids to modal pop up using stimulus js?
0
Rails
I have got list of items with checkbox on the left side of each row having id of that particular row. How can I send the ids of items to the modal
using stimulus js so that I can display brief deta...
Animesh Dash posted
Crucial Resources
0
General
Hey. I would love some help making this as robust as possible. Thanks
https://github.com/tylertomlinson/crucial_resources
Tyler Tomlinson posted
How do use image-url in scss
0
CSS
I’ve watched your lesson on setting up bootstrap in Rails 6. I have a small issue though with trying to add a background image to class. I can’t seem to get image-url or assset-url to work. Probabl...
Zen Garden DXB posted
Heroku RedisCloud connexions on "Realtime Online User Tracking with ActionCable"
0
Rails
Hi all,
I'm running in a weird issue.
Following the Realtime Online User Tracking with ActionCable screencast, in an app using rails 5.2 I used:
```ruby
ActionCable.server.pubsub.redis_connection_...
Nathan Chalot posted
How do I render a partial which contains a json object and iterate over the json object and appends it to where I want it too!! Frustration level 1000
0
General
So here is the Scenario of what I am trying to do
I have a view
```
= link_to admin_page_path(page), class: "edit-#{page.id}" do
.subcategory.btn.btn-xs.btn-info{"da...
PDG+creative posted
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
Tailwind - own components - yes or no?
4
CSS
i have started with tailwindcss yesterday the first time and must say - wow!
but something is confusing me from the beginning. in tutorials/videos etc. everybody talk about: do not write your own ...
Bruno Steinmann replied
Solved
how i plot a profit_loss graph
0
Rails
i 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
inc...
Ahmedzain posted
Solved
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
Testing and Session Variables
1
Testing
In my Rails 5 app I am using Pundit for authorization with a custom context. I have a multi-tenant application and I have an `Enrollment` model that joins my `User` and `Tenant` model. This was a...
Dan Tappin replied
Solved
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
How do I store audio files in production?
2
Rails
Hey guys!
I'm working on building a Rails app for a friend of mine - this app will be for her to host episodes of her podcast. I've already decided to use something like [SoundManager](http://www....
Chris Oliver replied
Solved
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