How do I do upserts and/or conditional saves?
3
Ruby
I have an external API that I am parsing and saving to the database via a scheduled job and I am having trouble working out how to:A: How to only save the parsed object if it has changed.B. How to ...
Jacob Montgomery replied
Solved
How do i implement load more comments or reply
1
Ruby
Chris i followed your series on implementing commenting systeming using polymorphic is true. Now that i got that implemented. i want to know how do i make this work with will paginate for example.....
khemlall mangal replied
Saas-Mixins
1
Ruby
I am getting an error **undefined mixin display**
while executing solidus multi_domain in my ruby application.
Please can anyon help me out..
Alan Reid replied
Chat Using Action Cable part 3 - Chatroom and ChatroomUsers Association
0
Ruby
I've been playing around and trying to implement a chat such as slack as shown on Chris's screencast. On Chatroom index I'm able to Show, Edit, Join, and Leave. However, when I clicked on Show e...
RicePad posted
How do I add the amount stored in my database to Braintree::Transaction.Sale?
0
Ruby
Hi all, I'm new to this community and also new to Ruby on Rails. I recently watched the Braintree integration screencast by Chris and I've been playing around with its Sand box integration.
I wa...
caller
7
Ruby
I have trouble solving the following excercise, i was wondering if there is any way in ruby where i can get which method called which i think caller but i havent figured out yet
```
require_relat...
roberto santelices replied
Optimizing Queries in Service Objects
9
Ruby
I'm currently building an app and using namespaced service objects containing a single call method in each class.
Below is an actual method (I'm aware the ABC size is too large, I'm wanting to get...
Jacob Montgomery replied
Solved
Proper location for null objects
2
Ruby
I've recently watched couple of screencasts on using Null Object Pattern: https://www.rubytapas.com/2017/01/31/two-screencasts-two-ways-eradicate-ruby-nil-values It was a good reminder about a ques...
Dan LeGrand replied
Solved
Retrieve all Project Threads where a given users has posted a Project Post
3
Ruby
A user belogns to a ProjectThread. And a ProjectThread has_many Users through ProjectPosts.
On the Project Thread Index I want to display only threads where a given users has posted a Project Pos...
Jacob Montgomery replied
Solved
How do I iterate over an array of nested hashes in a view?
7
Ruby
I have an array that has nested hashes of months, years and amounts that I want to diplay in a table. My data is in this format:
[{:month=>"January", :years=>{2017=>20, 2018=>100, 201...
Jacob Montgomery replied
Solved
Install Ruby from binaries on production: do or do not?
3
Ruby
I'm using rbenv with ruby-build plugin as a default way to install ruby for development and production environments. Is there a way to make installation process faster, but keep it stable?
For exa...
Alex Musayev replied
Solved
Ruby version stuck on macOS
4
Ruby
Setting up my new MacBook Pro and am running into an issue with ruby versions.
At this point I have installed and am usin rbenv. I installed ruby 2.3.1 and when I `ruby -v` that is what it shows.
...
Chris Oliver replied
Solved
CSV Import
3
Ruby
My question is about this Episode: https://gorails.com/episodes/upload-csv-form
The CSV Import works fine (I'm using the exact same code actually).
My 1. Question - How can I define an alias for ...
Chris Oliver replied
How to build a web scraper using Ruby...
1
Ruby
Hello Chris - can you please teach us how to build a web scraper using Ruby to collect data from the web?
Chris Oliver replied
Multiple Rubies using Rbenv
4
Ruby
I'm having total brainfog right now with rbenv, so please excuse the newbie question.
I have rbenv installed and my global ruby install is `1.9.3-p194` which I've developed multiple apps in. I'm ...
shakycode replied
Wrong Ruby version with Postgres user
4
Ruby
I'm having a difficult time understanding the postgres section. I've setup a postgres user but when I type "ruby -v" with that user I get 1.9.3, whereas with the deploy user I get 2.1.3 (the correc...
Jeff See replied