Are "nonclass singleton methods as rare as class methods are common"
0
General
In his 2011 book "Eloquent Ruby", Russ Olsen makes the states that
"nonclass singleton methods [he refers to instance methods] are as rare as class methods are common."
He makes the point that th...
TrevorGage posted
Do you guys enjoy VSCode for writing Java?
1
General
Hey I've been using IntelliJ ever since I started using Java and I wouldn't give it up for anything else, but I've been only using my student license to do so. My student license expired yesterday ...
File Uploads with Refile Discussion
94
General
Awesome.
Someone replied
rails 6 favicon.ico Webpacker can't find favicon.ico
2
General
app/javascripts/packs/application.js:
import "favicons"
app/javascripts/packs/favicons.js:
const faviconsContext = require.context(
‘!!file-loader?name=../images/favicons/[name].[ext]!.’,
true...
Stéphane Paquet replied
[AskJS] Are there Babel plugins that optimize code for special use cases?
1
General
Hey all! I was thinking a bit - I don't really use generators, and I suspect that might be because you can't just use map, filter etc. Of course you can use the [...gen] way, but that gets very mem...
aostv replied
Payment Rails Master Class (SCA) ready?
2
General
Hi Chris,
I am wondering if **Payments with Ruby on Rails Master Class** is up-to-date with Stripe Strong Customer Authentication (SCA)?
Thanks
Alberto
Is there an episode on Post Production Updates?
2
General
Love the latest episodes Chris! Was wondering if you have or plan to cover soon how to do post production updates on a rails app. For me that is a scary topic and one i think lots of folks would l...
Sheryl James replied
User_signed_in? doesnt work
1
General
Whenever I request for a `user_signed_in?' I get a "undefined method `user_signed_in?' for #<#:0x0000558f352697c8>" error code. The code changes everytime. Im trying to check if the user is ...
Setup Ubuntu 20.04 Focal Fossa Discussion
15
General
Excelente tutorial. Muito obrigado.
Chibuike Uzoechina replied
Sperate views for differernt category
0
General
I have a rails blog with categories and I'd like to create a seperate partial for each category. Can anyone help?
Brijesh Wawdhane posted
Testing against multiple versions of Ruby, Rails, and Databases with GitHub Actions Discussion
0
General
Rails for Beginners Part 31: Tweet Partial Discussion
2
General
Hi Chris,
in video at 4:00 in tweet model. You use self.publish_at in after_initialize but only tweet_id? in published?
Why is one with self and other is not with self?
Jaroslav Horák replied
Rails for Beginners Part 22: Password Reset Update Discussion
5
General
How do we invalidate a token once it's used? For example you can still use the same token even after you've already reset your password once. That would be nice to implement but not sure whether it...
Smail replied
How HTTP Requests work in Rails Discussion
0
General
Rails for Beginners Part 35: Editing Tweets Discussion
2
General
Guess I spoke before going through all the lessons, thanks
Adding headers to spans question
1
General
Hello,
I am working on updating a web application for student accounts. There’s a connection to SQL server and through php we are extracting https://omegle.onl/ data as spans (first name, last nam...
jamesdon replied
Routing Inbound Emails with Actionmailbox Discussion
3
General
Loved the nifty regx trick.
Also liked the
```
if(user = User.find_by(....))
user
else
...
end
```
Didn't know you could define values in if statements and use them to return, will definately be...
Chris King replied
Using Ruby Service Objects To Refactor Your Rails Code Discussion
21
General
Very nice video Chris! I really like the idea of breaking things out into POROs. I think the next refactoring I would do to this app is making a Subscription class to house the logic for adding and...
hamza-itu replied
Sharing on social network
17
General
What is the best way for the visitors of my page (not logged in) to share models data (for example articles and courses) on Facebook and Twitter.
I have been looking for an answer without really fi...
Setup Ubuntu 21.04 Hirsute Hippo Discussion
6
General
Great guide as always! However, I believe that postgresql is now at version 12 and that 'sudo apt install postgresql-11' will return an unable to locate package error, I would suggest using 'sudo a...
Devon Kiss replied