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 7168041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:41:57+00:00 2026-05-28T14:41:57+00:00

What is needed to run .rb file in a web browser? (My first day

  • 0

What is needed to run .rb file in a web browser?

(My first day in ruby)

I have Apache server (I’m coming from PHP) with passenger. Terminal proof:

gundars@linuxr528:~$ apache2ctl -t -D DUMP_MODULES
passenger_module (shared)

ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

I also have installed rails etc, Tried to make a quick app with rails and it worked fine.

Now I would like to simply open .rb file in browser, and it is prompting me to save it.
This is how it looks in my browser, the window on right side pops-up after clicking, it asks where to save it.
enter image description here

Entries, concerning Ruby and this file, are:

apache2.conf:

LoadModule passenger_module /home/gundars/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /home/gundars/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11
PassengerRuby /home/gundars/.rvm/wrappers/ruby-1.9.3-p0/ruby

virtual-hosts.conf

<VirtualHost *:80>
   ServerName tictactoe.ruby.dev
   DocumentRoot "/localhost/sandbox/RUBY/tictactoe/"
   ErrorLog /var/log/rubyonrails2.log
</VirtualHost>

/etc/hosts

127.0.0.1   tictactoe.ruby.dev

So the question – What is needed to run .rb file in a web browser?
I thought it’s what passenger was for…

  • 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-28T14:41:58+00:00Added an answer on May 28, 2026 at 2:41 pm

    Ruby is a server-side language. What you need is for a process to intercept your request, route it to the correct Ruby file, execute it, and send the output to your browser. Luckily, somebody has done this for you, with Rack and Passenger.

    Why you would want to do this instead of working within the Rails framework is beyond me.

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

Sidebar

Related Questions

I have an executable on my web server that outputs XML to a file
Coming from web development I have been trying to get familiar with compiled programming,
I have been recently (and repeatedly) asked by customers about MIPS needed to run
First steps in FreeBSD: trying to run my installation script. Fast help needed: #
In my setup.py file, I've specified a few libraries needed to run my project:
Suppose I have a very long file, utilities.php, which contains most if not all
I have a web app in python and there is a main file that
I have a 3rd party web page screen capture DLL from http://websitesscreenshot.com/ that lets
Needed Finfo but deleted msi package, so uninstalled php 5.3.0, downloaded 5.3.2 and installed.
We needed to monitor all processes Registry calls/File Sytem calls/Process creations in the system

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.