How do I get bin/rails app:template LOCATION=.. to actually work? (rails template with existing app)

7
Rails
I remember Chris mentioning in the "Rails Application Templates" video that he was covering only templates for new rails apps because applying templates to existing apps is "complicated." I'm begin...
Jeff Helman replied

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

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

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 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

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

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

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 &lt;%= form_for @effort, data: {remote: true} do |f| %&gt; ...
kriera posted

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: &gt; Uncaught TypeError: Cannot read property 'append' of null ...
Steven Torrence replied
Solved