Ruby on Rails Community Forum
Segment Analytics integration, my home page pageview event is firing twice in rails 6
0
Javascript
Hi, has anyone had the issue of their home page pageview firing twice for one page view in rails 6 when they've installed Segment? I've added the Turbolinks snippet, but not sure where the problem ...
Tom Connole posted
Sr. Software Engineer (Ruby on Rails) @ FilmFreeway
0
Ruby
Sr. Software Engineer (Ruby on Rails) @ FilmFreeway
$100k - $160k
0.05% - 1.0% (Equity)
Las Vegas, NV
Full Time or C2C
NO Remote
JD: https://newton.ai/jd/ff_sse
Please send me an invitation on Lin...
felipe posted
How do I deploy my api rails 5.2 in AWS ec2?
1
Rails
I'm following the tutorial: https://gorails.com/deploy/ubuntu/18.04#ruby
But I'm getting stuck on:
01 ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `r...
EstherLewis replied
How do I create a new rails application with ubuntu and postgresql
0
Servers
I'm currently trying to create a new rails app. I can easily do this with `rails new app --database=postgresql` but when I change the `database.yml`, I'm using the same user for every application f...
Arnas Klasauskas posted
Webpacker: How do I use images inside my .vue single file components?
0
Rails
We're using Rails and Webpacker with Vue single file components.
How do we insert images inside the `` ? A far as I can see there are many options.
**OPTION 1**:
Use .vue.erb (with webpacker erb...
TL posted
How add PurgeCss with TailwindCss?
1
CSS
https://next.tailwindcss.com/docs/controlling-file-size
postcss.config.js
```
const purgecss = require('@fullhuman/postcss-purgecss')({
content: [
'./**/**/**/*.erb',
'./**/**/**/**/*.e...
Chris Oliver replied
How to pass the value of input type radio in application_helper?
0
Rails
I am creating an admin template, and there is a customizer section in which I have created 3 radio buttons (named: Red, Blue, Green). There is a left sidebar navigation menu and I want to change ...
theshashiverma posted
Working with rails caching
1
Rails
Rails.cache.write('name','Hello this is string' , :expires_in => 1.week)
Rails.cache.read('name')
i use these syntax but always it's nil
=> nil
Jesus Castello replied
How do I add HTTParty to ActiveJob ?
1
General
I'm currently trying to make a GET request with ActiveJob. It looks like everything is working, but somehow the GET request isn't saving in my database.
This is my TypeformJob:
```
def perform(c...
Chris Oliver replied
How do I add radio buttons to devise signup form ?
0
General
I'm currently trying to add radio buttons to the devise signup form, the problem is that I dont know how I should write the migration, should it be a boolean, an integer or a string ?
The user can...
Arnas Klasauskas posted
Controller loop for has_many_through associations
1
Rails
I have the current models setup in my Rails app:
```
Recipe
has_many :items, :through => :item_linkers
has_many :item_linkers, inverse_of: :recipe
ItemLinker
belongs_to: recipe, inverse_of: :i...
Jesus Castello replied
How to resolve the master.key problem with a Rails 5.2 dockerized project, using Gitlab CI ?
3
General
Hi everyone,
First, a great thank you for this platform: I learned a lot here!
I'm trying to deploy a dockerized Rails 5.2 application, using Gitlab CI/CD... First steps were going fine, but when...
Chris Oliver replied
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
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