Search Results for "data-structure-ruby"
Lessons
Forum Threads

Data Structure - Going back to the basic with Ruby
1
Ruby
Hi Chris,Could you help me with books, material, videos about Data Structure with Ruby? I have been asked a lot about it in the interview. I am rusty about it and there are tons of pieces about on ...
William Kennedy replied
Solved

Having some problems with Using certain data from API calls
1
Rails
Hi i've been struggling for a while now trying to grasp how to use the data received in an api call. A lot of tutorials are either outdated or focus solely on creating API's rather than using them....
kaine Wright replied

GoRails Performance - The Techniques I Use Discussion
32
General
Thanks Chris. The first time my name appears on a video :)
Daniel Morales replied

has_one association on polymorphic model
4
General
I have the following models (stripped down for simplicity) :
```ruby
class Activity < ActiveRecord::Base
belongs_to :trackable, polymorphic: true
belongs_to :user
has_one :comment, as: :t...
Greg Answer replied
Solved

Create little (parse data, formatting and counting) project
2
General
Hello, friends. I am a total newbie in ruby, I want to try to do the following thing: create a program that will collect vacancies and monitor the number of repeated words from them.
The structure ...
Solved

Using Parallel gem to achieve parallel processing in Ruby for increasing performance and making Rails Application faster.
1
Ruby
Hi everyone, I'm trying to decrease API latency in our largely synchronous Ruby on Rails backend. While we use Sidekiq/Shoryuken for background jobs, the bottleneck is within the request-response c...
Florencio Schroeder replied

data consistency for invitation registration
9
General
Hey!
At the moment I have a user and a product table and products are created by users. So the user can create his own product he is working on. User `has_many :products` and `product belongs_to :...
Sean M replied
Solved

Structure Guidance - Multi Tenancy Authentication / Authorization
19
Rails
I while back I was playing around building an app where you had multiple tenants (Company Model) and a single login (User Model). I then created roles (Role Model) to link the users to the tenants....
BKSpurgeon replied

Handle schema changes and data changes using migrations?
1
Databases
ashley [2:18 PM]
What are different strategies folks use for handling _schema changes_ and _data changes_ and using *migrations*? *Once you have a production system running but need to do schema ...
Tabish Iqbal replied

Searchkick Aggregation for has_many_through association
1
Gems / Libraries
Hey guys,
I have an ecommerce product catalogue, where I store products, product options and option values in this kind of fashion:
```
# models/product.rb
has_many :option_values
has_many :optio...

How should I model this situation?
2
Rails
I need to store different metrics about various companies. These will be present for every company:
* revenue
* ebitda
* cash
* receivables
* employees
* debt
each one has attributes such as...
Chris Oliver replied

Nested attributes
4
Rails
Hi All,
I'm working with nested forms and I'm stuck trying to create the two models and the controller to handle this association.
My models following this structure:
Survey -> recipients <...
Giancarlo Corzo replied
Solved

Advice on building a 'reports' feature
9
General
My Ruby on Rails enterprise app has a whole range of tables ranging such as customers, products, sales, warehouses, prices etc etc.
I'd like to build a whole range of different reports that users ...
Daniel Chapman replied

Refactoring Your jQuery Code with Objects in Coffeescript Discussion
18
General
Thanks for this episode! I was recently working on a Rails project and saw much the same setup in their JS, didn't really grasp it at a high level. I could see it was organized more than the JS I w...
Fabrizio Bertoglio replied

How do Rails developers work with JS developers on a project?
5
General
Hi there!
I've been the only developer at my workplace for a while now and I've been coding in Rails, primarily. I don't have any formal qualifications in development, but I've been self-learning ...
Chris Oliver replied

Analytics with Segment Discussion
8
General
Great episode Chris! Would be awesome to see some more detailed episodes both for client and server side implementations.
DURR replied

How to prevent access to a group if user isn't a member?
4
Rails
Hi all,
I have user groups setup on my app using the code below...
```
class User < ActiveRecord::Base
has_many :user_groups
has_many :groups, through: :user_groups
end
class Group < A...
Alan Reid replied
Solved

Chartkick and impressionist gem render not working
32
Rails
**EDIT 1**
Here is a screenshot of the [current graph](https://gyazo.com/6dfa1edbfe15a5f8f80f424c681ff690)
**Original Post**
I'm using both chartkick and the impressionist gem and I seem to be r...
Ben John Bagley replied

Audited vs papertrail gem for auditing table changes?
4
Rails
I'm currently looking to use either one of these two for auditing changes made by specific user roles on a rails 6 ecommerce app using mysql. They both seem similar and I'm currently leaning toward...
anniesteuber replied

Stimulus JS Framework Introduction Discussion
27
General
I'm literally figuring out StimulusJS right now on an app, and I was hoping you would do a screencast on it soon and save me some time! Awesome timing :)
joelGarcia93 replied