Setting up “Next post” and “Previous post”
2
General
In my blog application I want to have a **"Previous post"** link and a **"Next post"** link in the bottom of my show view. But I'm having a hard time getting it to work. What am I missing?
**This...
Chris Oliver replied
Solved
Stripe Subscription with Initial setup fee
3
Gems / Libraries
Hey Everyone,
I'm building a relatively simple subscription based app using Stripe, Devise, Pundit and a few other resources. My only real hangup at the moment is that the subscription requires an...
Jake replied
Solved
Calling function from handling click event issue
8
General
Hi Everyone
Using the UJS approach Chis showed in the NavBar notifications screencasts, I'm trying to implement something similar, and having very strange issue that I can't even imagine what's th...
Michael Derzhavets replied
Solved
How to I use Refile as Upload in a polymorphic way? I have managed to use it that way but i am struggling on destroy image after uploading
1
General
Here is the Schema for Uploads
```ruby
create_table "uploads", force: :cascade do |t|
t.string "file"
t.string "file_id"
t.string "file_filename"
t.integer "file_size"
...
Chris Oliver replied
Solved
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