๐Ÿ”Ž
 Hire Remotely Forum Coliving NewCommunity Dating Chat Remote Jobs 7 Advertise 
  Your profileโš™๏ธ  Settingsโค๏ธ  My wish list
๐Ÿก  Cities๐Ÿ‡ณ๐Ÿ‡ฑ  Countries๐ŸŒ  Community๐Ÿ‘‹  Dating New๐Ÿœ  Explore๐Ÿ’ฌ  Chat๐Ÿ—ฏ  Forum
๐Ÿ“ธ  Vote on photos๐Ÿ’ก  Request features๐Ÿ”ฎ  Random place๐Ÿ’ธ  Retirement (FIRE)๐Ÿ”Œ  Bali sea cable status๐ŸŒค  Climate finder New๐Ÿ“Š  Travel trends๐Ÿก  Real estate overseas
๐Ÿ‘ฉโ€๐Ÿ’ป Remote jobsโœˆ๏ธ  Airlines๐Ÿ—บ  Neighborhoods๐Ÿ  Coworkations๐Ÿฌ  Coworking spaces">๐Ÿ”–  Incorporate๐Ÿก  Flexible-term housing๐Ÿš‘  Insurance
๐Ÿ“ฃ  Advertise๐Ÿ™Œ  Open Startup๐Ÿ’  Help
Ruby Chat

All Channels
Join Nomad List to chat
# _gear8min# colombia25min# vietnam29min# bali32min# _startups55min# taiwan1h# _jobs-talk2h# ___general3h# argentina3h# _politics3h# spain4h# dominican-republic4h# _design4h# _money4h# _flying4h# budapest5h# _overland-travel5h# _fitness6h# _freelance6h# _food6h# _relationships6h# _coders7h# _pets11h# united-states11h# south-africa11h# costa-rica13h# chiang-mai13h# _taxes-intl13h# italy13h# _outdoors14h# thailand15h# germany17h# australia18h# _housing21h# __roll-call22h# india22h# brazil22h# hong-kong22h# united-kingdom22h# guatemala1d# mexico1d# new-zealand1d# uruguay1d# _show-and-tell1d# london2d# paris2d# poland2d# georgia2d# sri-lanka2d# montenegro2d# _crypto2d# japan2d# _books2d# chile2d# portugal3d# france3d# indonesia3d# sweden3d# china3d# south-korea3d# ukraine3d# new-york-city3d# estonia4d# bulgaria4d# turkey4d# _productivity4d# _language-learning5d# canada5d# _insurance5d# israel5d# malaysia5d# europe6d# _taxes-us7d# _bargain-travel7d# philippines7d# asia7d# _marketing7d# greece7d# croatia7d# amsterdam8d# berlin8d# netherlands8d# denmark8d# _photography8d# lisbon8d# russia9d# _dating9d# singapore10d# ireland11d# serbia11d# myanmar11d# puerto-rico11d# romania11d# _music12d# kuala-lumpur13d# montreal13d# peru13d# iran14d# tel-aviv14d# austin14d# _ruby14d# miami14d# mauritius15d# medellin15d# __jobs15d# belgium15d# _legal17d# switzerland18d# moldova18d# austria18d# san-francisco19d# _javascript20d# prague22d# __general28d# __jobs-feed1mo# middle-east1mo# latin-america1mo# cyprus1mo# cuba1mo# north-korea2mo# iceland2mo# macedonia2mo# laos2mo# lithuania2mo# panama2mo# _wordpress2mo# las-palmas2mo# morocco3mo# cambodia3mo# egypt3mo# ecuador3mo# south-america3mo# bangkok3mo# nepal3mo# seattle3mo# paraguay3mo# qatar3mo# toronto3mo# __forum3mo# __support3mo
hidden for non-members3mo
Happy Rails 6!
hidden for non-members3mo
I managed to migrate without much fuzz two days after release. This seems to be most smoothest rails upgrade experience like ever :)
hidden for non-members3mo
and don't get me started on rails 2 -> rails 3 upgrade ๐Ÿ˜„
hidden for non-members3mo
Haha jep! Barely any issues here too. Did you try any of the new goodies yet?
hidden for non-members3mo
ActionText works very smoothly, but part of me is a bit cautious to start adopting it widely because of how it's implemented all your app's rich text in one polymorphic table.
hidden for non-members3mo
Essentially the same pattern as they've used for ActiveStorage
hidden for non-members3mo
I've been using the multi-db stuff
hidden for non-members3mo
although I'm having a lot of problems with the tds/sql server drivers
hidden for non-members3mo
I haven't had a chance to troubleshoot everything
hidden for non-members3mo
it gets easier every time
hidden for non-members3mo
helps that github and shopify have been running it in production for months already
hidden for non-members3mo
nwiabryxdmyagahu I tried out ActionText locally, yeat didn't ship it to production -- not sure if rich-text is a good idea for my app. :)
hidden for non-members3mo
Shrine is one of the best libs for Ruby.
hidden for non-members3mo
hey, I was wondering if anyone knows how to prevent `ActiveRecordPreparedStatementCacheExpired ERROR cached plan must not change result type` errors after running `rake db:migrate`
hidden for non-members3mo
this has happened a few times, and it causes a crash for my customers
hidden for non-members3mo
this happens right after running `rake db:migrate`, and before I have a chance to restart all the Rails servers (which is considered a "fix")
hidden for non-members3mo
but I really want to avoid that race condition during an existing transaction, because this controller action needs to have zero downtime
hidden for non-members3mo
apparently I need `autosave=conservative` in my Postgres driver stackoverflow.com/a/48536394/304706
hidden for non-members3mo
aaglepzkychpx have you tried github.com/ankane/strong_migrations ? It will force you into writing safe migrations :) Seems like it's a possible issue in your case.
hidden for non-members3mo
hidden for non-members3mo
yep I love strong_migrations, unfortunately that doesn't catch this issue
hidden for non-members3mo
Thanks for the blog post, that looks great!
hidden for non-members3mo
hmm yeah I guess I just need to rescue and retry, which is a bit weird
hidden for non-members3mo
> NB. This is why retrying is not automatically performed by Rails, and instead we leave this up to the application developer.

Argh I wish Rails would just retry a save if it sees this error. I might add some code to do this automatically for all models
hidden for non-members3mo
deeper ActiveJob integration is definitely appreciated
hidden for non-members2mo
i like removing daemonization
hidden for non-members2mo
maybe I should do that in Puma
hidden for non-members2mo
hidden for non-members2mo
pretty sweet
hidden for non-members2mo
didn't know about github.com/testdouble/standard either
hidden for non-members2mo
very promising
hidden for non-members2mo
haha.. named it "standard" so there's only one standard.. instead of 15 competing standards
hidden for non-members2mo
now you can just gem install standard
hidden for non-members2mo
faobeysar do they have a config for the intellij code formatter?
hidden for non-members2mo
oh - not sure if IntelliJ can handle something like this
hidden for non-members2mo
zmprf how do you mean?
hidden for non-members2mo
isn't standard more like gofmt?
hidden for non-members2mo
or prettier
hidden for non-members2mo
well, intellij has a built in code formatter
hidden for non-members2mo
I actually get annoyed by most of the async linter bullshit
hidden for non-members2mo
many of rubocop rules are absurd - idgaf about line length
hidden for non-members2mo
and using something like prettier as an outside or async code formatter is absurd, when it should just happen automatically as I'm coding
hidden for non-members2mo
with that said, it looks like intellij/rubymine has a built in standard gem setting for their rubocop support
hidden for non-members2mo
when i was coding go with vim, i had it run gofmt everytime i did :w
hidden for non-members2mo
so didn't have to do anything but check the box
hidden for non-members2mo
everytime i saved i mean
hidden for non-members2mo
yeah, that's annoying
hidden for non-members2mo
hidden for non-members2mo
the goals are admirable, eliminate bikeshedding.. get past rubocop's bullshit heh
hidden for non-members2mo
I disable rubocop because of the friction and bullshit
hidden for non-members2mo
I know you can go and disable many of the rules, but it starts out so strict I rage quit
hidden for non-members2mo
yeah
hidden for non-members2mo
really like the notion of fixing bugs in ruby or the repl instead of using them as an excuse to avoid changing to a better standard
hidden for non-members2mo
I have a great setup with Rubocop, rubocop-daemon, and VS Code formatOnSave
hidden for non-members2mo
but will keep an eye on standard
hidden for non-members2mo
but yeah the default rubocop is too crazy
hidden for non-members2mo
oh standard is just a saner default config for RuboCop
hidden for non-members2mo
hi all! Im looking to get into rails as a nodejs/react dev, can anyone recommend a good tutorial?
hidden for non-members2mo
hidden for non-members2mo
^^^ still the best
hidden for non-members2mo
Yep, 100% agree
hidden for non-members2mo
Probably depends on how you like to learn things. Personally, I find it more effective while building a real project (or solving your own pain) and gorails.com/ has been a great resource for this type of learning.
hidden for non-members2mo
bihiynyzperj +1 for rails tutorial. This link (https://www.railstutorial.org/book) on free version in browser, you can pay for book version though.
Also I'd recommend to learn original rails guides (https://guides.rubyonrails.org) there is a lot of great info there.
gorails.com/ - is amazing but I think there is more advanced guides there.
Also if you haven't use Ruby before I strongly recommend start with language, not a framework here ruby-for-beginners.rubymonstas.org
hidden for non-members2mo
Thank you all for the great advice! Going through Rails tutorial
hidden for non-members2mo
Anyone using graphql-ruby?
hidden for non-members2mo
anyone using graphql-ruby?
hidden for non-members2mo
Anyone using graphql-ruby?
hidden for non-members1mo
yes
hidden for non-members18d
does anyone have an online IDE they use for Rails projects
hidden for non-members18d
Iโ€™ve never found one that I feel is particularly good
hidden for non-members18d
willing to give Cloud9 another chance since theyโ€™re with Amazon now
hidden for non-members18d
I have a lifetime sub with CodeAnywhere, but every time Iโ€™ve tried to use it for Rails dev, it just doesnโ€™t seem to work well
hidden for non-members18d
Iโ€™ve been trying to code on iPad a year or so agoโ€ฆ and went through all online IDEโ€™s I could. Never found anything even remotely convenient for development.
hidden for non-members16d
I'm pretty happy with vscode as an all around editor, but the last time I used rails was 4 years back. Theres a good few guides on what extensions to install for ruby on rails in vscode (I'm not yet allowed to share links). Usually the live debugging is tricky to setup.
hidden for non-members16d
there is no better IDE than IntelliJ - I think Iโ€™m good on the local front
hidden for non-members16d
was looking for an online/cloud option sbbjeprji - thanks, buddy!
hidden for non-members16d
gfquz if you do come across a decent cloud IDE I'd be happy to give it a try.
hidden for non-members16d
Actually VScode can be run as a cloud option though!
hidden for non-members16d
hidden for non-members16d
hidden for non-members16d
hrm
hidden for non-members16d
is it worth trying U03TWFWKX?
hidden for non-members16d
I donโ€™t want to spend an hour building this and getting it working, only to be disappointed lol
hidden for non-members16d
Iโ€™ve not tried it, heard about it in the context of developing from an iPad
hidden for non-members16d
Itโ€™s already a docker thing so hopefully not too much work to try it out.. should be the full experience since vscode is a electron app anyways
hidden for non-members16d
I still have an active GKE deployment
hidden for non-members16d
so I might just throw it on there
hidden for non-members16d
thanks for the heads up
hidden for non-members15d
Nice, thanks man
hidden for non-members15d
I tried to setup the docker image yesterday
hidden for non-members15d
And it was a giant pain in the ass
hidden for non-members15d
yeah the MS visual studio onilne is brand new just saw it in HN heh
hidden for non-members15d
I have a VS subscription
hidden for non-members15d
but itโ€™s not letting me do anything
hidden for non-members15d
when I try to โ€œcreate an environmentโ€ it just shoos me away
hidden for non-members15d
saying I donโ€™t have the permissions to perform operations on any provider namespace
hidden for non-members15d
MS business subscription stuff is so effing cryptic
hidden for non-members15d
visual studio online is vs code only and not actually visual studio
hidden for non-members15d
not sure if that matters subscription wise
hidden for non-members15d
but it just keeps giving me errors
hidden for non-members15d
I canโ€™t even create a new subscription
hidden for non-members15d
MSโ€™ shit never makes sense to me - itโ€™s all so convoluted
hidden for non-members15d
ok, I finally got it
hidden for non-members15d
I had to create a suborganization
hidden for non-members15d
assign it as a customer
hidden for non-members15d
create a pay-as-you-go subscription for it
hidden for non-members15d
and assign it rights
hidden for non-members15d
-_-
hidden for non-members15d
facepalm
hidden for non-members15d
sounds like AWS
hidden for non-members15d
wow, itโ€™s pretty pricey
hidden for non-members15d
you only pay for active use
hidden for non-members15d
well, thereโ€™s a nominal โ€œpassiveโ€ fee
hidden for non-members15d
per hour your instance is โ€œasleepโ€
hidden for non-members15d
they talk about self-hosting - I may look into that
hidden for non-members15d
I have a bunch of VPSs that are sitting there
hidden for non-members15d
unless, self-hosted is what you pointed me to before
hidden for non-members15d
I just need to get that working - the problem is the cert stuff is broken
hidden for non-members15d
and by default their container handles ssl termination itself
hidden for non-members15d
I just have to reconfigure how it works
hidden for non-members15d
this feels very beta
hidden for non-members15d
itโ€™s extremely janky
โ€นโ€บ
×
USD โ”€ $
ยฐF

by levelsio

โœจ To see all results
Sign Up
Log In