<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/inline-routes-in-rails-gtxgznwts" -->

---
title: Inline Routes in Rails | daily.dev
description: The word Rack actually refers to two things: a protocol and a gem. We will start by understanding the problem Rack solves and move to more advanced concepts...
canonical: https://daily.dev/posts/inline-routes-in-rails-gtxgznwts
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Inline Routes in Rails | daily.dev
og:description: The word Rack actually refers to two things: a protocol and a gem. We will start by understanding the problem Rack solves and move to more advanced concepts...
og:url: https://daily.dev/posts/inline-routes-in-rails-gtxgznwts
og:image: https://api.daily.dev/og/posts/Gtxgznwts.png
og:image:alt: Inline Routes in Rails
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Inline Routes in Rails

**[RUBYLAND](https://daily.dev/sources/rubyla)** · 1 min read · 3 upvotes · 2 comments

## Summary

The word Rack actually refers to two things: a protocol and a gem. We will start by understanding the problem Rack solves and move to more advanced concepts like middleware and the Rack DSL. In this article, we’ll do a deep dive into the Rails Router to understand it better.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.akshaykhot.com/rails-inline-routes/>

## Community discussion

Top comments from developers on daily.dev.

**@nittarab** · 0 upvotes

> Can we add the tag #bad_practice to this article? Good luck to writing test

**@titus\_42** · 0 upvotes

> It's fun to know, but I highly discourage using such tweak.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#rails](https://daily.dev/tags/rails), [#aws-lambda](https://daily.dev/tags/aws-lambda), [#sinatra](https://daily.dev/tags/sinatra)

[View this post on daily.dev](https://daily.dev/posts/inline-routes-in-rails-gtxgznwts)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Inline Routes in Rails","url":"https://daily.dev/posts/inline-routes-in-rails-gtxgznwts","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/inline-routes-in-rails-gtxgznwts"},"datePublished":"2023-05-13T22:22:49.041Z","dateModified":"2023-07-20T14:10:56.027Z","description":"The word Rack actually refers to two things: a protocol and a gem. We will start by understanding the problem Rack solves and move to more advanced concepts...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/65fb1c0cc5c64b479a288c32862365a8?_a=AQADKdt","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/65fb1c0cc5c64b479a288c32862365a8?_a=AQADKdt","isAccessibleForFree":true,"articleSection":"RUBYLAND","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"RUBYLAND","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/rubyla","url":"https://daily.dev/sources/rubyla"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/inline-routes-in-rails-gtxgznwts","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"rails,aws-lambda,sinatra","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"RUBYLAND","item":"https://daily.dev/sources/rubyla"},{"@type":"ListItem","position":3,"name":"Inline Routes in Rails"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/inline-routes-in-rails-gtxgznwts","comment":[{"@type":"Comment","text":"Can we add the tag #bad_practice to this article? Good luck to writing test","datePublished":"2023-05-15T12:22:04.916Z","url":"https://daily.dev/posts/Gtxgznwts#c-BI2XQXCGp","author":{"@type":"Person","name":"Patrick Barattin","url":"https://daily.dev/nittarab","image":"https://avatars.githubusercontent.com/u/6181406?v=4"}},{"@type":"Comment","text":"It’s fun to know, but I highly discourage using such tweak.","datePublished":"2023-05-15T13:22:48.381Z","url":"https://daily.dev/posts/Gtxgznwts#c-uDvvdsGoM","author":{"@type":"Person","name":"jgengo","url":"https://daily.dev/titus_42","image":"https://lh3.googleusercontent.com/a/AGNmyxaUJ3GCNzHmlH-EHFdCQlBVK-V0UoYMEG2igvPSTQ=s96-c"}}]}
```

