Ruby on Rails Community Forum
How do I add multiple subscriptions to one user ?
3
General
I'm able to assign multiple subscriptions to a user, but the problem is that everytime I assign a new subscription to a user, I'm overriding the subscription_id.
I can still show the user all his ...
Chris Oliver replied
Flagging Videos with Obscene Content
0
Gems / Libraries
Hey, all!
I'm trying to take the next logical step for my website.
So far I am using a language filter [gem](https://github.com/chrisvfritz/language_filter) to help catch explict **text** conten...
Steven Torrence posted
How to setup Stripe Payments for European Countries
0
General
I'm currently trying to implement Stripe. I already did it before, but Stripe made some changes for European Countries. Now I would like to implement subscriptions. I'm quite getting a headache wra...
Arnas Klasauskas posted
find_by not returning array but class insance
0
Databases
What am I missing please?
class Choice < ApplicationRecord
belongs_to :choiceable, polymorphic: true
belongs_to :room_item, optional: false
end
create_table "choices", force: :cascade do...
jason Mardell posted
Send in-app invitations?
0
Rails
I'm building a platform where Users belong to Teams, and I want whoever creates a team to:
a) Be added as a team member, potentially with a particular status ("team_owner")
b) Be able to send inv...
David Oudiette posted
Have Stripe public key show up
3
Rails
Hi Chris,
I went through the master class for Stripe and your DigitalOcean tutorial. Attempting to combine my knowledge. I was able to deploy the app:
http://165.22.132.173/pricing
As you can se...
Chris Oliver replied
Solved
Mocking HTTPParty response
0
Ruby
I am trying to mock/stub a method that returns a http party response. I am not sure if my construction of HTTPParty Response object is correct.
```
httparty_req = HTTParty::Request.new Net::HTTP::...
Ashwin Bhaskar posted
public/javascript/lib files not available in production
5
Rails
I have added some javascript files to pubic/javascripts/lib and I have referenced them thus
... type="text/javascript" src="/javascripts/lib/add_all_plots.js" ...
They can be loaded in dev no p...
Chris Oliver replied
How to integrate NTLM ?
0
Rails
How to integrate NTLM Authenticate to Microsoft's Active Directory ?
Viral Mistry posted
How to add an image to prawn pdf?
0
Rails
I'm wondering how to add an image to a prawn pdf from active storage. I've tried a number of ways and can't seem to get it to render.
Thanks in advance,
Steve
Stephen Sizer posted
Archive old pages to a static page
1
Rails
Maybe a weird question, but I have a report dashboard application, where a specific report contains a lot of records in the database. In general users only check the last 3 reports frequently, so I...
Jesus Castello replied
Multiple forms one submit.
0
Rails
Hi there!
I've a view that needs to generate a form table, based on clients and days. For 7 days it creates
View (i've tried to do
<%= form_for @effort, data: {remote: true} do |f| %>
...
kriera posted
Can someone please do me a big favor?
2
General
Hi Guys! I don't know if this is right or wrong for posting this here. If wrong, you can please notify me and i'll delete this off.
I'm a big fan or Chris and GoRails because of the really nice tu...
Tolase Kelvin Adegbite replied
jquery doesn't work in js.erb file
2
Rails
Hey I'm working on an rails 6 application and try to render an partial in an js.erb file but get this error in the chrome console:
> Uncaught TypeError: Cannot read property 'append' of null
...
Steven Torrence replied
Solved
How do I change timezone in Ahoy analitics gem ?
1
Rails
I search a lot but no result
ramzieus replied
Solved
Fullcalendar-Scheduler Timeline is not show events in Rails 5.0
0
Rails
Hello, I am using postgres as database, rails 5.0 and ruby 2.4. The problem is, that I have this pur html calendar unsing timeline and timegrid, works ok, when I pass it to my RoR project, only wor...
erniux third posted
How to post remote action and no redirect? ActionCable Series
0
Rails
Trying to submit a form that has a create action in another controller but does not redirect to or render the page (just stay on the page).
Error:
```
MessagesController#create is missing a templa...
BrandonKlotz posted
User Onboarding Progress Bar Discussion
8
General
Great episode! One thing that would improve these for me would be to include testing. Thanks
Taylor Cooney replied
Bootstrap class on individual tags in tag list
0
General
Hi Guys,
I am using the "acts as taggable on" gem and it's working perfectly. The issue I'm having is trying to style the individual tags in the list. I have the code below but it applys the pill...
Gerard Donnelly posted
in app notifications using stimulus and ujs
6
General
I am attempting in app notifications similar to how Chris did it in the tutorial but trying to update it to use Stimulus but i my data-target doesn't seem to be in scope in the ajax success callbac...
Joel replied