Click here to Skip to main content
15,867,308 members
Everything / Programming Languages / Ruby

Ruby

Ruby

Great Reads

by Marc Clifton
Locate your Facebook friends on a Google Map - A Ruby on Rails web application
by Arthur V. Ratz
In this brief article, we will demonstrate how to deploy a Node.js application and run it on Docker's Windows Server Core 2016 Containers
by Aleksandr Ulanov
What are Service Objects and how you can use them to make your app cleaner and keep it maintainable
by Paul Aurelian Gagniuc
This article shows how to mix two signals into a third, in variable proportions.

Latest Articles

by Aleksandr Ulanov
What are Service Objects and how you can use them to make your app cleaner and keep it maintainable
by Aleksandr Ulanov
In this article, we'll go through the basics of Hotwire, as well as build a sample app using it.
by Paul Aurelian Gagniuc
This article shows how to mix two signals into a third, in variable proportions.
by datarockets
Finding a vulnerability, using it for data extracting from the database, and fixing it with just one line of code

All Articles

Sort by Title

Ruby 

1 Mar 2021 by Sameerahmed786
Hello, I have been working on a personal project to build a website called DevMatch (course on upskill by Robeen Dey) and I have been having trouble as to why I am having an error that displays "Plan must exist" whenever I fill out an email form....
19 Jul 2020 by Member 14892170
I'm pretty new in rails. I've a problem with Oracle. I always get ORA-06413: Connection not open error from oracle when I run the rails server I'm using this configuration ruby '2.6.3' gem 'rails', '~> 5.2.3' gem 'pg', '= 0.18.1' gem...
19 Jul 2020 by Sandeep Mewara
First off, with the error you get, it is not related to Rails here. It's plain simple error related to Oracle that indicates something wrong with the database connection. Now, given the error code, seems handful of information on web/Google for...
30 Oct 2014 by Ui-Sing So
The method doesn't replace existing Computer Language. Natural Language and Computer Language have to cooperate with each other.
22 Nov 2013 by Marc Clifton
Using JQuery UI and minimal Javascript to create a dynamic property grid editor that can be initialized in a fluid programming style or with a minimal DSL.
16 Mar 2011 by Paul Lessard, M.Sc.
We propose a way to secure C# programs by emulating Taint checking
25 Nov 2020 by OriginalGriff
You're running late - the rest of your class was trying to get us to do this homework last week ... But I'll tell you what we told them: Quote: We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it...
25 Nov 2020 by Patrice T
Posting your homework is not a question. You show no attempt to solve the problem yourself, you have no question, your main effort is pasting the requirement, you just want us to do your HomeWork. HomeWork problems are simplified versions of the...
30 Sep 2019 by Member 4206974
A Tcl -Tk Form Generator that can be used alone or used to provide a fast Form generation for language in which this activity can be complex
31 Dec 2009 by smartvishal2001
Hiii, i want to develop a project on "ONLINE DOCUMENT SHARING SYSTEM"(nearly similar to Scribd.com) using platform Ruby On Rails and database using MySQL.Pls give me the ideas and source code for that. Plsssss Help me...
27 Nov 2009 by AspDotNetDev
What type of ideas are you looking for? Do you want us to design it for you? Because if you do, we will not. If you are looking just for some fresh eyes to help you brainstorm, then you're going to have to be a lot more specific than the information you've given. And you should probably...
31 Dec 2009 by smartvishal2001
i want to develop the "Online Document Sharing System"such as "scribd.com" using ruby on rails. Plss help me for getting ideas and source code for it...
1 Jan 2010 by Richard MacCutchan
Duplicate post, remove from unanswered list.
7 Oct 2011 by ASPERSICA
I fixed it myself by adding:@order.build_userin order_controllerdef new@order = Order.new@order.build_userend
7 Oct 2011 by ASPERSICA
I have two models:class User
3 Sep 2015 by Sascha Manns
Hello coders,actually i'm trying to add a setup routine to a Ruby project.I have a structure like://bin/bin/latexcv.rb/lib/lib/[the used libraries]/data/data/Appendix/data/Resume/data/CoverMy main class runs:FileUtils.cd('data/Cover') do ...
3 Sep 2015 by Sascha Manns
The problem is fixed now. The content was in a shared directory, in my case /home/sascha/.rvm/rubies/ruby-2.2.1/share/latex_curriculum_vitae. After fixing that in the libraries it runs as expected.
22 Jun 2013 by Sunil Kumar
What is the algorithm to check one gate's output to be stuck-at-1 or stuck-at-0 ? Thanks in advance.
22 Jun 2013 by Andreas Gieriet
First of all, have a look at Stuck-at-Fault[^] to get an understanding on what this exactly mean.Then follow up with Design-For-Test (DFT)[^], which is an approach to get this fault model under control. Finally, get an understanding on Automatic-Test-Pattern-Generation (ATPG)[^] for the above...
26 Jun 2018 by rikidev
Hi I'm creating a PDF with prawn, how can I do to align the texts here that you see in the image below at the same height? Report Image What I have tried: Prawn::Document.generate("my.pdf") do image logo,:width=>540,:height=>60 text "Spett.le ",:align=>:right move_down 5 text...
15 Apr 2013 by arulbaskar
configuration.yml development: email_delivery: delivery_method: :smtp smtp_settings: #tls: true #enable_starttls_auto: true openssl_verify_mode: 'none' address: "domain name" port: 25 authentication: :login domain: 'mail...
30 Oct 2012 by Sumit Munot
This is the last error after which the application stops working[Fri Aug 31 02:07:23 2012] [error] [client 145.123.411.19] Premature end of script headers: [ pid=13552 thr=1 file=ext/apache2/Hooks.cpp:817 time=2012-08-31 02:07:23.257 ]: The backend application (process 13680) did not...
4 Feb 2013 by Jordi Bouman
I'm working on a new website which makes sending music between music professionals easier. Some receive more than 1000 songs a week and I want to simplify this.In short the website contains out of two sections. One to send music and the second to receive music (some sort of iTunes but then...
17 Dec 2014 by wliao
Implementing an auto completion feature with Redis, NodeJS and jQuery
27 Feb 2012 by benton2206
I just joined this website in search of help in mainly learning programming languages and to gain a bit of know how in to making my own and applying it to an IT device to make it work. I would be very delighted if some could assist me or if you have had experience in this type thing point me in...
26 Feb 2012 by Simon_Whale
Developer Learning Resources MSDN[^]is somewhere that I would start
27 Feb 2012 by TorstenH.
Basic Java SE is a point to start with. And please get yourself a good book, that helps much more than any website. Start with some simple projects, there is nothing false about some simple console output programs.
27 Feb 2012 by Richard MacCutchan
If you are interested in Java then you can start here[^]; for C# start here[^].
20 Aug 2013 by saad_lah
Assalam-o-Alaikum, I am going to make a web application, what is best software(like visual studio for asp.net) for making a web application with Ruby or Node.js?
20 Aug 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
1. RubyRubyMine[^].Aptana[^].Redcar[^].1. Node.jsThe Nide IDE[^].Quote:Please note that currently Windows is unsupported. (We're working on that)But in my opinion, any good Text-Editor will work for you as it is a javaScript file.
20 Aug 2013 by Sergey Alexandrovich Kryukov
For Ruby, I would first pay attention for NetBeans: https://netbeans.org/features/ruby/index.html[^].—SA
19 Nov 2015 by Member 12154091
Hey guys/girls!I've done a ton of research, but I think that asking actual people that are my superiors in the subject I just the best. So:I want to make a few programs that can preform 3 different functions. I just don't know what programming language is going to preform the function...
19 Nov 2015 by Garth J Lancaster
I think its good that you have a list of thoughts, but you're going to need to refine them more and more - what I can say right now is 1) Leave off the c++ - there are plenty of 'languages' that will do what you want, and while you can in c++, if you're not doing anything else in IT its too...
21 Nov 2015 by Member 12154091
Thanks for the lengthy reply Garth!1) Thanks for eliminating one contender from the list via C++2) Scrape person emails from the web initially. Then, who knows. 3) I do have windows. As far as a data base, Access and Excel will probably be where I start. I do have SQL on my list...
21 Nov 2015 by Patrice T
Database handling:Experimented database designer have many solutions depending the database characteristics, hardware and tastes.For a beginner, the most strait forward solution is to choose an SQL server and use SQL to handle/query the massive database.Other programming:Almost any...
27 Mar 2014 by mattohare
I have a new feature going onto my website that will need a facility to download a spreadsheet version. There was a video that suggested making CSV or HTML table. CSV is nice, except that I'd like to export the totals as formulae. HTML Tables seemed nice in the video, but raised some warnings...
10 Dec 2018 by YasIkeda
I needed Ruby in order to run `npm run-script docs` in Bootstrap's project, but the command failed in macOS 10.14.2. It was because Bootstrap's site seems to be created with Jekyll, which works on Ruby, and Ruby installed by default or with XCode did not work well for this purpose.
11 Nov 2012 by denghuancong
I do config with this:============================>./configure --prefix=/usr/local --enable-gui=no --without-x --disable-nls --enable-multibyte --with-tlib=ncurses --enable-pythoninterp --enable-rubyinterp --with-ruby-command=/usr/bin/ruby...
15 May 2014 by Marc Clifton, Kornfeld Eliyahu Peter
Adventures in Javascript, JQuery, JQuery-UI, JQuery-tablesorter, and of course CSS and HTML
5 Mar 2017 by Member 13039426
Hey guys, Im very new to coding. Im a business major and i have been coding for about 6 months now. I love it, and i think it loves me since it comes pretty easy to me lol. At the moment im okayish fluent in html5,css,php,mysql and a bit of ruby.A few weeks back i came across saas and the...
5 Mar 2017 by Richard MacCutchan
The first thing you need to do is to learn all about SAAS, so a good starting point would be: SAAS - Google Search[^].
11 Aug 2022 by Aleksandr Ulanov
In this article, we'll go through the basics of Hotwire, as well as build a sample app using it.
27 Aug 2015 by Member 11939823
Any one can help on this?. We are expected to display the count of number of Programs.
23 Feb 2013 by Marc Clifton
A deep dive into the differences and similarities between C# and Ruby classes
20 Aug 2014 by Member 11010948
C++, bash, perl, R, python, ruby, nodejs, go, haskell. sysadmin, internet, data-mining, machine-learning, etc. eventually at last they all will have the same modules. I am confused and lost for which environment/language to choose. could any body with full experience to tell me the real truth...
20 Aug 2014 by Richard MacCutchan
C++a programming language widely used in Windows and Unix/Linuxbasha shell used on Unix/Linux systemsperlanother scripting language. Ugh!Ra capital letterpythona snakerubya jewelAnd if you do not know what the internet is then I am quite surprised you managed to find this...
14 May 2015 by Member 11687521
num = gets.to_ilast = gets.to_iwhile (num
14 May 2015 by OriginalGriff
No.Line by line explanations take far, far too long - typically a paragraph per line of code!Would you want to sit down and write out that much for no good reason? Because I wouldn't! It's not even our code - you could ask the person who wrote it, but I suspect they won't want to...
5 Oct 2021 by Member 11164169
def group_by_owners(files) better_hash = Hash.new { |hash, key| hash[key] = [] } files.each_with_object(better_hash) {|(k, v), hash| hash[v] 'Randy', 'Code.py' => 'Stan', 'Output.txt' =>...
5 Oct 2021 by OriginalGriff
Do you have any idea how much work explaining code line by line is? Every single line needs a paragraph of explanation! For example: int next = r.Next(); Create a new variable called "next" which can hold a integer value. From...
31 Jan 2014 by E.F. Nijboer
Yeah, it simply checks that you don't use publicly known information as a password because that would make it to easy to break it. Good lucl!
4 May 2018 by Member 12694539
I have created a gallery module with the help of this tutorial https://kolosek.com/carrierwave-upload-multiple-images/ and now I wanted to add one more image attribute has a master image to the same model. So I thot of creating one more uploader. The code works fine but when I upload multiple...
30 Jul 2014 by Grant Curell
How to check open ports with Ruby
21 Jul 2013 by GiZmoDragonBack
Hi,I have to use a script language for an embedded program which is written in C. So far I know that there are several option available such as Python, Ruby, Lua and Java.The software is running under a LEON2 SPARC microcontroller. I am using as a breadboard platform the spacecraft...
23 Jul 2013 by KarstenK
Consider consulting the LEON" SPARC manual or experts. They know better what is useful and stable. The runtime of the language must work on the system.I personally would prefer Python over Ruby, and avoid Java and Lua.
30 Mar 2016 by CodeProject, Val Polouchkine
Welcome to our continuing series of CodeProject interviews in which we talk to developers about their backgrounds, projects, interests and pet peeves. In this installment we talk to Val Polouchkine, a Developer Advocate for Twitter.
21 Jun 2020 by michellekadiehl
I have spent over an hour trying to figure out how to solve the error, but nothing works. Here is the error message: say_hello accepts an argument of a name and prints out Hello with that Name (FAILED - 1) defaults to Ruby Programmer when...
21 Jun 2020 by Afzaal Ahmad Zeeshan
I think it is because the testing software is configured to accept only a specific result, as you can see in the following code: Failure/Error: expect($stdout).to receive(:puts).with("Hello Kent Beck!") You can fix this by removing the extra...
8 Nov 2012 by Marc Clifton
A quick test of Ruby performance vs. C#
11 Apr 2015 by Torakami
Hi , I am new to ruby on rails development. Just started learning. I installed ruby on rails on my windows 8.1 pc with below pakages kit from website.Quote:I am using windows 8.1Packages included areRuby 2.0.0Rails 4.1BundlerGitSqliteTinyTDSSQL Server...
16 Apr 2017 by Member 13132810
Hello, I am currently doing an assignment with dynamic pages, I have one dynamic page for rating courses, in which i had to restrict the comment box to 25 characters and also find a way to count the number of words input by the user giving a rating. I have figured out how to restrict to 25...
27 Nov 2012 by sean871
hey am building an application in the ruby programming languageand i got a toolStripStatus and a richtextbox. what i want to do is every word that is typed into the richtextbox i want it to add up on the toolStripStatuslabel1.toolStripStatuslabel1 is called Words here is the code i used...
27 Nov 2012 by Santosh Gadge
//option 1 $(document).ready(function () { var length = 200; // predefined textbox char size var remaining = 200; var txtBox = $("#"); txtBox.onchange(function () { remaining = (length...
19 Oct 2011 by zenwalker1985
Crazy Ctor concept in Ruby
1 Nov 2011 by zenwalker1985
This is an extension to my old post about ctor concept in Ruby where I talked about how the Ctor concept has been implemented in Ruby and it’s quite different from other languages.
14 Oct 2014 by Uros Calakovic
Use the LibGDX Java gaming framework and JRuby to create a simple 2D game for desktop
9 Jan 2012 by lassebunk
How to create a location aware website using Ruby on Rails, PostgreSQL, and PostGIS
19 Nov 2011 by RobLazarus
Review about the Creating Your Own Freaking Awesome Programming Language Book
16 Apr 2018 by Authorize.Net
The Authorize.Net API makes it easy to create, capture, refund and void secure payment transactions. Offering both XML or JSON, it works well with Ruby, Node.js, Python, and many other languages. The streamlined API also has the bandwidth to accept payments in every environment.
3 Sep 2015 by Plislmerla
aaaaaaaaaaaaaaaaaaaaaa ssaaaaaaaaaaaaaaaaaaaaaa ssaaaaaaaaaaaaaaaaaaaaaa ssaaaaaaaaaaaaaaaaaaaaaa ssaaaaaaaaaaaaaaaaaaaaaa ssaaaaaaaaaaaaaaaaaaaaaa ssaaaaaaaaaaaaaaaaaaaaaa ssaaaaaaaaaaaaaaaaaaaaaa ssaaaaaaaaaaaaaaaaaaaaaa ssaaaaaaaaaaaaaaaaaaaaaa ssaaaaaaaaaaaaaaaaaaaaaa...
3 Nov 2013 by Marc Clifton
Creating a website in Ruby on Rails for dynamically displaying and navigating a SQL Server database
13 Jan 2015 by Member 11368467
I have created an decryption script, and it complies without throwing any errors although it returns a junk string with strange symbols. An example of encrypted string: fff: T3UZSkX4vsJxnWEaIMWK3w==When decoded: ￯ᄒヨ5p￯﾿チ￯ᄒミ￯ᄒワ￯ᄒᆰ`￯ᄒᄆ,Ch￯﾿ホ￯﾿ᄌ￯﾿ᄂThe part of script I am using to decrypt...
9 Mar 2015 by Mdzzzl5
Either you key, or the encodings of the data and/or string. Are you sure the default encodings for your Ruby installation match the charset of the database?http://ruby-doc.org/core-2.2.1/Encoding.html[^]
2 Sep 2018 by Member 13969616
I am trying to define a method that checks if a given space on the board is empty and address the scenarios that qualify as an empty space that isn't equal to the literal " ". My tests failed to produce false/true, and instead provided nil. What I have tried: board = [" ", " ", " ", " ", "...
1 Sep 2018 by Patrice T
Quote: My tests failed to produce false/true, and instead provided nil. The reason is that your code do not cover all cases. Try something like this: board = [" ", " ", " ", " ", " ", " ", " ", " ", " "] def position_taken?(board, index) if board[index] == [" "] || nil # not sure what this...
2 Sep 2018 by Member 13969616
def position_taken?(board, index) if board[index] == " " || board[index] == nil || board[index] == "" return false elsif board[index] != " " return true end end Thank you for your help, I ended up finding this solution worked and what the problem was by seeing how you interpreted my code.
1 Sep 2018 by Arthur V. Ratz
In this brief article, we will demonstrate how to deploy a Node.js application and run it on Docker's Windows Server Core 2016 Containers
18 Mar 2016 by Vyacheslav Voronenko
Learn how to implement provisioning script for your Ruby application
3 Jul 2013 by UL UL ALBAB
Error List:C:\fedena>rake fedena:plugins:install_all --trace(in C:/fedena)** Invoke fedena:plugins:install_all (first_time)** Invoke environment (first_time)** Execute environmentrake aborted!Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (no such...
3 Jul 2013 by CHill60
There are full instructions on the fedena site http://www.projectfedena.org/install[^]Looking at the error above I don't think you've done step 3 "Install MySQL"
18 Apr 2016 by Member 11094578
Hi I'm using ruby 2.2.4-p230 and Watir WebDriver on Windows 7I got noticed that when execute my Ruby script in a Chrome WebSite always the "Remember logins for sites" is disabled even when the default profile is not.All this do not allow me to complete my script because my script must...
18 Apr 2016 by Member 11094578
As workaround , I Just did with QTP-HP, even that the QTP's Script is very basic, as: Window("Mozila Firefox").Click XXX, YYY Window("Mozila Firefox").Type stringthis works for now, until I can find a solution.
24 Aug 2008 by Eduard Ene
An article on EGen - a scalable code generation and maintenance framework for C/C++/C#/Java, implemented in Ruby.
19 May 2019 by Jayson741
Eslint rules says use single quotes but upon autosave it corrects this to double quotes which then comes up as an error.... I've followed the Eslint rules on https://eslint.org/docs/rules/quotes but the autosave function refuses to accept this... this also goes for extra semi and spacing ...
19 May 2019 by Gerry Schmitz
Start here: Single quotes are sometimes replaced with double quotes even when "prettier.singleQuote: true" is specified · Issue #2338 · prettier/prettier · GitHub[^]
11 Jun 2018 by Wayne Myer
How tax automation can help your company cut costs and reduce risk by managing sales tax more effectively
14 Oct 2013 by Marc Clifton
Exploring how to implement functional programming features such as function composition and chaining in Ruby.
3 Mar 2010 by Kanhar Munshi
A heavily optimized program written in Scheme that generates accurately the digits of the golden Ratio