
rails + DB dependent destroy vs cascade delete
3
General
Hi,
I wanna make sure that child objects also gets deleted when deleting parent.
I'd like to use both `dependent: :destroy` (rails side) and `on_delete: :cascaade` (db side). Is this a good prac...
Chris Oliver replied
Solved

How can I solve it?
10
General
Hello guys I have a problem with this!
I'm making my website where user can give feedback to my projects, contact me and make comment to a blog_post.
The problem is when i make the render 'blog_p...
Federico Calarco replied
Solved

How do I include a placeholder for empty notifications
2
General
Your In-App Notification code worked perfectly.
However I'm stuck on what code to use to display a placeholder message if there aren't any notifications.
You mentioned this briefly in the episode ...
Stan Smith replied
Solved

Limit CSV export by Day, Week and Month
1
General
Hi there,
is there an easy way to limit the results inside a CSV export to a specific time-frame, like day, week and month?
Thanks!
Chris Oliver replied
Solved

How do i update an attribute for belongs_to association when scraping a site?
5
General
So pretty much a `anime` belongs_to :season and a `season` has_many :animes.
I'm scraping a site and i'm collecting the season like "Spring 2015". I want to be able to assign "Spring 2015" to a ani...
Chris Oliver replied
Solved

How to by pass a string that has '???????' when scraping for dates and turning the date into an integer?
6
General
I'm scraping a anime information website. Right now, I'm trying to get the date going, but on some of the anime the date comes out as ???,??,????. I'm tying to figure out how to skip that or put so...
Wes replied
Solved

Rails console hacks :)
2
Rails
Hi there,
I need some help how to handle the rails console commands. I'm really stuck here..
I've recently added a new column (teams) to my Sales and Orders model. Both models containing the user...
Chris Oliver replied
Solved

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

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

Testing your markdown
3
Testing
I see your markdown tables aren't being rendered as tables. I have the same problem :( Any idea how we get this fixed?
| Tables | Are | Cool |
| ------------- |:-------------:| -...
Chris Oliver replied
Solved

How to use the Sentimental gem
8
Gems / Libraries
Hi there,
I want to use the Sentimental gem to automatically check if an article is positive negative or neutral. This gem here: https://github.com/7compass/sentimental works fine in the Rails con...
Sascha M. replied
Solved

Dynamic Pricing based on user country
2
General
Hello!
I'm thinking of a way to handle dynamic pricing on my web app based on the user country, for example:
A user wants to subscribe for a pro account on my website and this user is based outsi...
Enrique Benitez replied
Solved

How to migrate from Heroku to Digital Ocean
10
Servers
Chris, I'm thinking of moving to digital Ocean from Heroku but my knowledge on this topic is cloudy. Can you tell us about the differences between the 2 service? and benefit.
tim carmichael replied
Solved

Loop through associated records and deliver as csv
5
General
Hi there,
I've watched your CSV export episode and I'm using the exact same code to export the records to a CSV.
I've got two tables: Orders and Sales. 1 Order has_many Sales and 1 Sale belongs_t...
Sascha M. replied
Solved

dealing with authorized parts in fragment caching
4
General
I have a facebook/disqus like news feed in my app. Every action handled via AJAX on the posts index page. I have hard time figuring out how to do the russian-doll-catching when there are authorized...
Chris Oliver replied
Solved

Action Cable vs Mailboxer?
3
General
Differences and pros/cons between Rails 5 new **Action Cable** vs **Mailboxer** gem?
What are your thoughts? :)
Bruno Sacco replied
Solved

jquery.turbolinks not working on my app
2
Javascript
I'm using both jquery and turbolinks on my app and because turbolinks don't make full page loads I need some of my js to fire when navigating between pages using turbolinks, I really don't want to ...
Chris Oliver replied
Solved

Polling/Long Polling navbar notifications
3
General
Chris I have been using your implementation of navbar notifications and I really like the way it's constructed.
I can implement Facebook style notifications and I am pretty happy about it.
However ...
Chris Oliver replied
Solved

Push bitmap to clients in realtime
1
General
Hi Chris!
I want to create a service which will show a heatmap with some stocks data in realtime (updated each second). Each second there will be around 100 new data points and in general, chart m...
Chris Oliver replied
Solved

How do I add a loading spinner and bar like this site?
5
General
I know it's a **turbolinks** feature but I don't know how to make it appear or how to do it, it's pretty nice the way GoRails handles the loading with that spinner and bar, how is it done?
*Thanks...
Enrique Benitez replied
Solved