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
Can I 'alias' a Rails active model to another class
9
General
First off I am sure I am not asking this question correctly as this is an advanced Rails topic over my head right now. Here is what I have for routes:
concern :assetable do
resources :ass...
Chris Oliver replied
Solved
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
Using Parallel gem to achieve parallel processing in Ruby for increasing performance and making Rails Application faster.
6
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...
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...
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
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
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
How to get param values through radio_buttons ?
2
General
I'm trying to create a TARGET with a responsible user via form_with:
```
<% @users.each do |user| %>
<%= f.radio_button :responsible_id ,'', id:"responsible-manage-#{user.id}", c...
rodolfo 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
How do I display several posts in related "weeks"
17
General
I would like to structure my blog so that I can assign posts I have created with Trix and Shrine to weeks.
I want to have 12 teaserboxes on my index page which can then be clicked and if I click o...
Best way to create a belongs_to object from a has_many
19
General
Sorry for the vague title but I cant think of a better explanation! Let's say I have a list of Users and an admin could click a button/link that would create a site for them from the existing ...
alangosh replied
Solved
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
Rails & Vue.js Trello Clone - Part 1 Discussion
34
General
Glad you decided to do this :)
don mclamb 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
Preferences & Settings with ActiveRecord::Store Discussion
24
General
Great stuff
sthapit 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
Introduction to Importing from CSV Discussion
46
General
thanks
HP replied