Is anyone using Rails 5 yet?
I have moved over to Rails 5 today. No issues as of yet :D Thanks all for your helpAlan Reid replied • Solved
Devise redirects to /users when there is an error editing profile
It's all good, though, with this site I am picking up so much I am impressed with what I have made so far, and that's just the user stuff lolAlan Reid replied • Solved
Is there a good reason to not use keyword arguments always?
I think its mostly just not taken off due to habit. We've had position arguments and then optional hashes which are pretty much keyword arguments so it's not a big change, but it's definitely a nic...Chris Oliver replied • Solved
What to use for multistep(wizards) in 2016?
Hey Szilard - Wicked wizard is still the best solution that I've seen out there - it works with Rails 5.0, however you'll probably find that the documentation is a bit old. https://github.co...Chase O replied • Solved
Is it possible to manually mark as watched an episode?
Yes! This is almost finished. I've been working on this feature as an update along with grouping episodes into series so they're easier to follow along. This should be released shortly.Chris Oliver replied • Solved
Better Errors ignore 404 errors
Yeah, not much better way to test it that I know of unfortunately. As long as you're throwing that exception, you shouldn't have any problems.Chris Oliver replied • Solved
How to link the liked posts by each user?
Always happy to help. :)Chris Oliver replied • Solved
Stripe Subscription with Initial setup fee
I know this is old but for anyone on Google: because of the possibility of the customer not paying the subscription fee I think [this](https://stackoverflow.com/a/45941054/1011803) is a better solu...Jake replied • Solved
Calling function from handling click event issue
Thank you, Chris, it is working! And thank you for pointing me that it is necessary to find out what is JS scopes, which appeared to be very useful information. :)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
For delete, I would send the Upload ID to the uploads controller and then just delete that directly. It's simplest that way because you aren't accessing anything through the polymorphic relationshi...Chris Oliver replied • Solved
rails + DB dependent destroy vs cascade delete
Great idea. Might also make sense to include something there on deleted records that use like an `DeletedUser` class or something to display some sort of text instead. Reddit does something like th...Chris Oliver replied • Solved
How can I solve it?
Perfect , I will search how to do that, thank you!Federico Calarco replied • Solved
How do I include a placeholder for empty notifications
That did it. Thanks Chris!Stan Smith replied • Solved
Limit CSV export by Day, Week and Month
Hey Sacha, you would just want to use a where query to scope to a date range before calling to_csv on it. You may need to change it from `all.each` to `scoped.each` in order for Rails to respect t...Chris Oliver replied • Solved
How do i update an attribute for belongs_to association when scraping a site?
Something like this should fix it: ```ruby desc "Fetch anime info" task :fetch_anime_info => :environment do require "open-uri" require 'mechanize' Anime.all.each do |anime| seas...Chris Oliver replied • Solved
How to by pass a string that has '???????' when scraping for dates and turning the date into an integer?
Thank you so much. This worked perfect.Wesly Mezarina replied • Solved
Rails console hacks :)
Hey Sascha, I'd write it like this: ```ruby Order.all.each do |tname| tname.update_attributes(team: User.where(:id => tname.user_id).pluck(:team).shift) end ``` The problem is when ...Chris Oliver replied • Solved
data consistency for invitation registration
Chris, a great episode again! So I compared your solution to mine and my structure ended up being a bit more complex since I needed to provide users to accept/decline joining the product. So I crea...Sean M replied • Solved