# Development

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

[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:** 2

---

## [Fluentd gem test generates error "wrong number of arguments (1 for 0)"](https://www.ruby-forum.com/t/fluentd-gem-test-generates-error-wrong-number-of-arguments-1-for-0/262371)

<div class="topic-metadata">

**Author:** [@dklein](https://www.ruby-forum.com/u/dklein)\
**Replies:** 15\
**Last updated:** [January 21, 2022, 9:56pm UTC](https://www.ruby-forum.com/t/fluentd-gem-test-generates-error-wrong-number-of-arguments-1-for-0/262371 "2022-01-21T21:56:16Z")

</div>

echo ‘{“message”:“hello”}’ | fluent-cat debug.log generates output: wrong number of arguments (1 for 0) Please help to understand the issue. Many thanks.

---

## [Unable to install "curb" gem on Big Sur](https://www.ruby-forum.com/t/unable-to-install-curb-gem-on-big-sur/262414)

<div class="topic-metadata">

**Author:** [@YoungZeeZee](https://www.ruby-forum.com/u/YoungZeeZee)\
**Replies:** 0\
**Last updated:** [January 15, 2022, 5:34pm UTC](https://www.ruby-forum.com/t/unable-to-install-curb-gem-on-big-sur/262414 "2022-01-15T17:34:26Z")

</div>

Hi All, I am unable to install “curb” gem on Big Sur. Do you know how can i get it? I have curb (0.9.10) installed. This is the error message: localadmin@MBA-C02FD4LCQ6L7 . % sudo gem install curb Password: Buildi…

---

## [What about Rubocop rules?](https://www.ruby-forum.com/t/what-about-rubocop-rules/259444)

<div class="topic-metadata">

**Author:** [@PaulGureghian](https://www.ruby-forum.com/u/PaulGureghian)\
**Replies:** 4\
**Last updated:** [May 4, 2020, 6:43pm UTC](https://www.ruby-forum.com/t/what-about-rubocop-rules/259444 "2020-05-04T18:43:02Z")

</div>

The first offense I don’t get. the shebang used is recommended and my .rb script executes The second one I don’t get at all. what is Rubcop’s issue here ? The next three I get, but should I fix them or can I edit a …

---

## [Complex Arel table query ... Need help](https://www.ruby-forum.com/t/complex-arel-table-query-need-help/262206)

<div class="topic-metadata">

**Author:** [@empedocle](https://www.ruby-forum.com/u/empedocle)\
**Replies:** 1\
**Last updated:** [December 10, 2021, 5:51pm UTC](https://www.ruby-forum.com/t/complex-arel-table-query-need-help/262206 "2021-12-10T17:51:05Z")

</div>

Hello every one. Sorry : I’m not friend in English and not in Ruby :frowning: I failed to build a complex Arel query. I have 3 tables : One is a “Set” table, One is a “Element” table, and one “elements\_sets” is the …

---

## [How to write a program in ruby for calculator by selecting option for operation. When i select 1 then the operation should be addition and so on](https://www.ruby-forum.com/t/how-to-write-a-program-in-ruby-for-calculator-by-selecting-option-for-operation-when-i-select-1-then-the-operation-should-be-addition-and-so-on/261828)

<div class="topic-metadata">

**Author:** [@aniket](https://www.ruby-forum.com/u/aniket)\
**Replies:** 3\
**Last updated:** [September 14, 2021, 8:36am UTC](https://www.ruby-forum.com/t/how-to-write-a-program-in-ruby-for-calculator-by-selecting-option-for-operation-when-i-select-1-then-the-operation-should-be-addition-and-so-on/261828 "2021-09-14T08:36:21Z")

</div>

puts "Enter a value: " num1 = gets.chomp() puts "Enter b value: " num2 = gets.chomp() sum = num1.to\_f + num2.to\_f #Addition puts "sum = #{sum}" subtract = num1.to\_f - num2.to\_f #substraction puts "subtract = #{subtrac…

---

## [Micropython ewww. I want to build a minimal ruby uf2 for physical commputing](https://www.ruby-forum.com/t/micropython-ewww-i-want-to-build-a-minimal-ruby-uf2-for-physical-commputing/261783)

<div class="topic-metadata">

**Author:** [@Cufe](https://www.ruby-forum.com/u/Cufe)\
**Replies:** 0\
**Last updated:** [September 2, 2021, 7:25pm UTC](https://www.ruby-forum.com/t/micropython-ewww-i-want-to-build-a-minimal-ruby-uf2-for-physical-commputing/261783 "2021-09-02T19:25:48Z")

</div>

computing. Currently researching on how I can build a ruby interpreter into a uf2 format. Because I’m not on the python band wagon. I have built a prototype ruby cli for linux, as well as several physical computing repl…

---

## [Generate OAuth2.0 Authorization code using ruby](https://www.ruby-forum.com/t/generate-oauth2-0-authorization-code-using-ruby/261747)

<div class="topic-metadata">

**Author:** [@sunilkumarnagoore](https://www.ruby-forum.com/u/sunilkumarnagoore)\
**Replies:** 0\
**Last updated:** [August 23, 2021, 11:54am UTC](https://www.ruby-forum.com/t/generate-oauth2-0-authorization-code-using-ruby/261747 "2021-08-23T11:54:12Z")

</div>

Hi Guys, How to generate OAuth2.0 authentication authorization code using ruby code or any ruby gem ?. Any help would be appreciated.

---

## [Generate oauth1.0 signature suing ruby](https://www.ruby-forum.com/t/generate-oauth1-0-signature-suing-ruby/261740)

<div class="topic-metadata">

**Author:** [@sunilkumarnagoore](https://www.ruby-forum.com/u/sunilkumarnagoore)\
**Replies:** 0\
**Last updated:** [August 20, 2021, 6:38am UTC](https://www.ruby-forum.com/t/generate-oauth1-0-signature-suing-ruby/261740 "2021-08-20T06:38:24Z")

</div>

Hi buddies, using ruby code or using any ruby gems how can i generate a OAuth1.0 authentication signature?. Any help would be appreciated. Thanks

---

## [What is the difference between string and symbol?](https://www.ruby-forum.com/t/what-is-the-difference-between-string-and-symbol/261356)

<div class="topic-metadata">

**Author:** [@shubham-jain](https://www.ruby-forum.com/u/shubham-jain)\
**Replies:** 3\
**Last updated:** [July 18, 2021, 10:08am UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-string-and-symbol/261356 "2021-07-18T10:08:13Z")

</div>

when should use string and symbol?

---

## [How to know all gems and plugins which I have install in system that are taking memory or not?](https://www.ruby-forum.com/t/how-to-know-all-gems-and-plugins-which-i-have-install-in-system-that-are-taking-memory-or-not/261302)

<div class="topic-metadata">

**Author:** [@shubham-jain](https://www.ruby-forum.com/u/shubham-jain)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 6:29am UTC](https://www.ruby-forum.com/t/how-to-know-all-gems-and-plugins-which-i-have-install-in-system-that-are-taking-memory-or-not/261302 "2021-06-29T06:29:51Z")

</div>

Any command to know what gems and plugins are taking how much memory in ruby

---

## [How can I sort the data one after the other?](https://www.ruby-forum.com/t/how-can-i-sort-the-data-one-after-the-other/261421)

<div class="topic-metadata">

**Author:** [@elturco](https://www.ruby-forum.com/u/elturco)\
**Replies:** 1\
**Last updated:** [June 29, 2021, 6:19am UTC](https://www.ruby-forum.com/t/how-can-i-sort-the-data-one-after-the-other/261421 "2021-06-29T06:19:37Z")

</div>

page.css(".div").text

---

## [Criipto service integration in Rails app](https://www.ruby-forum.com/t/criipto-service-integration-in-rails-app/257826)

<div class="topic-metadata">

**Author:** [@Bukenco](https://www.ruby-forum.com/u/Bukenco)\
**Replies:** 3\
**Last updated:** [June 8, 2021, 12:00pm UTC](https://www.ruby-forum.com/t/criipto-service-integration-in-rails-app/257826 "2021-06-08T12:00:09Z")

</div>

Hello, I want to integrate Criipto service in my existing rails app, i tried Auth0 an Openid, but can’t do this. Any suggestions or any advice?

---

## [Por Que A Diferença e Como Resolver](https://www.ruby-forum.com/t/por-que-a-diferenca-e-como-resolver/261280)

<div class="topic-metadata">

**Author:** [@LeandroCGMS](https://www.ruby-forum.com/u/LeandroCGMS)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 10:32pm UTC](https://www.ruby-forum.com/t/por-que-a-diferenca-e-como-resolver/261280 "2021-05-11T22:32:58Z")

</div>

Por que a fórmula (1 \* 2) \* (1 / 2) em Python dá 1 e em Ruby dá 0? Tentei também (1 \* 2).to\_f \* (1 / 2).to\_f e o problema é o mesmo.

---

## [Problems with Ruby HTTP requests](https://www.ruby-forum.com/t/problems-with-ruby-http-requests/261287)

<div class="topic-metadata">

**Author:** [@DannyB](https://www.ruby-forum.com/u/DannyB)\
**Replies:** 0\
**Last updated:** [April 29, 2021, 8:31am UTC](https://www.ruby-forum.com/t/problems-with-ruby-http-requests/261287 "2021-04-29T08:31:41Z")

</div>

Hello fellow Rubyists, I am facing a weird problem that I am not sure is suitable for StackOverflow, so posting here hoping someone has a hint on what’s going on. Recently I am facing an issue where HTTP requests to a …

---

## [Argumentos Não Aparecem no Método](https://www.ruby-forum.com/t/argumentos-nao-aparecem-no-metodo/261220)

<div class="topic-metadata">

**Author:** [@LeandroCGMS](https://www.ruby-forum.com/u/LeandroCGMS)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 3:01pm UTC](https://www.ruby-forum.com/t/argumentos-nao-aparecem-no-metodo/261220 "2021-04-12T15:01:06Z")

</div>

Estou conhecendo os conceitos iniciais de Ruby e deve estar me faltando algo, pois não consigo entender o porquê de o puts language\_origin, language\_target, ‘\<\<\<\<\<\<\<\<\<\<\<’, na linha 3635 não retornar os dois argumentos. h…

---

## [Classes and Hashes](https://www.ruby-forum.com/t/classes-and-hashes/261184)

<div class="topic-metadata">

**Author:** [@rhj4](https://www.ruby-forum.com/u/rhj4)\
**Replies:** 1\
**Last updated:** [April 4, 2021, 7:43pm UTC](https://www.ruby-forum.com/t/classes-and-hashes/261184 "2021-04-04T19:43:19Z")

</div>

I have many years of programming experience, but I am a newbie to Ruby. I have started by creating a Contact class that either contains hashes such as Addresses, Phone Numbers, Email Addresses, etc. Alternatively, I am t…

---

## [Application in production AWS](https://www.ruby-forum.com/t/application-in-production-aws/261153)

<div class="topic-metadata">

**Author:** [@frandaniel64](https://www.ruby-forum.com/u/frandaniel64)\
**Replies:** 0\
**Last updated:** [March 25, 2021, 9:00pm UTC](https://www.ruby-forum.com/t/application-in-production-aws/261153 "2021-03-25T21:00:49Z")

</div>

I have a problem in production every time I restart my application every so often it stops working, the only error that throws me is this: HTTP parse error, malformed request (): #\<Puma::HttpParserError: Invalid HTTP fo…

---

## [Benchmark Suggestions](https://www.ruby-forum.com/t/benchmark-suggestions/260884)

<div class="topic-metadata">

**Author:** [@keithrbennett](https://www.ruby-forum.com/u/keithrbennett)\
**Replies:** 0\
**Last updated:** [January 30, 2021, 3:25am UTC](https://www.ruby-forum.com/t/benchmark-suggestions/260884 "2021-01-30T03:25:31Z")

</div>

---

## [Looking for simple Ruby scoping docs](https://www.ruby-forum.com/t/looking-for-simple-ruby-scoping-docs/260632)

<div class="topic-metadata">

**Author:** [@G4143](https://www.ruby-forum.com/u/G4143)\
**Replies:** 8\
**Last updated:** [December 19, 2020, 3:39pm UTC](https://www.ruby-forum.com/t/looking-for-simple-ruby-scoping-docs/260632 "2020-12-19T15:39:50Z")

</div>

I always liked Ruby but one simple thing kept me from really digging into Ruby… Scoping. I’m missing something fundamental about Ruby’s scoping. I know the code below has a scoping problem because I get an error. #! /u…

---

## [Error installing gtk2 gem](https://www.ruby-forum.com/t/error-installing-gtk2-gem/260662)

<div class="topic-metadata">

**Author:** [@Koala](https://www.ruby-forum.com/u/Koala)\
**Replies:** 2\
**Last updated:** [December 20, 2020, 5:23pm UTC](https://www.ruby-forum.com/t/error-installing-gtk2-gem/260662 "2020-12-20T17:23:55Z")

</div>

Hi all. I try to install gtk2 gem on the latest version of kali-linux (based on debian) i have my project on github: Hostbase I code in ruby as a hobby.The gtk2 GUI work fine on debian 10 and xubuntu20.04 but seem to …

---

## [I installed Ruby with RVM](https://www.ruby-forum.com/t/i-installed-ruby-with-rvm/260447)

<div class="topic-metadata">

**Author:** [@PaulGureghian](https://www.ruby-forum.com/u/PaulGureghian)\
**Replies:** 1\
**Last updated:** [October 31, 2020, 2:33pm UTC](https://www.ruby-forum.com/t/i-installed-ruby-with-rvm/260447 "2020-10-31T14:33:19Z")

</div>

it gave me ruby 2.7 , the current version is 2.7.2 is 2.7 ok ? how to use rvm to install 2.7.2 ?

---

## [Not verifying SSL hostname of LDAPS server 'host.domain:636'](https://www.ruby-forum.com/t/not-verifying-ssl-hostname-of-ldaps-server-host-domain-636/260424)

<div class="topic-metadata">

**Author:** [@lulubear](https://www.ruby-forum.com/u/lulubear)\
**Replies:** 2\
**Last updated:** [October 27, 2020, 10:15am UTC](https://www.ruby-forum.com/t/not-verifying-ssl-hostname-of-ldaps-server-host-domain-636/260424 "2020-10-27T10:15:08Z")

</div>

Hi, I know this is all over the internet but I wasn’t able to get the data that I need after doing lots of trial and errors from the solutions that I’ve found online. I need to have it as anonymous bind. Here is my cod…

---

## [How to the get limit value when user passes Model.limit(10)](https://www.ruby-forum.com/t/how-to-the-get-limit-value-when-user-passes-model-limit-10/260390)

<div class="topic-metadata">

**Author:** [@akhilravuri1](https://www.ruby-forum.com/u/akhilravuri1)\
**Replies:** 0\
**Last updated:** [October 19, 2020, 8:40am UTC](https://www.ruby-forum.com/t/how-to-the-get-limit-value-when-user-passes-model-limit-10/260390 "2020-10-19T08:40:52Z")

</div>

Hi, when the user calls Model.limit(10) I want is get the value of 10. So for that, I have overloaded a function def visit\_Arel\_Nodes\_SelectStatement(o, collector) if o.limit limcoll = Arel::Collectors::SQLS…

---

## [New to Rails dev](https://www.ruby-forum.com/t/new-to-rails-dev/260091)

<div class="topic-metadata">

**Author:** [@Callum](https://www.ruby-forum.com/u/Callum)\
**Replies:** 1\
**Last updated:** [August 3, 2020, 4:01am UTC](https://www.ruby-forum.com/t/new-to-rails-dev/260091 "2020-08-03T04:01:29Z")

</div>

hi all , iam just starting to learn rails dev , i want to know What are the best resources to learn Rails from scratch?

---

## [Modify RubyGems install location on Windows](https://www.ruby-forum.com/t/modify-rubygems-install-location-on-windows/259905)

<div class="topic-metadata">

**Author:** [@NU2rb](https://www.ruby-forum.com/u/NU2rb)\
**Replies:** 0\
**Last updated:** [June 27, 2020, 8:32pm UTC](https://www.ruby-forum.com/t/modify-rubygems-install-location-on-windows/259905 "2020-06-27T20:32:54Z")

</div>

I am making a RubyPortable (PAF) for Windows and I want to have Rubygems not install to the user directory (C:/Users/username/.gem/ruby/some\_version\_number) or even have that in the GEM\_PATH so that when using it on oth…

---

## [Seed local database](https://www.ruby-forum.com/t/seed-local-database/259637)

<div class="topic-metadata">

**Author:** [@bhavya.khanna](https://www.ruby-forum.com/u/bhavya.khanna)\
**Replies:** 3\
**Last updated:** [June 3, 2020, 6:24am UTC](https://www.ruby-forum.com/t/seed-local-database/259637 "2020-06-03T06:24:52Z")

</div>

HI, I am new in Ruby and i am set up the open source project on Ubuntu and stuck in some point. $ bundle exec rails db:setup When i execute the above command then its not running. I was execute this in project direct…

---

## [Trying to debug this error](https://www.ruby-forum.com/t/trying-to-debug-this-error/259591)

<div class="topic-metadata">

**Author:** [@PaulGureghian](https://www.ruby-forum.com/u/PaulGureghian)\
**Replies:** 14\
**Last updated:** [May 23, 2020, 11:43am UTC](https://www.ruby-forum.com/t/trying-to-debug-this-error/259591 "2020-05-23T11:43:18Z")

</div>

\#!/usr/bin/env ruby # frozen\_string\_literal: true # Created by Paul A.Gureghian in May 2020. # # This Ruby program demos the creation of a class and the generation of instances of the class. # # Start of program. # …

---

## [Glimmer Desktop Development Library for Ruby](https://www.ruby-forum.com/t/glimmer-desktop-development-library-for-ruby/259599)

<div class="topic-metadata">

**Author:** [@AndyMaleh](https://www.ruby-forum.com/u/AndyMaleh)\
**Replies:** 1\
**Last updated:** [May 22, 2020, 1:37am UTC](https://www.ruby-forum.com/t/glimmer-desktop-development-library-for-ruby/259599 "2020-05-22T01:37:14Z")

</div>

Glimmer is a native-UI cross-platform desktop development open-source library that I wrote in Ruby and presented at RubyConf 2008. There has been a lot of recent development in Glimmer, like Rails-inspired scaffolding an…

---

## [Problems loading yaml file with Rake](https://www.ruby-forum.com/t/problems-loading-yaml-file-with-rake/259551)

<div class="topic-metadata">

**Author:** [@khomoritous](https://www.ruby-forum.com/u/khomoritous)\
**Replies:** 8\
**Last updated:** [May 19, 2020, 12:30pm UTC](https://www.ruby-forum.com/t/problems-loading-yaml-file-with-rake/259551 "2020-05-19T12:30:03Z")

</div>

Hi, I have problems loading a yaml file with Rake when testing and getting the following error; Errno::ENOENT: No such file or directory @ rb\_sysopen But there are no problems when testing from within the test directo…

---

## [Unbound message form add to rails for form message (append to listing)](https://www.ruby-forum.com/t/unbound-message-form-add-to-rails-for-form-message-append-to-listing/259519)

<div class="topic-metadata">

**Author:** [@merlin2049er](https://www.ruby-forum.com/u/merlin2049er)\
**Replies:** 0\
**Last updated:** [May 8, 2020, 4:45pm UTC](https://www.ruby-forum.com/t/unbound-message-form-add-to-rails-for-form-message-append-to-listing/259519 "2020-05-08T16:45:41Z")

</div>

I have a form for a troubleticket model, and I can create a new ticket with ease. But, I want my edit (update) crud function to work a bit differently. I don’t want them editing the original text, so I want to include …

[Previous page](https://www.ruby-forum.com/c/ruby/ruby-dev/14.md)

[Next page](https://www.ruby-forum.com/c/ruby/ruby-dev/14.md?page=2)
