Implementing global app settings

3
Rails
I am wondering what the best way to go about setting up Settings for an application. Settings will consist of name, address, phone number, and some other project specific entries. What has me a lit...
RJ McCollam replied
Solved

Why CKeditor is not working in production?!

2
Rails
Hi guys, I'm using CK editor in my rails 5 app and when I deoployed it on Digital Ocean and the editor doesn't load with this error in the console. ``` ReferenceError: CKEDITOR is not defined ``` ...
Muhammad replied
Solved

Hatch login Error

1
General
Hi Chris, I incorrectly set up Two-factor Authentication (enabled) on my Hatch Box Account , now I cant login. Please Assist
Chris Oliver replied
Solved

How can I setup Vim for rails development on Ubuntu?!

5
General
Hey guys, Lately I have been trying to switch to Vim but I couldn't because It's kinda complicated. Most of the dotfiles I found were built to setup on a Mac so I'm curious if anyone here is workin...
Chris Oliver replied
Solved

Webpacker requires Node.js >= 6.0.0 and you are using 0.10.30

3
General
I've got into bit of a mess. Posted this over on SO too, but no answers of use over there. I've added Webpacked so I can install React.js. However, I think I've somehow buggered up my PATH and ba...
Simon Cooper replied
Solved

Okay I subscribed to learn Rails.. but where do I start?

4
General
Okay, I might be coming off like a total noob (and I am one by all means when it comes to Rails) but I really need some clarity on how to get strated with learning Rails from the Episodes available...
Chris Oliver replied
Solved

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

Learning Ruby on Rails? Join our newsletter.

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