Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6893807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:42:17+00:00 2026-05-27T06:42:17+00:00

This will probably make me look lame but still — I can’t find any

  • 0

This will probably make me look lame but still — I can’t find any formal description for either a typical rack application structure (folders/files, like public, config.ru), or the config.ru file contents.

In the Java world there’s a clear definition of a web application and the parts it comprised of (WEB-INF, META-INF web.xml).

Is there a specification of a Rack web application at all? Or is it something vague like Ruby itself.

I expected to find that info somewhere on the http://rack.rubyforge.org/ site but I couldn’t. Please point me in the right direction.


Although I marked this question as answered it is worth mentioning that the question itself in not very legitimate. The app structure is driven by the actual webserver/plugin combination in use, like Apache/Passenger, and not Rack.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:42:18+00:00Added an answer on May 27, 2026 at 6:42 am

    A Rack web application is as simple as:

    class HelloWorld
      def call(env)
        [200, {"Content-Type" => "text/plain"}, ["Hello world!"]]
      end
    end
    

    and as complex as apps built on frameworks like Rails, Sinatra, and so on, built on Rack.

    Pertaining to structure, you can create yours. With Rack, you generate content the way you want it to be structured. With Rack, you are basically outputting raw HTTP content.

    “Introducing Rack“, “32 Rack Resources to Get You Started” and “Introduction to Rack middleware” are resources to understand Rack better.

    Pertaining to structure, you have freedom in organizing files to suite the webapp. You may have other Rack applications in different files; All you need is to properly require those files.

    A Rack app can be any Ruby class that responds to the :call message with env, just like the HelloWorld app above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This will probably be obvious but I can't find the best way. I want
This will probably be a bot of a waffly question but ill try my
This will probably be just another unsolved thread but i'll fill in some info
It probably isn't even possible to do this, but I will ask anyway. Is
This is confusing me, so this question will probably be confusing. I have a
This is a very newbie question and i will probably get downvoted for it,
This is a very specific question which will probably earn me the tumbleweed badge,
This will be probable quite odd question. But i thought I will give it
[This will only make sense if you've seen Kevin Smith's 'Erlang in Practice' screencasts]
This will be implemented in Javascript (jQuery) but I suppose the method could be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.