# Uncategorized

**URL:** https://www.ruby-forum.com/c/uncategorized/1.md?page=5

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 6

---

## [Ruby on Rail hosted on Heroku](https://www.ruby-forum.com/t/ruby-on-rail-hosted-on-heroku/260356)

<div class="topic-metadata">

**Author:** [@JACUK](https://www.ruby-forum.com/u/JACUK)\
**Replies:** 0\
**Last updated:** [October 12, 2020, 11:44am UTC](https://www.ruby-forum.com/t/ruby-on-rail-hosted-on-heroku/260356 "2020-10-12T11:44:56Z")

</div>

Hi, Hope someone can steer me in the right direction. A client has asked me to take over a website developed by another company using Ruby on Rails and hosted on Heroku. On my initial look through it seemed relatively …

---

## [Raising a new exception in rescue also outputs the original traceback](https://www.ruby-forum.com/t/raising-a-new-exception-in-rescue-also-outputs-the-original-traceback/260344)

<div class="topic-metadata">

**Author:** [@Wonderer](https://www.ruby-forum.com/u/Wonderer)\
**Replies:** 2\
**Last updated:** [October 9, 2020, 7:17pm UTC](https://www.ruby-forum.com/t/raising-a-new-exception-in-rescue-also-outputs-the-original-traceback/260344 "2020-10-09T19:17:34Z")

</div>

Description If a new exception is created and raised from within a rescue block then the traceback begins with lines from the old exception that was being rescued. What I expected and wanted was just the traceback for t…

---

## [Fedena customization](https://www.ruby-forum.com/t/fedena-customization/260331)

<div class="topic-metadata">

**Author:** [@thekwachashop](https://www.ruby-forum.com/u/thekwachashop)\
**Replies:** 0\
**Last updated:** [October 5, 2020, 1:30pm UTC](https://www.ruby-forum.com/t/fedena-customization/260331 "2020-10-05T13:30:19Z")

</div>

Hello there, I am looking for someone with experience of customising fedena. This is not a one off project as we will like to retain the correct candidate for support and upgrades. Please get in touch if you have custo…

---

## [Comma used to separate keys and values in hash literals until 1.9](https://www.ruby-forum.com/t/comma-used-to-separate-keys-and-values-in-hash-literals-until-1-9/260289)

<div class="topic-metadata">

**Author:** [@jgomo3](https://www.ruby-forum.com/u/jgomo3)\
**Replies:** 1\
**Last updated:** [September 25, 2020, 7:51am UTC](https://www.ruby-forum.com/t/comma-used-to-separate-keys-and-values-in-hash-literals-until-1-9/260289 "2020-09-25T07:51:10Z")

</div>

I’m reading “Programming Ruby 1.9 & 2.0” and there is a footnote that states: “As of Ruby 1.9, a comma may no longer be used to separate keys and values in hash literals. A comma still appears between each key/value pai…

---

## [Replacing blank character in array with a letter](https://www.ruby-forum.com/t/replacing-blank-character-in-array-with-a-letter/260279)

<div class="topic-metadata">

**Author:** [@Temceo](https://www.ruby-forum.com/u/Temceo)\
**Replies:** 2\
**Last updated:** [September 21, 2020, 7:08am UTC](https://www.ruby-forum.com/t/replacing-blank-character-in-array-with-a-letter/260279 "2020-09-21T07:08:01Z")

</div>

Hi, everyone. I am new to Ruby. I am trying to write a hangman programme where a user is presented with is presented with blanks. As they correctly guess a letter, the letter will replace the blank. I have written mos…

---

## [How i control appliances of home?](https://www.ruby-forum.com/t/how-i-control-appliances-of-home/260274)

<div class="topic-metadata">

**Author:** [@kitchenservices](https://www.ruby-forum.com/u/kitchenservices)\
**Replies:** 0\
**Last updated:** [September 18, 2020, 6:25am UTC](https://www.ruby-forum.com/t/how-i-control-appliances-of-home/260274 "2020-09-18T06:25:44Z")

</div>

Hello, i am looking for to control appliances like kitchenservices through any specific hardware such as like arduino, zibu board but i am not sure about these hardware, Please any body to suggest.

---

## [Animation courses in chennai](https://www.ruby-forum.com/t/animation-courses-in-chennai/260262)

<div class="topic-metadata">

**Author:** [@arena](https://www.ruby-forum.com/u/arena)\
**Replies:** 1\
**Last updated:** [September 14, 2020, 8:34am UTC](https://www.ruby-forum.com/t/animation-courses-in-chennai/260262 "2020-09-14T08:34:49Z")

</div>

Which is the best animation courses in chennai?

---

## [Ruby in docker container, I have a problem executing script by crontab](https://www.ruby-forum.com/t/ruby-in-docker-container-i-have-a-problem-executing-script-by-crontab/260089)

<div class="topic-metadata">

**Author:** [@antikurjers](https://www.ruby-forum.com/u/antikurjers)\
**Replies:** 2\
**Last updated:** [September 6, 2020, 3:00pm UTC](https://www.ruby-forum.com/t/ruby-in-docker-container-i-have-a-problem-executing-script-by-crontab/260089 "2020-09-06T15:00:46Z")

</div>

Hi! I made docker: Dockerfile: FROM ruby:2.7 RUN mkdir /usr/src/app WORKDIR /usr/src/app COPY Gemfile Gemfile.lock ./ RUN gem install bundler RUN bundle install COPY ./ ./ RUN chmod +x docker-entrypoint.sh CMD…

---

## [Best free and secure proxy for linux?](https://www.ruby-forum.com/t/best-free-and-secure-proxy-for-linux/250953)

<div class="topic-metadata">

**Author:** [@bt1397](https://www.ruby-forum.com/u/bt1397)\
**Replies:** 5\
**Last updated:** [September 4, 2020, 8:10pm UTC](https://www.ruby-forum.com/t/best-free-and-secure-proxy-for-linux/250953 "2020-09-04T20:10:03Z")

</div>

hello , i need to proxy , please tel me that what is best free proxy for linux ?

---

## [A logo for Linux and Ruby lovers](https://www.ruby-forum.com/t/a-logo-for-linux-and-ruby-lovers/260201)

<div class="topic-metadata">

**Author:** [@SouravGoswami](https://www.ruby-forum.com/u/SouravGoswami)\
**Replies:** 0\
**Last updated:** [August 28, 2020, 10:14pm UTC](https://www.ruby-forum.com/t/a-logo-for-linux-and-ruby-lovers/260201 "2020-08-28T22:14:34Z")

</div>

A logo that I made for Linux and Ruby lovers: Recursive Version https://svgshare.com/s/P88 https://svgshare.com/i/P88.svg Alternatively: Simple Version https://svgshare.com/s/P9B https://svgshare.com/i/P9B.svg A…

---

## [Why is the delimiter still iterating on the last array item?](https://www.ruby-forum.com/t/why-is-the-delimiter-still-iterating-on-the-last-array-item/260177)

<div class="topic-metadata">

**Author:** [@SMR9220](https://www.ruby-forum.com/u/SMR9220)\
**Replies:** 2\
**Last updated:** [August 23, 2020, 6:23am UTC](https://www.ruby-forum.com/t/why-is-the-delimiter-still-iterating-on-the-last-array-item/260177 "2020-08-23T06:23:39Z")

</div>

The challenge here is to create a custom .join method. When I use the .each method, the delimiter iterates over the last array item. So I used .each\_with\_index, and in the given if statement, I specified that the last it…

---

## [Need help converting from ternary operator?](https://www.ruby-forum.com/t/need-help-converting-from-ternary-operator/260164)

<div class="topic-metadata">

**Author:** [@SMR9220](https://www.ruby-forum.com/u/SMR9220)\
**Replies:** 4\
**Last updated:** [August 21, 2020, 7:12am UTC](https://www.ruby-forum.com/t/need-help-converting-from-ternary-operator/260164 "2020-08-21T07:12:24Z")

</div>

As per the screenshot, I used the ternary operator to write a method that splits an array into two, based on the condition if the number is even or odd. However, in writing it in the basic block layout, I don’t know w…

---

## [Full-Stack Remote Ruby Job Openings](https://www.ruby-forum.com/t/full-stack-remote-ruby-job-openings/260160)

<div class="topic-metadata">

**Author:** [@rfaill](https://www.ruby-forum.com/u/rfaill)\
**Replies:** 0\
**Last updated:** [August 19, 2020, 3:13pm UTC](https://www.ruby-forum.com/t/full-stack-remote-ruby-job-openings/260160 "2020-08-19T15:13:36Z")

</div>

TaxJar’s remote-only team of 50 people is growing quickly. We have immediate openings for a Ruby/Rails Engineer who wants to help us make ecommerce easier for everyone. Our core values We do the right thing for our cu…

---

## [Stable Rails application in production using Oracle db causes replication failures due to sequence](https://www.ruby-forum.com/t/stable-rails-application-in-production-using-oracle-db-causes-replication-failures-due-to-sequence/260098)

<div class="topic-metadata">

**Author:** [@jmb48825](https://www.ruby-forum.com/u/jmb48825)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 10:49am UTC](https://www.ruby-forum.com/t/stable-rails-application-in-production-using-oracle-db-causes-replication-failures-due-to-sequence/260098 "2020-08-06T10:49:08Z")

</div>

My installation replicates my backend Oracle db across multiple servers. There have been chronic replication failures because Rails won’t let Oracle manage sequences with its own triggers. The proposed solution is to add…

---

## [This code doesn't open the file](https://www.ruby-forum.com/t/this-code-doesnt-open-the-file/259943)

<div class="topic-metadata">

**Author:** [@kali](https://www.ruby-forum.com/u/kali)\
**Replies:** 4\
**Last updated:** [July 27, 2020, 2:20pm UTC](https://www.ruby-forum.com/t/this-code-doesnt-open-the-file/259943 "2020-07-27T14:20:41Z")

</div>

Hi guys, I am new to ruby, and I am trying to create a simple script that opens file, but it doesn’t work! system "color 9f" puts "Eseguendo BatchMaker… by Sapphire Security" system "timeout 3 \> nul" puts "Ecco i princi…

---

## [How can I improve the performance of this small Ruby function?](https://www.ruby-forum.com/t/how-can-i-improve-the-performance-of-this-small-ruby-function/259969)

<div class="topic-metadata">

**Author:** [@DMiller](https://www.ruby-forum.com/u/DMiller)\
**Replies:** 3\
**Last updated:** [July 15, 2020, 11:28am UTC](https://www.ruby-forum.com/t/how-can-i-improve-the-performance-of-this-small-ruby-function/259969 "2020-07-15T11:28:39Z")

</div>

I am currently doing a Ruby challenge and get the error Terminated due to timeout for some testcases where the string input is very long (10.000+ characters). How can I improve my code? def alternatingCharacters(s) c…

---

## [Getter'ы и setter'ы](https://www.ruby-forum.com/t/getter-setter/259956)

<div class="topic-metadata">

**Author:** [@Forty](https://www.ruby-forum.com/u/Forty)\
**Replies:** 1\
**Last updated:** [July 9, 2020, 6:12am UTC](https://www.ruby-forum.com/t/getter-setter/259956 "2020-07-09T06:12:45Z")

</div>

Здравствуйте, никак не могу найти информацию о геттерах и сеттерах в Ruby, в основном влазает по JS, а он мне наыиш не сдался, но от этого понятней не становится. Можете рассказать или скинуть источник на тему “Геттеры и…

---

## [Division error!](https://www.ruby-forum.com/t/division-error/259730)

<div class="topic-metadata">

**Author:** [@SecInfinity](https://www.ruby-forum.com/u/SecInfinity)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 1:59pm UTC](https://www.ruby-forum.com/t/division-error/259730 "2020-07-08T13:59:47Z")

</div>

When I try to make a division account for example 24/48 the result of 0 Does anyone know what can it be?

---

## [Ruby template indentation issue - puppet](https://www.ruby-forum.com/t/ruby-template-indentation-issue-puppet/259960)

<div class="topic-metadata">

**Author:** [@sglakjnn](https://www.ruby-forum.com/u/sglakjnn)\
**Replies:** 0\
**Last updated:** [July 8, 2020, 1:50pm UTC](https://www.ruby-forum.com/t/ruby-template-indentation-issue-puppet/259960 "2020-07-08T13:50:09Z")

</div>

I’m unable to fix indentation for ruby template, I’ve spent hours on this and still couldn’t get it to work as expected. Here is the template: \<%= @log\_path -%\> { \<%= @rotate\_every %\> rotate \<%= @rotate…

---

## [How to call handle multiple models in one model in rails](https://www.ruby-forum.com/t/how-to-call-handle-multiple-models-in-one-model-in-rails/259934)

<div class="topic-metadata">

**Author:** [@shang](https://www.ruby-forum.com/u/shang)\
**Replies:** 1\
**Last updated:** [July 7, 2020, 1:19pm UTC](https://www.ruby-forum.com/t/how-to-call-handle-multiple-models-in-one-model-in-rails/259934 "2020-07-07T13:19:36Z")

</div>

Hi, I have one question. I’m developing an app using ruby on rails but I’m new on it. I have 3 models called unit.rb, prisoner.rb and volunteer.rb unit.rb require ‘csv’ class Unit \< ActiveRecord::Base mount\_uploader…

---

## [Need help with calling and adding values to another file](https://www.ruby-forum.com/t/need-help-with-calling-and-adding-values-to-another-file/259923)

<div class="topic-metadata">

**Author:** [@KillerWalrus](https://www.ruby-forum.com/u/KillerWalrus)\
**Replies:** 0\
**Last updated:** [July 1, 2020, 2:39pm UTC](https://www.ruby-forum.com/t/need-help-with-calling-and-adding-values-to-another-file/259923 "2020-07-01T14:39:39Z")

</div>

relative\_relative ´gold\_object´ class Shop\_Object def initialize gold = Gold.new() @gold = gold end def shop\_now … @gold.gold\_amount -= 100 … #another file gold\_object def gold\_amount gold = 200 end

---

## [How to add several items in shopping cart in rails?](https://www.ruby-forum.com/t/how-to-add-several-items-in-shopping-cart-in-rails/259668)

<div class="topic-metadata">

**Author:** [@Wishka](https://www.ruby-forum.com/u/Wishka)\
**Replies:** 6\
**Last updated:** [June 24, 2020, 9:28pm UTC](https://www.ruby-forum.com/t/how-to-add-several-items-in-shopping-cart-in-rails/259668 "2020-06-24T21:28:12Z")

</div>

I have some problem in my simple shop in rails. I want to add group of chosen products in cart, but I don’t know how. I use radio buttons on my 3 groups of products and I want user choose all 3 items and then press the …

---

## [How to make ruby method recall itself?](https://www.ruby-forum.com/t/how-to-make-ruby-method-recall-itself/259691)

<div class="topic-metadata">

**Author:** [@Danito](https://www.ruby-forum.com/u/Danito)\
**Replies:** 0\
**Last updated:** [May 31, 2020, 6:44pm UTC](https://www.ruby-forum.com/t/how-to-make-ruby-method-recall-itself/259691 "2020-05-31T18:44:10Z")

</div>

I have this method which gets some input and pushes them back to an array. The code runs fine. Now i want to make it call it self again and again until a certain thing happens ! for example that Guess Variable below as…

---

## [What script I need to radio buttons block to add item in shopping cart?](https://www.ruby-forum.com/t/what-script-i-need-to-radio-buttons-block-to-add-item-in-shopping-cart/259678)

<div class="topic-metadata">

**Author:** [@Wishka](https://www.ruby-forum.com/u/Wishka)\
**Replies:** 0\
**Last updated:** [May 30, 2020, 4:59pm UTC](https://www.ruby-forum.com/t/what-script-i-need-to-radio-buttons-block-to-add-item-in-shopping-cart/259678 "2020-05-30T16:59:22Z")

</div>

Hello. When I list my products by .each with radio buttons, how to add script for shopping cart? And what script? If I put before \<% end %\> I receive many buttons, if after - can’t get ID of product. Help me please. This…

---

## [Search for a specific element within an array](https://www.ruby-forum.com/t/search-for-a-specific-element-within-an-array/259602)

<div class="topic-metadata">

**Author:** [@ibz95](https://www.ruby-forum.com/u/ibz95)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 11:46pm UTC](https://www.ruby-forum.com/t/search-for-a-specific-element-within-an-array/259602 "2020-05-19T23:46:40Z")

</div>

I have an array called albums that contains 2 albums. Each album contains an array of tracks and their locations. The arrays are created by reading in the following text file: 2 Greatest Hits Neil Diamond 1 3 Crackling …

---

## [Nokogiri: How to get the data from the following page?](https://www.ruby-forum.com/t/nokogiri-how-to-get-the-data-from-the-following-page/259608)

<div class="topic-metadata">

**Author:** [@Phimer951](https://www.ruby-forum.com/u/Phimer951)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 12:21pm UTC](https://www.ruby-forum.com/t/nokogiri-how-to-get-the-data-from-the-following-page/259608 "2020-05-19T12:21:33Z")

</div>

Hi, I´m relatively new into programming and I´m trying to get the name, price, etc. from each product of the following link: “%category-title% günstig online kaufen bei Conrad”. My Code: require “open-uri” require “No…

---

## [Need help to find the ip address of other host](https://www.ruby-forum.com/t/need-help-to-find-the-ip-address-of-other-host/259597)

<div class="topic-metadata">

**Author:** [@keshavkishor4](https://www.ruby-forum.com/u/keshavkishor4)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 7:22pm UTC](https://www.ruby-forum.com/t/need-help-to-find-the-ip-address-of-other-host/259597 "2020-05-18T19:22:48Z")

</div>

Hello Team, I am new to ruby. I want to find the ip address of other system. For example:- i am executing my code from server wevrs1234 and i want ip address of server apvrs1234 and store it in variable. Please help me …

---

## [How to print out that the selected track is being played](https://www.ruby-forum.com/t/how-to-print-out-that-the-selected-track-is-being-played/259564)

<div class="topic-metadata">

**Author:** [@ibz95](https://www.ruby-forum.com/u/ibz95)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 12:15pm UTC](https://www.ruby-forum.com/t/how-to-print-out-that-the-selected-track-is-being-played/259564 "2020-05-14T12:15:11Z")

</div>

I have to change this code so that now it is capable of searching for a track in an album and then display a message that the specific track is playing. For example, if user selected second track of the second album, the…

---

## [Searching through an array returns the wrong result](https://www.ruby-forum.com/t/searching-through-an-array-returns-the-wrong-result/259545)

<div class="topic-metadata">

**Author:** [@ibz95](https://www.ruby-forum.com/u/ibz95)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 5:42am UTC](https://www.ruby-forum.com/t/searching-through-an-array-returns-the-wrong-result/259545 "2020-05-14T05:42:18Z")

</div>

Hi guys, I have a code in ruby that reads from a file and then prints out the information as an array in the terminal. That part seems to work fine. However, the code should also prompt the user for input and then match …

---

## [Why is this variable here?](https://www.ruby-forum.com/t/why-is-this-variable-here/259522)

<div class="topic-metadata">

**Author:** [@PaulGureghian](https://www.ruby-forum.com/u/PaulGureghian)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 2:20am UTC](https://www.ruby-forum.com/t/why-is-this-variable-here/259522 "2020-05-09T02:20:31Z")

</div>

Why is this variable here? And should I put ‘word’ there as well ? Rubocop wants me to.

[Previous page](https://www.ruby-forum.com/c/uncategorized/1.md?page=4)

[Next page](https://www.ruby-forum.com/c/uncategorized/1.md?page=6)
