<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jayesh Binwal on Medium]]></title>
        <description><![CDATA[Stories by Jayesh Binwal on Medium]]></description>
        <link>https://medium.com/@binwaljayesh?source=rss-02128fc518cc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tS1lsgMqDQnuDX3E</url>
            <title>Stories by Jayesh Binwal on Medium</title>
            <link>https://medium.com/@binwaljayesh?source=rss-02128fc518cc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:39:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@binwaljayesh/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Boost productivity, reduce testing pain, and write cleaner RSpec tests with Cursor in your Rails…]]></title>
            <link>https://medium.com/@binwaljayesh/boost-productivity-reduce-testing-pain-and-write-cleaner-rspec-tests-with-cursor-in-your-rails-b6bae7d4009c?source=rss-02128fc518cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6bae7d4009c</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[aiinsoftwaredevelopment]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[rspec]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <dc:creator><![CDATA[Jayesh Binwal]]></dc:creator>
            <pubDate>Tue, 09 Sep 2025 08:56:52 GMT</pubDate>
            <atom:updated>2025-09-09T09:20:00.784Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sgX6tnfS6sho0X-60G-GKQ.png" /><figcaption>Discover how Cursor helps Rails developers write RSpec tests 5x faster. Save time, improve efficiency, and level up testing productivity.</figcaption></figure><h3>Boost productivity, reduce testing pain, and write cleaner RSpec tests with Cursor in your Rails projects.</h3><p>Writing RSpec tests in Rails often gets pushed aside. With tight deadlines and pressure to deliver features quickly, developers either delay writing tests or skip them altogether. This delay means many critical cases — like <strong>nil handling in controllers, models, and views</strong> — are overlooked. The result? Incomplete coverage, fragile code, and painful redevelopment cycles when bugs slip into production. Even when coverage looks high, missing edge cases such as nil values often lead to failing builds and frustrated teams.</p><p>For example, a simple controller action might look safe:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*5c8q9svSvEz9r-j3HzJWTQ.png" /></figure><p>But if @user is nil, this blows up with a NoMethodError. A single missed nil check can crash your app in production. With RSpec, this could be caught early:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*0prz84OsA4MZv6uYboLqxQ.png" /></figure><p>The problem is, under time pressure, writing these tests is often skipped. That’s where <strong>Cursor</strong> changes the game — it helps you write these critical cases alongside development, boosting efficiency by up to <strong>5x</strong>, while ensuring you never miss edge cases like nil handling again.</p><p>Missing RSpec tests often means missing nil handling — one of the most common causes of Rails production crashes.</p><h3>Why Testing with RSpec Can Be Slow</h3><p>RSpec is one of the most powerful testing frameworks for Rails, but let’s be honest — writing tests often feels like a chore. Developers know tests are important, yet when deadlines loom, testing is usually the first thing to get cut. Why? Because <strong>RSpec test writing can feel slow and repetitive.</strong></p><p>Here are the biggest reasons developers delay or skip RSpec:</p><ul><li><strong>Repetitive boilerplate</strong> → Writing setup code (let, before, factories) again and again kills momentum.</li><li><strong>Edge cases are time-consuming</strong> → Testing tricky scenarios (like nil handling, validation failures, or authorization checks) often takes longer than writing the actual feature.</li><li><strong>Context switching</strong> → Jumping between feature code and test code slows developers down, especially under tight timelines.</li><li><strong>False sense of coverage</strong> → It’s easy to write just enough tests to satisfy coverage tools, but real-world edge cases get missed.</li><li><strong>Maintenance overhead</strong> → As the app grows, tests need constant updates. This adds to the burden, making developers less motivated to write them in the first place.</li></ul><p>And the result?</p><ul><li>Features ship faster, but bugs sneak through.</li><li>Teams end up in <strong>redevelopment cycles</strong> when missed cases surface in production.</li><li>Coverage numbers look fine, but the codebase remains fragile.</li></ul><p>This is where many Rails teams get stuck — they know <strong>RSpec is critical for reliability</strong>, but the <strong>time cost feels too high</strong>.</p><p>RSpec is powerful, but writing tests manually under deadlines often feels like a chore developers love to skip.</p><h3>What is Cursor and Why Developers Love It</h3><p>Cursor is more than just another code editor — it’s an <strong>AI-powered development environment</strong> built to speed up the way developers write, test, and maintain code. Unlike traditional editors, Cursor is designed to understand your project’s context and assist you in writing not just feature code but also <strong>RSpec tests</strong>.</p><p>So why are developers quickly adopting Cursor?</p><ul><li><strong>AI-powered test generation</strong> → Cursor can suggest RSpec test cases automatically, helping you cover edge cases (like nil handling, invalid params, or failed validations) that developers often forget.</li><li><strong>Context awareness</strong> → It learns from your codebase, so the tests it generates aren’t generic — they fit your app’s models, controllers, and business logic.</li><li><strong>Faster iteration</strong> → Instead of manually writing repetitive setup and expectations, you get test scaffolds instantly, which you can tweak and refine.</li><li><strong>Seamless developer experience</strong> → It integrates smoothly with your Rails workflow, so you don’t have to leave your flow or fight with external tools.</li><li><strong>Boosted productivity</strong> → By reducing the grunt work, developers focus on meaningful logic while still achieving <strong>5x faster test coverage</strong>.</li></ul><p>Imagine you’re writing a new Rails controller. Instead of stopping to think through every possible test, Cursor can instantly draft relevant RSpec examples for you. You still have full control — but now you’re starting from <strong>80% done</strong> instead of <strong>0% blank file</strong>.</p><p>This combination of <strong>speed + intelligence</strong> is why developers are calling Cursor a game changer for testing-heavy workflows like Rails with RSpec.</p><h3>How Cursor Speeds Up RSpec Test Writing</h3><p>The real magic of Cursor is how it transforms the <strong>test-writing process</strong>. Instead of spending hours writing repetitive setup, factories, and edge cases, Cursor helps you generate <strong>meaningful test coverage in minutes</strong>. Let’s look at some examples.</p><h3>🛠️ Auto-Generated Helper Specs</h3><p><strong>Generate RSpec for all Rails helpers with a single prompt</strong> → Cursor inspects your helper code, infers behaviour, and produces ready-to-run specs with ~85% accuracy.</p><figure><img alt="Cursor AI generating RSpec tests for Rails helper methods with ~85% accuracy, auto-detecting nil handling and edge cases" src="https://cdn-images-1.medium.com/max/1024/1*n0sQprl1ePJTDDpZNQt-Ng.png" /><figcaption>📌 <em>“Cursor generates RSpec tests for all Rails helpers with ~85% accuracy from a single prompt.”</em></figcaption></figure><h3>🚫 Without Cursor: Slow &amp; Manual</h3><p>Here’s how writing a simple controller test usually looks:</p><figure><img alt="Manual RSpec controller test in Rails showing boilerplate setup and missing nil handling edge cases." src="https://cdn-images-1.medium.com/max/1024/1*be8ZQBIuZlJHikT6un2t5g.png" /><figcaption>📌 <em>“Writing RSpec controller tests manually in Rails is slow, repetitive, and often misses nil handling.”</em></figcaption></figure><p>This works, but notice how much <strong>boilerplate</strong> you had to write just to test a basic action. And if you miss edge cases like nil values or invalid params? Bugs slip through.</p><h3>⚡ With Cursor: Fast &amp; Assisted</h3><p>Now, let’s see what happens when you use Cursor. You write your controller action, highlight it, and ask Cursor to “generate RSpec tests.” Cursor instantly suggests something like:</p><figure><img alt="Cursor automatically generating RSpec controller test cases in Rails with contexts for user exists, not found, and nil params." src="https://cdn-images-1.medium.com/max/1024/1*OVI7WuTsuKmlZaTlpzIdcg.png" /><figcaption>📌 <em>“Cursor instantly generates RSpec controller tests with meaningful contexts and edge cases included.”</em></figcaption></figure><p>This is how the prompt works: Cursor automatically generates spec files following your project’s folder structure. You just need to accept the file with one click — and the magic happens.</p><figure><img alt="Cursor generating spec files in Rails project folder structure with ready-to-run RSpec tests." src="https://cdn-images-1.medium.com/max/1024/1*NzFomTfhyalK4aeJ3gOuFw.png" /><figcaption>📌 <em>“Cursor automatically creates spec files inside your Rails project folder structure with ready-to-run tests.”</em></figcaption></figure><figure><img alt="Cursor generating FactoryBot factory for a Rails model while creating RSpec controller tests, reusable in model specs." src="https://cdn-images-1.medium.com/max/1024/1*3WekAtEbRJMaYlO8IWuwEw.png" /><figcaption>📌 “Cursor auto-generates a FactoryBot factory for your Rails model, making it reusable across controller and model specs.”</figcaption></figure><p>When Cursor generates controller specs, it doesn’t stop at just test cases — it also creates the <strong>FactoryBot factory for your model</strong>. This means you can reuse the same factory across controller, model, and request specs without manually setting it up. By automating both the <strong>test structure and the supporting data</strong>, Cursor saves even more developer time while keeping your specs consistent and DRY.</p><p>Just one prompt and your <strong>entire controller code is covered</strong> — with edge cases included. When you run your spec file, those edge cases already pass successfully.</p><h3>🔍 Notice the Difference?</h3><ul><li>✅ Cursor adds <strong>meaningful contexts</strong> automatically (when user exists, when user does not exist, when params are nil).</li><li>✅ It suggests <strong>edge cases developers often forget</strong> (like nil handling).</li><li>✅ <strong>Boilerplate</strong> (factories, setup) is auto-generated, saving you time.</li></ul><h3>🎯 The Result</h3><p>Instead of manually writing <strong>20–30 lines</strong> of repetitive RSpec code, you start with a <strong>ready-to-run test suite</strong> that’s 80% complete. All you need to do is tweak expectations to match your business logic.</p><p>That’s how <strong>Cursor helps developers write RSpec tests 5x faster</strong> while improving coverage and catching tricky bugs early.</p><figure><img alt="Comparison of RSpec test writing in Rails with and without Cursor, showing speed, coverage, and developer effort improvements." src="https://cdn-images-1.medium.com/max/1024/1*qdVbuy5J6H494JFo7EJxEQ.png" /></figure><p>👉 <em>Here’s a quick </em><strong><em>comparison of RSpec test writing in Rails, with and without Cursor</em></strong><em>. This table shows exactly how Cursor speeds up your workflow.</em></p><figure><img alt="Comparison of RSpec test writing in Rails with and without Cursor, showing speed, coverage, and developer effort improvements." src="https://cdn-images-1.medium.com/max/594/1*pSqcTql4SoTidCWEUQr6yQ.png" /><figcaption>📌 <em>“Side-by-side comparison of RSpec test writing in Rails: manual vs Cursor-assisted workflow.”</em></figcaption></figure><p>Cursor helps Rails developers write RSpec tests 5x faster with higher coverage and fewer missed cases.</p><h3>How to Get Started with Cursor in Rails</h3><p>Setting up Cursor for your Rails workflow is simple:</p><ol><li><strong>Download Cursor</strong> → <a href="https://cursor.sh/">cursor.sh</a></li><li><strong>Open your Rails project</strong> in Cursor.</li><li><strong>Highlight code</strong> (controllers, models, helpers) and use a simple prompt like:<br> <em>“Generate RSpec tests for this file.”</em></li><li><strong>Review and tweak</strong> → Cursor creates RSpec files following your project’s folder structure. You just accept them, run rspec, and refine as needed.</li></ol><p>👉 In less than 5 minutes, you’ll have Cursor running alongside your Rails app, making RSpec test writing 5x faster.</p><h3>✅ Conclusion</h3><p>RSpec is one of the most powerful testing frameworks in Rails, but writing tests manually is often slow, repetitive, and prone to missing critical cases like nil handling. Developers under pressure to ship features quickly skip tests, leading to fragile code, low coverage confidence, and painful rework later.</p><p>With <strong>Cursor</strong>, that workflow changes completely. By auto-generating meaningful RSpec test cases, handling edge conditions, and reducing boilerplate, Cursor makes test writing up to <strong>5x faster</strong> while improving real-world coverage. Instead of worrying about missed cases, developers can focus on building features with confidence.</p><p>If you’ve ever felt testing was slowing you down, give Cursor a try in your next Rails project. You’ll not only save time but also ship code that’s <strong>faster, safer, and more reliable</strong>.</p><p>👉 <em>Follow me for more Rails testing tips, productivity hacks, and deep dives into developer tools that actually make a difference.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6bae7d4009c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Turbo in Rails: Your Guide to Building Blazing-Fast Web Apps]]></title>
            <link>https://medium.com/@binwaljayesh/understanding-turbo-in-rails-your-guide-to-building-blazing-fast-web-apps-3ecc784c92dc?source=rss-02128fc518cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ecc784c92dc</guid>
            <dc:creator><![CDATA[Jayesh Binwal]]></dc:creator>
            <pubDate>Thu, 21 Aug 2025 09:18:09 GMT</pubDate>
            <atom:updated>2025-08-21T09:18:09.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*jRrnnY6-cHwfMc_FowhuvA.jpeg" /></figure><p>Turbo, a cornerstone of the Hotwire suite, is a game-changer for Ruby on Rails developers. It’s a set of techniques and a minimalist JavaScript library that empowers you to build web applications with the speed and responsiveness of a Single Page Application (SPA), but with the simplicity of traditional server-side rendering.</p><p>Forget writing complex, client-side JavaScript frameworks. With Turbo, you can leverage your existing Rails skills to deliver an exceptional user experience with minimal effort. Let’s explore how Turbo works, its core components, and how you can use it to supercharge your web applications.</p><h3>Why Turbo? The “HTML-over-the-wire” Philosophy</h3><p>Before we dive into the features, let’s address the fundamental question: Why choose Turbo?</p><p>For years, the web development world was divided. You could build a traditional, server-rendered application where every interaction meant a full page reload. Or, you could opt for a complex SPA, which offered a seamless user experience but required a separate API, client-side routing, and a significant amount of JavaScript.</p><p>Turbo bridges this gap. Its philosophy, “HTML-over-the-wire,” means the server remains the source of truth, rendering HTML as it always has. But instead of sending the entire page on every request, Turbo sends only what’s necessary, intelligently updating the DOM on the client.</p><p><strong>Pros and Cons: Where Turbo Fits</strong></p><ul><li><strong>When to use Turbo:</strong></li><li>You want a fast, app-like feel without the complexity of a full SPA framework (React, Vue, etc.).</li><li>Your application is primarily content-driven or relies on CRUD (Create, Read, Update, Delete) operations.</li><li>You want to leverage your existing Rails and HTML skills without a major refactor.</li><li>You are building a cross-platform app for iOS and Android using Turbo Native.</li><li><strong>When a full SPA might be a better choice:</strong></li><li>Your application is highly interactive, state-heavy, and relies on complex, real-time UI manipulation (e.g., a collaborative design tool or a complex dashboard with drag-and-drop features).</li><li>You have an existing team with deep expertise in a specific JavaScript framework.</li><li>You are building a mobile-first application with a pre-existing native API backend.</li></ul><h3>The Four Components of Turbo</h3><p>Turbo is composed of four main parts that work in harmony:</p><h4>1. Turbo Drive: The Foundation of Speed</h4><p>Turbo Drive intercepts traditional link clicks and form submissions, preventing the browser from performing a full page reload. Instead, it fetches the new page’s content via a simple AJAX request and swaps out only the &lt;body&gt; of the current page.</p><p><strong>How it Works:</strong></p><ul><li><strong>Intercepts a link click.</strong> You click a standard &lt;a href=&quot;...&quot;&gt; link.</li><li><strong>Fetches new HTML.</strong> Turbo makes a request to the server, which responds with a full HTML document.</li><li><strong>Swaps the body.</strong> Turbo replaces the current page’s &lt;body&gt; with the new one from the response. It also merges the &lt;head&gt;, ensuring assets like CSS and JS aren&#39;t reloaded.</li><li><strong>Saves state.</strong> The browser’s history and scroll position are preserved, providing instant back and forward navigation.</li></ul><p><strong>Code Example:</strong></p><p>No special code is required! Turbo Drive works out of the box on any standard Rails link or form.</p><p>Code snippet</p><pre>&lt;%= link_to &quot;View Products&quot;, products_path %&gt;<br><br>&lt;%= form_with model: @post do |form| %&gt;<br>  ...<br>&lt;% end %&gt;</pre><h4>2. Turbo Frames: Targeted Updates</h4><p>Turbo Frames allow you to update a specific, isolated section of a page without reloading the entire document. This is perfect for things like forms in a modal, a list of comments, or a shopping cart summary.</p><p><strong>How it Works:</strong></p><ul><li><strong>Wrap your content.</strong> You use a &lt;turbo-frame&gt; tag with a unique id.</li><li><strong>Load content dynamically.</strong> When a link or form inside the frame is clicked, Turbo fetches the content and looks for a matching turbo-frame with the same id in the server&#39;s response.</li><li><strong>Replace the content.</strong> It replaces only the inner HTML of the frame, leaving the rest of the page untouched.</li></ul><p><strong>Code Example: A Comments Section</strong></p><p>Let’s imagine a blog post with a comments section.</p><p><strong>app/views/posts/show.html.erb</strong></p><p>Code snippet</p><pre>&lt;h1&gt;&lt;%= @post.title %&gt;&lt;/h1&gt;<br>&lt;div class=&quot;post-content&quot;&gt;...&lt;/div&gt;<br><br>&lt;%= turbo_frame_tag &quot;comments&quot; do %&gt;<br>  &lt;%= render &quot;comments/list&quot;, comments: @post.comments %&gt;<br>&lt;% end %&gt;<br><br>&lt;%= turbo_frame_tag &quot;new_comment_form&quot; do %&gt;<br>  &lt;%= render &quot;comments/form&quot;, comment: Comment.new %&gt;<br>&lt;% end %&gt;</pre><p>The new_comment_form will submit the form and the server&#39;s response will replace just that frame with the updated content (e.g., a success message or the form with validation errors).</p><h4>3. Turbo Streams: Real-Time Declarative Updates</h4><p>Turbo Streams enable you to push real-time updates to multiple parts of a page simultaneously. Instead of replacing an entire frame, a stream sends a declarative command to the client.</p><p><strong>How it Works:</strong></p><p>The server sends a response that contains specific instructions: “append this HTML to element with ID ‘X’,” “replace element ‘Y’ with this HTML,” or “remove element ‘Z’.”</p><p>This is often used with ActionCable (WebSockets) for real-time updates like a live chat, or with standard HTTP responses for operations that affect multiple elements, such as deleting a record that also needs to update a counter.</p><p><strong>Code Example: A Live Comment Feed</strong></p><p>After a comment is created, the server broadcasts an update to all connected clients.</p><p><strong>app/models/comment.rb</strong></p><p>Ruby</p><pre>class Comment &lt; ApplicationRecord<br>  # After a new comment is created, broadcast it to the post&#39;s stream.<br>  after_create_commit { broadcast_append_to post }<br>end</pre><p>This simple line of code automatically generates and sends a stream that looks something like this:</p><p>HTML</p><pre>&lt;turbo-stream action=&quot;append&quot; target=&quot;comments&quot;&gt;<br>  &lt;template&gt;<br>    &lt;div class=&quot;comment&quot;&gt;...&lt;/div&gt;<br>  &lt;/template&gt;<br>&lt;/turbo-stream&gt;</pre><p>The browser receives this command and appends the new comment to the comments element on the page, without a reload.</p><h4>4. Turbo Native: The Bridge to Mobile</h4><p>Turbo Native allows you to wrap your server-rendered HTML within native iOS and Android shells. You get a true native app feel — complete with native navigation, tabs, and modals — while your core content and business logic remain on the server. This allows you to reuse your existing web views and skills, simplifying cross-platform development.</p><h3>Troubleshooting and Best Practices</h3><p>Even with its simplicity, Turbo has some common “gotchas.”</p><ul><li><strong>My link inside a </strong><strong>turbo-frame is reloading the whole page!</strong></li><li><strong>The Fix:</strong> The link’s target needs to match the frame’s id. You must use a data-turbo-frame attribute on the link itself if you want it to target a different frame.</li><li>HTML</li></ul><pre>&lt;a href=&quot;/some/path&quot; data-turbo-frame=&quot;another_frame&quot;&gt;Load this into another frame&lt;/a&gt;</pre><ul><li><strong>My page is showing a blank white screen.</strong></li><li><strong>The Fix:</strong> This often happens when a form submission inside a Turbo Frame returns a redirect to a page that doesn’t contain a frame with a matching ID. The server must respond with a turbo-stream or a page containing a matching frame to avoid this issue.</li></ul><h3>The “Extra Magic” of Turbo (and Turbo 8)</h3><ul><li><strong>Instant Back and Forward Navigation:</strong> Turbo remembers previous pages in memory, so navigating back or forward is instant. It’s like a browser-side cache for your application’s pages.</li><li><strong>Scroll Position Preservation:</strong> Turbo automatically saves and restores the scroll position when you navigate away and return to a page.</li><li><strong>Turbo Morphing (in Turbo 8):</strong> The latest versions of Turbo introduce <strong>morphing</strong>. Instead of a full-body swap, morphing intelligently compares the old and new HTML and updates only the changed elements. This is a subtle but powerful improvement that prevents things like videos from flickering or third-party widgets from re-rendering, making transitions even smoother.</li></ul><h3>Getting Started: A Simple Comment Form</h3><p>Let’s put it all together with a quick tutorial.</p><p><strong>Step 1: Create your controller and views.</strong></p><p>Ruby</p><pre># app/controllers/comments_controller.rb<br>class CommentsController &lt; ApplicationController<br>  def create<br>    @comment = Comment.new(comment_params)<br>    @comment.post_id = params[:post_id]<br><br>    if @comment.save<br>      redirect_to post_path(@comment.post), status: :see_other<br>    else<br>      render :new, status: :unprocessable_entity<br>    end<br>  end<br><br>  private<br>  def comment_params<br>    params.require(:comment).permit(:body)<br>  end<br>end</pre><p><strong>Step 2: Add the </strong><strong>turbo_frame to your post page.</strong></p><p>Code snippet</p><pre>&lt;h2&gt;Comments&lt;/h2&gt;<br>&lt;%= turbo_frame_tag &quot;comments&quot; do %&gt;<br>  &lt;%= render @post.comments %&gt;<br>&lt;% end %&gt;<br><br>&lt;%= turbo_frame_tag &quot;new_comment&quot; do %&gt;<br>  &lt;%= render &quot;comments/form&quot;, comment: Comment.new(post: @post) %&gt;<br>&lt;% end %&gt;</pre><p><strong>Step 3: Create the comment form partial.</strong></p><p>Code snippet</p><pre>&lt;%= form_with model: comment, url: post_comments_path(comment.post) do |form| %&gt;<br>  &lt;div class=&quot;field&quot;&gt;<br>    &lt;%= form.text_area :body, placeholder: &quot;Add a comment...&quot; %&gt;<br>  &lt;/div&gt;<br>  &lt;%= form.submit &quot;Post Comment&quot; %&gt;<br>&lt;% end %&gt;</pre><p><strong>What Happens:</strong> The form inside the new_comment turbo frame will submit a request. The controller&#39;s create action will save the comment. The redirect_to post_path action will trigger a Turbo Drive visit to the same page. Thanks to Turbo Streams and a broadcast, the new comment will be appended to the &quot;comments&quot; frame automatically. This feels like magic, but it’s just the power of Turbo.</p><h3>Conclusion: A Better Way to Build Web Apps</h3><p>Turbo is not about abandoning traditional web development; it’s about making it faster, more interactive, and more enjoyable for both the developer and the end-user. By leveraging the elegance of server-side rendering and the performance of modern front-end techniques, Turbo empowers you to deliver a rich, native app-like experience on the web without the complexity of a full SPA. Start with Turbo Drive, then add Frames and Streams as needed. The result is a simple, scalable, and delightful developer experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ecc784c92dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Syntax,classes and Objects in Ruby]]></title>
            <link>https://medium.com/@binwaljayesh/syntax-classes-and-objects-in-ruby-50bdcf4f3f87?source=rss-02128fc518cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/50bdcf4f3f87</guid>
            <dc:creator><![CDATA[Jayesh Binwal]]></dc:creator>
            <pubDate>Fri, 29 Dec 2023 02:57:58 GMT</pubDate>
            <atom:updated>2023-12-29T02:57:58.718Z</atom:updated>
            <content:encoded><![CDATA[<p>Syntax,classes and Objects in Ruby</p><p>So ruby is easier to understand only if the basics of the Ruby are clear, so I started with the syntax. In Ruby there are Identifiers which is being referred to variable, methods and constants. Identifiers in ruby are case sensitive so one should be very careful while Defining Identifiers.</p><p>A special functionality of ruby is that it provides “Here document” tp create a stri g without using the string literals . To implement this we can use &lt;&lt; for string creation</p><p>There are BEGIN AND END statements in ruby that are used to execute a code at the beginning of any defined method or at emd</p><p>Eg print &lt;&lt; AB</p><p>This Is a class</p><p>AB</p><p>Output- This is a class.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50bdcf4f3f87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ruby learning]]></title>
            <link>https://medium.com/@binwaljayesh/ruby-learning-e8b3c190c4a3?source=rss-02128fc518cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8b3c190c4a3</guid>
            <dc:creator><![CDATA[Jayesh Binwal]]></dc:creator>
            <pubDate>Fri, 29 Dec 2023 02:52:00 GMT</pubDate>
            <atom:updated>2023-12-29T02:52:00.680Z</atom:updated>
            <content:encoded><![CDATA[<p>Ruby learning</p><p>From today I started learning rub, a new challenge for me as I was totally new to this language and had nearly no previous knowledge regarding ruby. So I thought It would be an challenging task for me.</p><p>I started with what is Ruby and why is it used. Ruby is an Interpreted language and an object oriented programming language.Its very similar to a programming language Smalltalk. But the functionality od Ruby is that it is very easier to learn Ruby and it’s syntax</p><p>We first need to install Ruby and then a very useful framework of Ruby which I rails is also been very handy when it comes to creating the web applications, so instead of installing it later I installed it with Ruby in ubuntu.</p><p>The latest version of Ruby is 3.2.2 and the current I am using is 3.0.0 and rails version is 7.2.1. Along with this it is better to install rvm also because Ruby Version manager helps users to manage different Ruby Version when working on the projects.</p><p>Today I only did installation and understanding of the gems. Gems are the dependencies that are being used in ruby to be installed along with it’s dependencies and proper configuration for better management and maintainence of the code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8b3c190c4a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>