SupeRails
SupeRails
  • 216
  • 499 750

Video

SupeRails #165 Manage active sessions. Security feature
zhlédnutí 553Před 19 hodinami
In some cases to enhance security of your application you will want to allow users to see all the devices/browsers they are logged in with. You would also provided a button to sign out of a device/browser. Here's how you can do it! Episode source code: github.com/corsego/165-security-manage-active-sessions/commit/028064768ecb033dc19d7f3179bb52d963a734f4 Based on this blogpost: blog.corsego.com/...
SupeRails #164 The illegal loophole to scaffold Tables in Rails 7
zhlédnutí 1,5KPřed 21 dnem
Since Rails 7 you can not scaffold tables in the index view any more. Instead you have a list of cards. Here's how you can bring back tables to your scaffolds. DHH hates this one simple trick! Episode source code: github.com/corsego/164-scaffold-erb-tables/commit/bbcd2d880824dfb838564b86024a8dd902028cf1 Based on this blogpost: blog.corsego.com/custom-scaffold-templates Resources: - www.reddit.c...
SupeRails #163 Instant page loads with Turbo 8 prefetch (aka InstantClick)
zhlédnutí 910Před měsícem
Turbo 8 has been released! One of the core new features - hover-click preload acceleration (ala InstantClick). InstantClick makes an assumption about potential user behaviour: now whenever you hover on a link, it will fire a GET request to retrieve that page. So when you actually click on the link, it will load faster. Remarkable how effective it is for perceived performance. It can save hundre...
Friendly Show S2E4 Ufuk says there is definitely NO consipracy around RailsConf 2024 in Detroit!
zhlédnutí 153Před měsícem
Audio version: www.friendly.show/2278525/14689994-why-detroit-meet-ufuk-the-secret-organizer-behind-rails-conf-2024 RailsConf is happening on 7-9 of May! And Ufuk is the lead organizer! He recently joined the Ruby Central board of directors. He is on the Shopify infrastructure team, working on making Ruby on Rails a better ecosystem 💪 We discuss: - What makes RailsConf 2024 special? - What is "...
SupeRails #162 Gem Ferrum - Generate PDF and PNG with Headless Chrome API. No Puppeteer, no NodeJS
zhlédnutí 761Před měsícem
Ferrum is Headless Chrome Ruby API. Ferrum lets you open a headless chrome browser and perform different actions: - visit web page - HTTP authenticate - find element by css/id - click link - fill in input field - take screenshot of a page - save page as PDF In this episode we will: 1. open page in new tab in PDF format 2. save page as PDF 3. save page as PNG Unlike Grover, it does not require P...
SupeRails #161 Import ICS Calendar events with Gem iCalendar
zhlédnutí 338Před měsícem
I love building calendars! ICS is the default format for a calendar file. Today we'll learn to read an ICS file and import it into our app. Recently 37signals released "Import ICS events" as a new feature in Hey Calendar. You can do it too! Episode source code: github.com/corsego/161-import-ics-calendar-events/commit/0e3704fc5728af60df6bc24f38062f46abfda4ba Based on this blogpost: blog.corsego....
Friendly Show S2E3 Meet SQLite Jesus, Stephen Margheim
zhlédnutí 249Před měsícem
Steven is on a mission to make SQLite good enough for production. We talked about: - SQLite and Litestack - contributing to open source - being "the guy" in a niche, creating your own luck
Rails #160 Meta Tags. Open Graph, SEO, social sharing previews
zhlédnutí 465Před 2 měsíci
Meta tags help to render your website nicely in the browser, in search engines, and in social media link previews. Favicon, site name, page title, page description, and page image are the most impactful meta tags. Learn to set meta tags without and with gem "meta-tags". Learn to preview meta tags by specialised crawler tools. Episode source code: github.com/corsego/160-meta-tags-og/commit/d29de...
Rails #159 Access localhost anywhere with Ngrok
zhlédnutí 583Před 2 měsíci
Ngrok gives a public URL to your localhost. This is useful for testing from other devices, working with external APIs that require a real URL. Based on this blogpost: blog.corsego.com/ngrok P.S.1. If you hit the limit, consider alternatives! P.S.2.. I am not affiliated with Ngrok.
Rails #158 Build a Calendar from zero. No external dependencies!
zhlédnutí 1,6KPřed 2 měsíci
A long time ago I thought it impossible to build a calendar on your own; I thought you need an external library. However building a calendar is much easier than you think! Let's build a monthly view calendar, and populate it with events! Episode source code: github.com/corsego/158-calendar-app/commit/1702b7f385b80064635a96b0038aaf451999659b Based on this blogpost: blog.corsego.com/build-a-calen...
Friendly Show S2E2 Amanda Perino. RailsWorld 2024. CFP open. How to become a speaker?
zhlédnutí 190Před 2 měsíci
Join the dialogue with Amanda Perino, CEO of the Rails Foundation, as we unpack the intricacies and excitement of Rails World 2024. Amanda brings her unique perspective to the table, revealing the behind-the-scenes of organizing a top-tier conference in Toronto and how they're shaping it to be an even more engaging and community-driven event. We reminisce about past encounters that birthed our ...
Friendly Show S2E1 Andy Croll - CTO at CoverageBook, Brighton Ruby, RailsConf
zhlédnutí 87Před 2 měsíci
Join the conversation with the serial conference organizer Andy Croll, where we talk about how he started Brighton Ruby, why he's still doing it, how he's helping organize RailsConf this year, and about First Ruby Friend and why you should hire junior developers. brightonruby.com/ firstrubyfriend.org/ railsconf.org/
Is DocRaptor worth it? Puppeteer, DocRaptor, WeasyPrint
zhlédnutí 275Před 2 měsíci
In E155 I talked about DocRaptor - a premium API for generating and storing PDF via the PrinceXML HMTL-to-PDF technology. Today I am joined by James Paden who explains the intricacies of PDF generation and talks about free alternatives (puppetteer, weasyprint). I have always considered "HMTL to PDF" is a fundamental technology that should be open source. My key takeaways: - To generate a one-pa...
Ruby on Rails #157 Calendar Search with gem Pagy
zhlédnutí 624Před 3 měsíci
Ruby on Rails #157 Calendar Search with gem Pagy
FriendlyShow S1E10 Finale. 2023 summary, 2024 plans. What's coming to Rails 8?
zhlédnutí 174Před 3 měsíci
FriendlyShow S1E10 Finale. 2023 summary, 2024 plans. What's coming to Rails 8?
Rails #156 Turbo 8 Morphing in real life
zhlédnutí 3,5KPřed 4 měsíci
Rails #156 Turbo 8 Morphing in real life
Friendly S1E9 Mariusz Koziel - Ruby community in Poland, how to become CTO and CEO
zhlédnutí 271Před 4 měsíci
Friendly S1E9 Mariusz Koziel - Ruby community in Poland, how to become CTO and CEO
#155 Generate, store, email PDF invoices. DocRaptor API, HTML to PDF, ActiveStorage, ActionMailer
zhlédnutí 883Před 4 měsíci
#155 Generate, store, email PDF invoices. DocRaptor API, HTML to PDF, ActiveStorage, ActionMailer
Ruby on Rails #154 Avo 3 upgrade
zhlédnutí 682Před 5 měsíci
Ruby on Rails #154 Avo 3 upgrade
Ruby on Rails #153 Refactoring Hotwire Modals
zhlédnutí 1,5KPřed 5 měsíci
Ruby on Rails #153 Refactoring Hotwire Modals
Ruby on Rails #152 Custom Turbo Streams. How to redirect from a form that is inside a turbo frame?
zhlédnutí 1,1KPřed 5 měsíci
Ruby on Rails #152 Custom Turbo Streams. How to redirect from a form that is inside a turbo frame?
Friendly Show E8 Andrea Rocca, Hotwire Cookbook, Rails UI, and flying foxes
zhlédnutí 164Před 5 měsíci
Friendly Show E8 Andrea Rocca, Hotwire Cookbook, Rails UI, and flying foxes
Ruby on Rails #151 Advanced Hotwire modals
zhlédnutí 1,8KPřed 5 měsíci
Ruby on Rails #151 Advanced Hotwire modals
Ruby on Rails #150 Global Search
zhlédnutí 1,1KPřed 5 měsíci
Ruby on Rails #150 Global Search
Rails #149 DataTables - Filters. Form fields OUTSIDE form. Checkboxes, radio buttons
zhlédnutí 783Před 5 měsíci
Rails #149 DataTables - Filters. Form fields OUTSIDE form. Checkboxes, radio buttons
Friendly Show E7 October summary, Brovember plans
zhlédnutí 144Před 5 měsíci
Friendly Show E7 October summary, Brovember plans
Rails #148 DataTables without page refresh using Hotwire Turbo Frames
zhlédnutí 2,3KPřed 5 měsíci
Rails #148 DataTables without page refresh using Hotwire Turbo Frames
Rails #147 DataTables - search, sort, pagination with Ransack and Pagy
zhlédnutí 2,7KPřed 5 měsíci
Rails #147 DataTables - search, sort, pagination with Ransack and Pagy
Ruby on Rails #146 Generate Barcodes with JsBarcode. StimulusJS, Importmaps
zhlédnutí 533Před 6 měsíci
Ruby on Rails #146 Generate Barcodes with JsBarcode. StimulusJS, Importmaps

Komentáře

  • @haroldpepete
    @haroldpepete Před 10 hodinami

    nice

  • @haroldpepete
    @haroldpepete Před 10 hodinami

    quite interesting, are you going to upload the entire session?

    • @SupeRails
      @SupeRails Před hodinou

      The full talks were recorded by the @railssaas conference team. It's been a year since the conference. I think that, unfortunately, they will never be released.

  • @aldomarquez6560
    @aldomarquez6560 Před dnem

    thanks for the tutorial, can you do a tutorial to use font awesome pro pls?

    • @SupeRails
      @SupeRails Před hodinou

      Hi Aldo! I think that the only change in your codebase will be to add a script like <script src="kit.fontawesome.com/your-unique-id.js" crossorigin="anonymous"></script> and you will be able to use pro icons and upload your own to a "fontawesome kit"

  • @joseluismoreyrajr.7598

    What keyboard do you use in this video? I love the sound. Also great video!

  • @et_matrix
    @et_matrix Před 6 dny

    Thanks for the video. I asked members in Telegram Ruby on Rails group and no answer. But if you use rails for api only app those data should be stored in JWT table in my opinion

  • @ledockol
    @ledockol Před 7 dny

    Ярослав, як завжди, все концетровано, дуже корисно. Лайк та у збережені) Додав би ще проміжну таблицю LoginSessions для збереження всіх сесій користувача. Це дозволило б моніторити, чи входив хтось в його аккаунт з чужого пристрою. Поточна реалізація просто видаляє стару сесію і ці дані не зберігаються. Можно паморочитися реалізацію дозволених користувачем пристроїв, з яких можно входити в його аккаунт. Дякую. Співчуваю за Чернігів!

  • @gauravrewaliya3269
    @gauravrewaliya3269 Před 7 dny

    Great video👍😁 But i am thinking the best approach to save last time of that device is used So it become easy to delete too old session like what'sapp , telegram etc As there are lots of simple approach , but i want the effective apprach , as its not good to update db for every request Suggestions from anyone is appreciable

    • @SupeRails
      @SupeRails Před 7 dny

      With my approach we read the db with each request to check if this session is valid (has not been logged out remotely); Writing to updated_at on each request is not perfect indeed. Alternatively you might have to do some Redis shenanigans 🤪 It's like here's an approach to see "users online" with timestamps: blog.corsego.com/set-user-status-online, and here's a Redis approach: blog.corsego.com/action-cable-broadcast-users-online

  • @mrpolarbear420
    @mrpolarbear420 Před 8 dny

    Good video. Thanks for the resource!

  • @ternggio6563
    @ternggio6563 Před 8 dny

    Awesome!

  • @yaroslavbozhak9107
    @yaroslavbozhak9107 Před 8 dny

    Thanks for the new video. Great job.

  • @kerlq3713
    @kerlq3713 Před 8 dny

    12:42 did it for me! Thank you very much

  • @jessicavillegas4654

    Mil gracias!! Justo lo que necesitaba y explicado paso por paso!

  • @ravidhyani8881
    @ravidhyani8881 Před 10 dny

    Can you share figma as well so that we can check table and screen simultaneously.

  • @cmthimmaiah
    @cmthimmaiah Před 10 dny

    Would be good to do a walkthru of how to receive emails from AWS / SES and use the ActionMailbox. Looking forward to that

  • @priyankamanna5878
    @priyankamanna5878 Před 10 dny

    This is really a simplified explanation. Great one 😊

  • @lsampson1974
    @lsampson1974 Před 11 dny

    I know this video is a year old, but I want to thank you anyway. You saved me a lot of time and frustration.

    • @SupeRails
      @SupeRails Před 11 dny

      Hi! I’m glad you found this video useful☺️ I think it will be relevant for a few more years. Currently there is no better approach with rails/hotwire

  • @georgesimei
    @georgesimei Před 12 dny

    First of all, thank you for the excellent videos; I'm learning so much from them! However, I have a question and would greatly appreciate your help. I've followed all the steps mentioned, but a question has arisen: If I need to add another modal to the same page, such as an additional form, is it possible to do this using the same turbo_frame in the application? Or do I need to code a separate turbo_frame_tag in the index for each modal, each with different IDs? Thanks for your attention.

  • @brzdogz
    @brzdogz Před 14 dny

    This saved me, after hours trying to figure out how to render an image on the email view, you've finally saved me with this tutorial! Ty :)

  • @magc2806
    @magc2806 Před 21 dnem

    Thank you for your videos! I like the way you explain complex things and make them simple. What is your opinion of using built-in action cable in production? Have you tried anycable which claims is faster and more scalable ?

  • @doathing6397
    @doathing6397 Před 23 dny

    Lol at "DHH hates this one simple trick!"

  • @kengreeff
    @kengreeff Před 23 dny

    TIL! Never thought to put a fake route in the url to get the full routes list, genius!

    • @SupeRails
      @SupeRails Před 23 dny

      these days more often I type "rails routes -g hello" in the console, and it gives me all the routes that contain "hello". check this out: www.bigbinary.com/blog/rails-5-options-for-rake-routes

  • @ledockol
    @ledockol Před 24 dny

    Neat! Thank you, Ярославе!

  • @mikopiko
    @mikopiko Před 24 dny

    Very cool!

  • @tevoj
    @tevoj Před 25 dny

    Waaay better.

  • @ernestadonu9110
    @ernestadonu9110 Před 25 dny

    I admire how you are able to get information quickly and get to understand the in and out of the framework ❤.

  • @SPYGAME213
    @SPYGAME213 Před 25 dny

    Koji link for the interview book seems to be gone. Could you please provide an updated link where the book still exists?

  • @yaroslavbozhak9107
    @yaroslavbozhak9107 Před 25 dny

    Thanks. Good job. I like your video.

  • @josfk
    @josfk Před 26 dny

    Excellent tutorial!!! Thank you!!! 🤗

  • @pwan3971
    @pwan3971 Před 27 dny

    Thank you so much for this tutorial, this is truly educational

  • @switzerland
    @switzerland Před měsícem

    Ran into a weird issue. Had a page full of links. Instaclick worked as expected but moving the mouse freezed chrome on a medium computer. Firefox was fine. I think there are some issues that need to be addressed. I had to disable it on that page.

  • @arafathossain3778
    @arafathossain3778 Před měsícem

    Your videos are helping me a lot. Thank you, brother. God bless you.

  • @tomasvalent3876
    @tomasvalent3876 Před měsícem

    and if anyone is concerned about the number of requests remember Rails caching is your friend ...and ETags don't forget ETags 😇

  • @ledockol
    @ledockol Před měsícem

    Цікаві фічі! Дякую Ярослав що показав. Чекаємо на продовження!

  • @wakematta
    @wakematta Před měsícem

    Very cool. I had this idea like 10 years ago and I totally forgot to do something about this idea.

  • @user-cv9ks9yf3g
    @user-cv9ks9yf3g Před měsícem

    Thank you for this video exactly what I was looking for ! would be interested in going further with an export of the filtered result using caxlsx for ex :)

  • @peter14dt
    @peter14dt Před měsícem

    how does it work using simple_form?

  • @peterl0815
    @peterl0815 Před měsícem

    Thx. I've cloned the sources of the Datepicker into /vendor/javascripts and added pin "vanillajs-datepicker", to: "assets/vanillajs-datepicker/dist/js/datepicker-full.min", preload: true # @1.3.4 to the importmaps For the controller I had to add on the top import "vanillajs-datepicker"; So you also don't have to use the imported styles from remote but you can use it from the cloned sources.

  • @alexax3888
    @alexax3888 Před měsícem

    Thanks for your tutorials! 🎉

  • @Gadetto
    @Gadetto Před měsícem

    As always. Good stuff from SupeRails!

  • @katkavanagh
    @katkavanagh Před měsícem

    Thanks! I can't believe you helped me do this! So grateful.

  • @rapcal
    @rapcal Před měsícem

    Any pointers on how to deploy it?

    • @SupeRails
      @SupeRails Před měsícem

      here's how: blog.corsego.com/gem-ferrum-generate-pdf#7-heroku

    • @rapcal
      @rapcal Před měsícem

      Thanks, @@SupeRails !

  • @lundier
    @lundier Před měsícem

    This does look really interesting. I am a bit concerned with the timeouts but I think I may give it a shot creating them in background jobs. I'm currently using PDFShift, which so far is working well, but it would be nice to do it all in house.

    • @SupeRails
      @SupeRails Před měsícem

      I agree: I think it’s best to use background jobs to store generated files (rather than display them in browser on render without saving)

  • @peaceandworld
    @peaceandworld Před měsícem

    Спасибо тебе! За мега-полезные туториалы и вообще! :)

  • @yaroslavbozhak9107
    @yaroslavbozhak9107 Před měsícem

    Thanks for your video.

  • @ledockol
    @ledockol Před měsícem

    Good! Thanks, Ярослав!

  • @salvadoraguirre8689
    @salvadoraguirre8689 Před měsícem

    Thank you very much Yaroslav, greetings from México.