Ruby on Rails Community Forum

Anyone had luck with Active Storage and Cloud Front?

2
General
Hey everyone, I am working on an on demand video site that would (ideally) involve a user uploading a video via rails active storage direct upload to s3, then that video being served up via cloud...
Dalton Cole replied
Solved

Bidding App

1
Rails
I am building a website with a very specific way they want items bid on. That would be the initial bid will always be $125 and each additional bid will increase by exactly $25. So $125, $150, $17...
Chris Oliver replied

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

What is a elegant way for embedding vue component into rails view template

0
Ruby
Hi, I'm doing this way like as follow in the "***.html.erb" ``` ``` here I'm wondering if I should not vue component tag into the rails template or should I do this way? ``` <%= content_t...
Adrian Uribes posted
Solved

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

Active Query: object date within the next 30 days.

4
Rails
Hi there, I'm fairly new to programming and rails. I was wondering if someone could help point me in the right direction here. I've created a new date field in Active Record and I'm trying to ite...
Matt replied
Solved

creating multiple input fields in rails

0
Rails
<% (1..18).each do %> <%= input type="number" style="width: 8px" %> <% end %>
lucywilson posted
Solved

How I can use extra params in habtm without so many troubles?

1
Rails
I have a model `Station` ``` class Station &lt; ApplicationRecord validates :name, presence: true has_many :ways has_many :routes, through: :ways has_and_belongs_to_many :tickets def upd...
Jack replied
Solved

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 structure a Conversation between two models?

6
Rails
I have a `Store` object that has an `email_address` attribute. Using the logic from and [How To Build A Form](https://gorails.com/series/how-to-build-a-forum) and [Handling Inbound Email Parsing wi...
Taylor Cooney replied
Solved

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 =&gt; :item_linkers has_many :item_linkers, inverse_of: :recipe ItemLinker belongs_to: recipe, inverse_of: :i...
Jesus Castello replied

How to fix params require for form_for contact in multi controller view

1
Rails
I have a problem in my contact form_for, I have one contact form and I want to render my contact form in my product view. If I make that I have a problem with my require params My contact_params w...
Anthony BESSON replied
Solved

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

Learning Ruby on Rails? Join our newsletter.

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