On The Bike Shed, hosts Joël Quenneville and Stephanie Minn discuss development experiences and challenges at thoughtbot with Ruby, Rails, JavaScript, and whatever else is drawing their attention, admiration, or ire this week.
…
continue reading
Player FM - Internet Radio Done Right
16 subscribers
Checked 11d ago
เพิ่มแล้วเมื่อ nineปีที่ผ่านมา
เนื้อหาจัดทำโดย Chris Oliver เนื้อหาพอดแคสต์ทั้งหมด รวมถึงตอน กราฟิก และคำอธิบายพอดแคสต์ได้รับการอัปโหลดและจัดหาให้โดยตรงจาก Chris Oliver หรือพันธมิตรแพลตฟอร์มพอดแคสต์ของพวกเขา หากคุณเชื่อว่ามีบุคคลอื่นใช้งานที่มีลิขสิทธิ์ของคุณโดยไม่ได้รับอนุญาต คุณสามารถปฏิบัติตามขั้นตอนที่แสดงไว้ที่นี่ https://th.player.fm/legal
Player FM - แอป Podcast
ออฟไลน์ด้วยแอป Player FM !
ออฟไลน์ด้วยแอป Player FM !
พอดคาสต์ที่ควรค่าแก่การฟัง
สปอนเซอร์
M
Mind The Business: Small Business Success Stories


Building a thriving business isn't always about rapid expansion. When should you hit the accelerator on growth, and when should you pump the brakes? Jannese and Austin are in Nashville, Tennessee to talk with Taku Zhou and Sibusiso Ajayi of TKZ Architecture LLC to explore this crucial entrepreneurial crossroads. The duo shares candid insights from their journey building TKZ Architecture, revealing the moments they knew it was time to scale – and importantly, when it wasn't. They discuss how they balanced the allure of growth against the need to strengthen their foundation through refined workflows, established protocols, and market positioning. Tune in as we unpack the strategic decision-making that goes into sustainable business expansion and learn the telltale signs that you're ready for growth and how to execute that transition successfully. Learn more about how QuickBooks can help you grow your business: QuickBooks.com See omnystudio.com/listener for privacy information.…
How to use params.expect in Rails 8+
Manage episode 461121106 series 1128630
เนื้อหาจัดทำโดย Chris Oliver เนื้อหาพอดแคสต์ทั้งหมด รวมถึงตอน กราฟิก และคำอธิบายพอดแคสต์ได้รับการอัปโหลดและจัดหาให้โดยตรงจาก Chris Oliver หรือพันธมิตรแพลตฟอร์มพอดแคสต์ของพวกเขา หากคุณเชื่อว่ามีบุคคลอื่นใช้งานที่มีลิขสิทธิ์ของคุณโดยไม่ได้รับอนุญาต คุณสามารถปฏิบัติตามขั้นตอนที่แสดงไว้ที่นี่ https://th.player.fm/legal
Rails 8 introduces a new expect method for permitting parameters that fixes a few of the issues with require and permit. Let's take a look!
…
continue reading
381 ตอน
Manage episode 461121106 series 1128630
เนื้อหาจัดทำโดย Chris Oliver เนื้อหาพอดแคสต์ทั้งหมด รวมถึงตอน กราฟิก และคำอธิบายพอดแคสต์ได้รับการอัปโหลดและจัดหาให้โดยตรงจาก Chris Oliver หรือพันธมิตรแพลตฟอร์มพอดแคสต์ของพวกเขา หากคุณเชื่อว่ามีบุคคลอื่นใช้งานที่มีลิขสิทธิ์ของคุณโดยไม่ได้รับอนุญาต คุณสามารถปฏิบัติตามขั้นตอนที่แสดงไว้ที่นี่ https://th.player.fm/legal
Rails 8 introduces a new expect method for permitting parameters that fixes a few of the issues with require and permit. Let's take a look!
…
continue reading
381 ตอน
ทุกตอน
×Learn how to use the CodeMirror editor in your browser using Importmaps.
Rails 8 introduces a new expect method for permitting parameters that fixes a few of the issues with require and permit. Let's take a look!
Ruby 3.4 added 'it' to reference a block parameter with no variable name. Let's check it out!
Hotwire Spark is a new live reloading tool for Hotwire applications that uses morphing to update the page smoothly.
Black Friday is a popular shopping holiday every year. In this lesson, we'll build a Ruby gem to help automate our Black Friday sales each year.
Import maps are great, but how do they work? In this lesson, we'll demystify import maps and see how they integrate with Rails' asset pipeline.
Rails 8 now ships with multiple databases by default. In this lesson, we'll learn how the configuration works and how to deploy to production with environment variables
The Rails authentication generator is an awesome new addition with Rails 8 so let's explore how we can customize it to support user impersonation.
Rubocop Rails Omakase is just a starting place and provides a handful of rules.
Rails 7.2 now warns if any test runs without assertions. It helps make tests that may raise errors more explicit and less prone to mistakes.
Formatting Ruby code can be a point of contention because the language is so flexible, but it
Enqueuing jobs inside of a database transaction is a common mistake that's now handled for you automatically in Rails 7.2
The new browser guard in Rails 7.2 allows you to gate access to your application if a user is not using a modern browser.
Installing dependencies to develop and run your Rails applications locally can be a pain.
Rails 7.2 introduced a new rate limit feature that uses the Rails cache for preventing abuse of routes in your applications.
Honeybadger's new Insights feature is awesome but required manually editing the yaml file to enable. Let's make a pull request to automate this.
G
GoRails Screencasts

1 Adding Timeouts to net-ssh with Mike Perham 1:20:22
1:20:22
ลิสต์เล่นในภายหลัง
ลิสต์เล่นในภายหลัง
ลิสต์
ถูกใจ
ที่ถูกใจแล้ว1:20:22
In this lesson, we'll dive into some code to add timeouts for an issue with net-ssh with the help of Mike Perham
Sometimes you need user input to be restricted to a certain range or limited like "greater than zero". While you can do this with conditionals, there are some useful tricks to do this better in Ruby.
Rubygems.org released a new feature called Trusted Publishing which allows you to release gems directly from GitHub Actions without requiring 2FA or long-lived API tokens. Let's see how it works!
Sometimes you write code to get a feature working and stop there. With a little refactoring, you can extract local variables into methods that make testing and extending easier.
In this episode, we will learn about handling one-time payments with the Pay gem and Stripe embedded checkout. This is a great approach for non-recurring payments and can be implemented very quickly.
In this video, you'll learn about a feature of IRB, which is the ability to change context into an object.
Ever wondered how Rails controllers get their functionality? Let's see how we can add translation support to Rails API controllers by looking at the Rails source
Adam McCrea walks through using Phlex to build components for views in your Rails applications. Phlex is a Ruby gem for building fast object-oriented HTML and SVG components using Ruby constructs: methods, keyword arguments and blocks.
Mission Control Jobs is a UI for ActiveJob in Rails. It was announced at Rails World 2023 and just got released. It currently supports SolidQueue and Resque with more queue adapter support in the future.
Have models that store the same data but need different functionality? Rails provides Single Table Inheritance in ActiveRecord to solve this problem.
Notifications in Rails applications are even easier now with the new release of Noticed gem v2. We'll explore how to add notifications to your Rails app in just a few minutes.
Ruby 3.3.0 was released today and this lesson we're diving into the goodies included in the new version.
In this lesson, we will pick up where we left off in the last part and package up our script into a gem that we can share. Along the way, we'll look at how we can spread responsibility across a few small classes to separate concerns and hopefully make the
Solid Queue is a database backed queue adapter for ActiveJob in your Rails apps. Instead of requiring an additional service like Redis, jobs are managed in the database itself and it's compatible with PostgreSQL, MySQL, and SQLite.
In this lesson, we will be looking at getting a v1 of a Ruby script that will fetch, pull, and push across several repositories and remotes to keep our code up-to-date. Hopefully, it will give you ideas for other areas in your workflow where a simple Ruby
Discover how the new template locals work in Rails 7.1
In this lesson, we will look at a key element in what make the web, the web. Hyperlinks.
In this lesson, we will explore the other types of input elements which we can use in our forms.
In this lesson, we will explore the button element and some of the lesser known attributes/functionality that can be added to them.
In this lesson, we will step briefly into the world of forms in Rails to see the naming conventions Rails uses to help us get structured data from form submissions in our Rails applications.
In this lesson, we will learn about how to provide better structure to our webpages using more semantic elements from HTML5.
In this lesson, we will learn about how to display images on our webpages.
In this lesson, we will lay down our foundational knowledge of forms on the web, knowledge that will be used throughout your career as a web developer.
In this lesson, we will learn about how to display content in a list and how we can use list elements to create navigational aids for our webpages.
In this lesson, we will learn about the basic structure of HTML documents.
In this lesson, we will have a look at the elements used to markup text content in HTML.
In this lesson, we will learn what HTML is and why we need to know about it.
Rails.env looks and acts like a Ruby String, but you can call methods with question marks on it. In this lesson, we'll learn how it works using ActiveSupport StringInquirer.
In this episode, we will look into the new health check endpoint that will come by default in a Rails 7.1 application.
How to upgrade to Rails 7.1 This will also work with any other version and offers a few tips on how to test things out and revert back if necessary.
Normalizing data has always been a pain in Rails, but not anymore! Instead of callbacks or overriding setters, Rails 7.1 introduces "normalizes" to make normalizing data easy.
Rails 7.1 introduces many new features for authentication. In this lesson, we'll show you how to implement authentication from scratch using Rails 7.1's new features.
In this episode we discuss how to extend Rails (gently) with Kasper Timm Hansen and a few of his open source gems. The important idea here is for people to try to come up with their own ideas of making Rails better.
Bundler 2.4.19 introduces a new "file:" option for specifying the Ruby version file. This makes it easy for you to have a single point of truth for your Ruby version file.
Mobile and desktop versions of widgets often need to be completely different. Navigation and tabs on mobile don't work well when there are lots of items so we'll show you how to use Turbo and a select tag for mobile navs.
In this video, we will be looking at how to better debug issues in our programs and applications by leveraging the Ruby Debug gem.
Turbo Frames provide an iFrame like concept for Hotwire applications. If you're using Turbo streams to replace a portion of the page, you can accomplish the same thing even easier using Turbo Frames
In this episode, we will look at refactoring some time related code by leveraging ActiveSupport::TimeWithZone
In this episode, we will extend Trix by adding a text highlighting feature.
A lot of developers use link_to and button_to interchangeably. In this lesson, we'll explore when you should use link_to and when to use button_to and the differences between them.
Processing inbound webhooks can be tricky. In this lesson, you'll learn how receive, verify, and process webhooks in an efficient and well-organized manner.
Blog posts often need cover images for social sharing. In this lesson, we'll add cover image file uploads with ActiveStorage.
Pagination is something we don't need until we publish a lot of blog posts. We can use the pagy gem to add page links to the bottom of our pages and handle thousands of blog posts.
Over time, you'll need to upgrade the Ruby version of your Rails application. For example, a new version of Ruby was released since we started this series that fixes a couple security issues in Ruby so we'll teach you how to upgrade your Ruby version.
Rails uses the MVC Pattern. This isn't as scary as it sounds. It's basically a design architecture that gives you 3 primary buckets to help you organize your code.
ActionText builds on top of the ActiveStorage file uploads feature in Rails, so we're going to configure Amazon S3 storage so we can upload files in production
ActionText is a feature of Rails that allows you to add rich text including file uploads to any of your models. This is a perfect fit for our Blog Posts, so we're going to replace the text column with a rich text field with ActionText.
Scopes are a way for us to change the way a database table is queried. For example, we can use them to change the ordering of the results so certain records are first.
Our scheduled blog posts adds some complexity to our app. In this lesson, we're going to write some tests to make sure that our code does what we want it to do.
Scheduling blog posts to be published in the future is the next feature we're going to add. In this lesson, we'll talk about several options we have to implement this and then choose one to build.
Next we're going to deploy our Rails blog application to production! This is a huge step, but also
Our blog doesn't look great. We're going to install TailwindCSS so we can easily style our Rails application however we want.
Anyone can create, edit, or delete a blog post in our Rails app currently. In this lesson, we'll add authentication so only allowed users can do those actions.
We want to be able to delete blog posts we no longer want. We'll learn how to delete blog posts and refactor our code in this lesson.
Implementing Edit and Update actions are straightforward now. We can reuse what we've learned with New and Create and reuse some of the logic to edit and update database records in Rails.
Handling form submissions with Rails teaches us about strong parameters and saving data with our Rails models into the database.
We now want to create new Blog Posts in our Rails app, not directly in the database. To do this, we're going to start by building a new action and form for inputting data for our Rails model.
We need a way to view individual Blog Posts on their own URLs now. That's where our Show action comes into play and we will learn how to build that in this lesson.
An index page allows us to display all the blog posts in our database. We will learn how to setup routes that point to controllers and actions that render HTML.
The first thing we need is a database table to store our blog posts. We create a Rails model (the M in MVC) to create the database and a Ruby class for us to interact with the database table.
Now that we've created a new Rails app, let's take a look at the files generated and learn what they do
We're going to build a Blog with Ruby on Rails so let's start by making sure we have everything installed and create our new Rails app
Object oriented programming and Ruby go hand in hand. This lesson, we'll learn how to define classes and create instances of them to organize our code.
Loops allow you to run code multiple times. This is handy when you need to process a group of items one at a time until the entire group is finished. We'll also learn about Ruby blocks to define the set of operations.
So far, our project has been a single line of operation. We can refactor this to use methods to reuse code in various ways.
A method or function is a way to define a group of code that can be used repeatedly. We'll learn how to define methods in our Ruby code and then use them multiple times.
Conditionals allow your code to take different paths. Learn how to use conditionals like if statements in your Ruby code
G
GoRails Screencasts

Learn how to use Hashes in your Ruby code
G
GoRails Screencasts

Learn how to use Arrays in your Ruby code
Learn how to use Integers and Floats in your Ruby code
G
GoRails Screencasts

Learn how Strings work in Ruby
G
GoRails Screencasts

Learn how to execute Ruby Scripts and interactively run Ruby code in IRB
In this lesson, we look at the tools we will need to have installed so that we can start on our journey to learning SQL.
In this lesson, we will look at how to setup auto-incrementing integers ids for our rows in our database tables.
In this lesson, we will begin to explore how we can relate rows from one table to rows in another table by using foreign keys.
In this lesson, we will look at using the foreign keys to join tables together to return results from both tables.
In this lesson, we will look at how to group rows by a given column and then use aggregate functions to perform calculations on the results.
In this lesson, we will look at how to update the data and delete rows of data from our database tables.
In this lesson, we will look at how to use calculations with the where clause to filter the results from our database queries.
In this lesson, we will look at how to filter the results from our database queries.
In this lesson, we will look at how to perform calculations on the data we retrieve from columns in our database tables.
In this lesson, we will look at how to select rows of data from our database tables.
In this lesson, we will look at how to manipulate string data returned from our queries.
In this lesson, we will look at how to filter the groups resulting from writing group by clauses with the HAVING clause.
In this lesson, we will look at how to use joins together with group by clauses to group by columns from other tables.
In this lesson, we will look at how to insert data into our database table.
In this lesson, we will learn how to create and drop tables in our database with SQL commands.
In this lesson, we will learn how to create and drop databases with SQL commands.
Learn how to auto-submit forms when a user changes a value and use custom Turbo Stream Actions to update the page
ขอต้อนรับสู่ Player FM!
Player FM กำลังหาเว็บ