We're kicking off Vienna.rb!
Live now: Learning how to build games with Ruby by Marie-Therese Fischer!
#ruby
Posts by Marie-Therese Fischer
"AI first" - what could possibly go wrong..? π€¦ββοΈπ€¦ββοΈπ€¦ββοΈ
#duolingo
TIL about `.to_sentence` which converts an array to a comma-separated sentence including a connector word in the end.
['one', 'two', 'three'].to_sentence
becomes "one, two, and three"
It's so simple and so nice. I love you, #Rails πβ€οΈπ€οΈ
apidock.com/rails/Array/...
The spirit of the #Ruby community in a single photo. π
Save the date! The next Vienna.rb is happening on the 5th of June! ποΈ
We have a fantastic program with incredible speakers and a surprise prepared. More details to follow soon!
As the world's going crazy I find myself becoming kinda grateful for our Austrian news.. π
24 HOURS!!!!!!!!
Iβve taken the Senate floor and will speak for as long as Iβm physically able to lift the voices of Americans who are being harmed and not being heard in this moment of crisis. Watch here:
This is what a modern hero looks like. @booker.senate.gov is talking since 22 (!!!) hours, taking a stand against Trump!
Lmao π€£ savages
Stop your doomscrolling and vote for the International Mollusk of the Year!
The winner will have its complete genome sequenced!
Mollusks are awesome, and super diverse: they include snails, slugs, clams, octopuses, and more! πππ
Finalists in thread π§΅
Info & VOTE here:
moty.senckenberg.science
And throws: `You tried to define an enum named "status" on the model "Task", but this will generate a instance method "working_on_this?", which is already defined by another enum. (ArgumentError)`
Which is obviously bullsh*t and you're like WHAAAAAT?? π
(see report github.com/rails/rails/...)
Oha, I just found a #Rails bug π±π
This has first been reported on Rails 6 (in 2020) but seems to never have been fixed so far (v8).
When there's an enum in your model and you add a faulty validation below, you'll get a completely wrong error hint related to your enum instead of your validation.
So you got
```
class Task < ApplicationRecord
enum :status, {
working_on_this: 0,
closed: 1
}
validates :owner_id, on: :update
end
```
The `validates` is obviously missing something like `presence: true`. But Rails thinks your `enum` above is the problem.
Chatgpt conversation
#Rails debugging with my pal #ChatGPT. I think it kinda adapted to my kind of humor.. ππ₯
A WORLD WITHOUT EMPERORS!
πͺ @jay.bsky.team πͺ
see e.g. www.businessinsider.com/bluesky-ceo-...
Full house at Vienna.rb #63. We had a blast!
Thanks you to the amazing Alessia (mastodon.social/@AlessiaInTh... ) for taking all these lovely pictures!
www.meetup.com/vienna-rb/ph...
So, the thing is, I absolutely can't live without the summarized schema comments created by the #annotate gem. But it's not working properly under #rails8 and actually seems to be abandoned by now π₯² BUT good news: There's a fork github.com/drwl/annotat... and it works like a charm with Rails 8 β₯οΈβ₯οΈβ₯οΈ
"Stickl und Kocker"! Danke, @klauswebhofer.bsky.social fΓΌr den geilsten Versprecher des Abends π€£π€£π€£
Γsterreich kriegt doch noch eine Chance! Vielleicht schaffen wir's, nochmal die Kurve zu kratzen..
Empfehlung: @falter.at Podcast "Das Ende der zweiten Republik". AnhΓΆren!
open.spotify.com/episode/0NKo...
TIL how to deploy a Rails 8 app with Kamal AND manage DNS settings between Cloudflare, Hetzner and World4You!! And now fischer.codes is finally online π
Alright, that's been enough DevOps for 1 day.. π
I've been working on the new Rails Getting Started guide and it's now ready for review! π
github.com/rails/rails/...
Thank you @hansschnedlitz.com and @hola-soy-milk.online for reviving this meetup π
After a bit of struggling with my #M1MacBook I finally managed to install #Rails8! π
In case you also need help with #Rosetta 2, #asdf, etc. please feel free to check this guide I created.
π¦
Vienna.rb says hello! New #ruby meetup happening on December the 5th π
www.meetup.com/vienna-rb/ev...
ChatGPT 404 not found page
ChatGPT 404 not found page
ChatGPT 404 not found page
ChatGPT 404 not found page
Such a fan of #ChatGPT 's 404 Error Page π