• Register

Recent posts tagged ruby

0 1 1 min.
Ruby and Python are both popular programming languages known for their speed, simplicity, and user-friendly syntax. Both languages are flexible, object-oriented , dynamic, and have many useful frameworks and libraries, particularly for web applicatio...
posted Apr 21 maazmasood 100 points
0 0 3 min.
RubyGems Error : + gem install rdoc --no-document Successfully installed rdoc-6.1.1 1 gem installed + gem install bundle Successfully installed bundle-0.0.1 Parsing documentation for bundle-0.0.1 Done installing documentation for bundle after 2 ...
posted Mar 31 Sabbir Hossain 14,630 points
0 0 2 min.
When I was learning programming language. It took me a long time to understand Java. After that I also had many difficulties in writing code. There were many mistakes in understanding classes and arrays. So it is important that you try to understand ...
posted Jan 31 Tania 602 points
0 0 1 min.
If you have been looking for an answer to the question of how to generate a random number in Ruby then you just got that today. This article is all about how you can generate random numbers in Ruby.The rand method can be used to generate random numbe...
posted Oct 21, 2020 Anthony Adeosun 660 points
0 0 3 min.
Due to the COVID-19 pandemic, the students or the developers got an excellent opportunity to learn and develop a new programming language. I know there are lots of programming language options to form. Here are four programming languages which too po...
posted Oct 14, 2020 heartbeat 7,750 points
0 0 3 min.
Solution:First thing first, you'll have to initialise a new hash as the value of the initial key, and put an Array as the value of the nested hash:Follw the below code:h = Hash.new { |hash, key| hash[key] = Hash.new { |k, v| k[v] = Arra...
posted Jul 19, 2020 Tushar Shuvro 31,120 points
0 0 2 min.
Solution: The default rails webpack server rebuild each .js(x) files alters and that took many time in development. You can solve it by applying gem foreman.Steps:1. Install foreman2. Make Procfile.dev in ...
posted Jul 19, 2020 Tushar Shuvro 31,120 points
0 0 2 min.
Solution:Whereas you don't have a customers table, and you're attempting to abstract the concept of a guest customer out of the orders table, making a model is a reasonable method. Follw the below programCode:class Custome...
posted Jul 19, 2020 Tushar Shuvro 31,120 points
0 0 1 min.
Solutuion:Follw this below program to solve this problemThe first thing you have to do set an array  for this it will perfectly works as like:Code:array = [] Dir.chdir "/path/to/dir" Dir.glob("**/*.{mo,txt}").each do |filename| File.open(file...
posted Jul 19, 2020 Tushar Shuvro 31,120 points
0 0 3 min.
Solution:We can execute  a very basic ORM with some Ruby meta programming however please keep in mind that this is nothing you must use in production for security purposes. Executing a fully performing ORM is A LOT of wo...
posted Jul 19, 2020 Tushar Shuvro 31,120 points
To see more, click for the full list of questions or popular tags.