
How is it done to pass default values in the controller?
4
Rails
Some values by default and others by strong parameters from the views
Nicolás Bobb replied
Solved

Creating usergroups
1
Rails
I am creating an application where users can belong to groups and those groups can belong to a map.
In order to link a user and group together I created a model called usergroup. I listed the mod...
Chris Oliver replied
Solved

How to create many subcategories in rails?
1
Rails
Without using any gems how do I do this in rails? I see the gem Ancestry (https://github.com/stefankroes/ancestry)
```
Main Category
Sub Category
Sub Category
Sub-sub Category
Main Category
Su...
Solved

[Newbie] How can i keep data while "add field" or "change fieldname" in model?
1
Rails
sorry my english.
if my user model have
```
t.string :name
t.string :age
```
and data
```
1 : John / 34
2 : Tom / 25
```
if I want to add a field and change field name
```
t.string :english_name ...
Nicolás Bobb replied
Solved

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