How do I update value from one scaffold with the value of another scaffold?

2
Databases
I'm doing a project that contains a stock, I first created the stock scaffold like this: ``` rails generate scaffold stock name:string amount:float kind:string ``` And then a stock_flow scaffold ...
Tatiane Stivelman replied
Solved

Hey Guys, What is the best way to add tags and categories to a rails blog application?!

1
Rails
I'm trying to build a blog & portfolio app using rails and I want to add tags to make the content organized, I'm trying to add acts_as_taggable_on but I'm struggling with it so I thought I migh...
jaems replied
Solved

How do i save the initial time a boolean went from false to true

2
Rails
I have a boolean column in my table and a datetime related to it. I want to be able to track down when the boolean initially turns true. In the model I have tried def example if boolean_field =...
Dim Dire replied
Solved

How do I save a save a has_many association?

2
Rails
I have setup a service that parses and saves the result of an external API which all works great, however, I can't work out how to save the array of images that need to be saved in a has_many relat...
Morgan replied
Solved

HTTP, Faraday, Typhoeus or something else?

0
Gems / Libraries
I have an external JSON API that I need to parse and save and was wondering if anyone had any suggestions on what to use? I found tons of info on building a rails API but very little on consuming ...
Morgan posted
Solved

Two-factor Authentication

2
Rails
Hi Chris, please assist with creating a Two-factor Authentication like the one you have on hatch Thanks
Felender Hlungwani replied
Solved

Hatchbox.io redirecting subdomains to https

1
Servers
I tried out hatchbox.io's SSL encrypt for a new domain. And it's rerouting my `http://something.example.com` to the `https://something.example.com`. Any way I can keep it from redirecting it to the...
Anand Padia replied
Solved

Allow lvh.me with my ISP router

12
General
Hi, so I got a new ISP and when I try to use the lvh.me I get lvh.me’s server DNS address could not be found. I have no Idea what to setup in the ISP router to let the lvh.me use the correct IP 127...
Francisco Quinones replied
Solved

How do I rename a field on a model without running migrations or altering the database?

4
Rails
Hi I have a rails app that sits over an existing SQL Server database that I have no control over. Purely read only access to. I have a model like Customer with fields like CustomerCode, CustomerN...
Jacob Montgomery replied
Solved

Different Notification Types By Type

4
Rails
I am making a notification system and using the great tutorial on here to do it. I am going to have a few different channels that a notification can be sent out with: email, web push, text message,...
Steve Quatrani replied
Solved

How do I resolve this error with Stripe checkout on wizard page via wicked gem?

4
Rails
Right now I get this error message when the submit.html.erb loads: **Cannot charge a customer that has no active card.** I want to understand how I can improve my controller. The goal is to not ha...
Robert Hopman replied
Solved

ElasticSearch connection refused

3
Gems / Libraries
I am going through the ElasticSearch with searchkick video and I have installed ElasticSearch on my ubuntu box as well as installed searckick and added searckick to my model. Everytime I try to re...
RJ McCollam replied
Solved

Cross-platform rich text editing

2
General
I'm building a note-taking Rails 5 app that will be a web app and will also act as a backend for OSX and Windows apps in the future. One of the key features is the rich editing of text - bold, ital...
Nino Rosella replied
Solved

Best way to create a report/spam button?

2
Rails
Just looking for ideas on the best way to create a report or spam button/link on posts and comments. And do you typically have that notification sent to an in program inbox to an admin email, etc....
Ryan Carter replied
Solved

Hatch - Deployment - Server monitoring

2
Servers
Hello I recently switched my Rails deployment to Hatch and have been a happy customer. I would like to check if Hatch provides server monitoring for the nginx/passenger ? I have few more instance...
Sanjay Nair replied
Solved

Bootstrap Modal with Date Picker, what am I doing wrong?

8
Javascript
I have a Rails 5.1 app with bootstrap 4. I have bootstrap-datepicker throughout my application and it works perfectly or at least as expected. However whenever I try to use it within a modal it w...
jaems replied
Solved

Move a Legacy App in Production to a local Development Environment

6
Rails
I'm working with a legacy Rails app (Ruby 1.9.2 and Rails 3.2.8). The app only exists in production. There isn't a development environmnt or repo I can use to setup my dev environment. I'm on an OS...
Chris Oliver replied
Solved

Stripe connect managed accounts

1
Rails
I'm trying to add webhooks to stripe using stripe connect and managed accounts https://stripe.com/docs/connect/webhooks I'm using the stripe_events plugin and have followed your stripe webhooks vi...
josh edgar replied
Solved

Problem with deletion and recreation of same association

5
Rails
I have a user model created through devise, a stock model (generated through a scaffold) so I can create a stocks database with my own custom prices, and a UserStock model to establish an associati...
Ohad Dahan replied
Solved

How do drag and drop builders work?

3
Rails
So many website builders, form builders etc are comming to market. How do these actually work and is it possible to build something like this in rails? I'm assuming you drag an element onto a canv...
josh edgar replied
Solved

Learning Ruby on Rails? Join our newsletter.

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