home
I'm splitting a search result string so I can use Rails Highlight to highlight the terms. In some...
A web service is returning a hash that contains an unknown number of nested hashes, some of which...
I have a fairly complex regular expression that matches parts of a document that lie between ASCII...
Currently, I'm using gmail messages but there's a delay... I'm trying to receive an alert and the...
I need to create 3 threads. Each thread will print on the screen a collor and sleep for x...
I am hitting a problem that a constant is being mapped to a wrong file. When debugging it, it shows...
If I render html page, I can get its content and use it to create PDF, like so: content =...
I'm working on a site where we have a list of "dprojects" in an index. Using the 'Ransack' gem,...
7 hours ago

Routing in rails 5.2

I have a RoR app with an admin_controller, the admin is able to CRUD Item, now I am a bit confused...
I have a ruby script for yaml merging as follows #!/usr/bin/env ruby require 'yaml' raise "wrong...
This question already has an answer here: How to sort one array based...
Anyone used the Line cookbook --> https://supermarket.chef.io/cookbooks/line I'm trying to add...
I am generating CSV using CSV.generate using the default column separator(",") in my rails...
How would one assign a local variable within an If Else statement check that could then be used...
I have an existing rails app that I want to turn into an engine so I can use in other apps and I...
This might sound kind of weird, because if you delete an element from some_array, it presumably...
This question already has an answer here: How to get all class names...
I'm trying to add an amount value to my join table. Here are my models: class Invoice has_many...
I have a problem with koala in a proyect with rails. When i want to retrieve some data from...
text = "\x00\x00\x00=\x00\x00\x01\xFF\xFEM\x00y\x00...
I'm pretty new to Rails and building a store locator app using a maps API. I have a Store model and...
I have a Ruby on Rails application and I want to know if exist a Gem or a way to test in Rails JS...
I'm trying to get/download some files from an url. I'm make a tiny script in ruby to get this...
How can I match line breaks between two asterisks in Ruby? I have this string Foo **bar** test...
So, There is a text file with hungarian letters, but the compiler does not want to execute my...
How can I make the index page different for each user? <% if can? :edit, :destroy, :new...
I'm using the ruby gem ActiveAdmin. On the index page, I want to show a few panels in addition to...
I have this HTML/JS code: <script> function sync() { var n1 =...
What I am trying to do is pass my grok fields in some way or another to an external ruby...