D
Decky Fiyemonda
Hi everyone iam new here but iam not in ruby.
How to make Web page with Ruby, and is ruby can run along with PHP?
How to make Web page with Ruby, and is ruby can run along with PHP?
Hi everyone iam new here but iam not in ruby.
How to make Web page with Ruby, and is ruby can run along with PHP?
Welcome to Ruby Community.Hi everyone iam new here but iam not in ruby.
How to make Web page with Ruby, and is ruby can run along with PHP?
manohar said:Hi,
Welcome to Ruby Community.
You go through the book Agile Development with Rails by Dave Thomas
and David Hansson.
Rails is framework which is required for web development and you need
to install it along with Ruby.
ie. Ruby on Rails.
No Ruby runs seperately. Ruby is used on Rails for Web Development.
Hi everyone iam new here but iam not in ruby.
How to make Web page with Ruby, and is ruby can run along with PHP?
A) *twitch*
B) If you're used to PHP, probably the easiest way would be to use
mod_ruby [http://www.modruby.net/en/], or WEBrick
[http://www.webrick.org/]. The latter site has some code in the "HTTP
server" section that should get you started. I think[1] WEBrick by default
will handle files with the extension .rhtml as ERB files, which are the
closest you'll get to the way PHP works - the basic difference is that you
write <% your_code_here %> instead of <?php ... ?>.
C) Depends on how you define "run along with". If you use mod_ruby (more
complicated to install), you can run both the languages with one Apache
server, probably depending on the file extension. This is where WEBrick is
more complicated, because it will be a Ruby-specific server independent of
your Apache. But it's possible (and fairly easy once you understand the
principles) to set up Apache so that it asks a running WEBrick to handle
your .rhtml files, using either mod_proxy (if all your .rhtml files are in
a single directory you're serving with WEBrick), or mod_rewrite (this is a
more complicated solution, where you'll have both Apache or WEBrick serve
the same directory, but only tell Apache to turn to WEBrick for the ones
whose filenames end in .rhtml).
Oh yeah i forgot to add some thing, the problem are same if i try to
install a gem, i put a command $gem instal something --option, and the
propmt say, "error while executing gem command" or something like that
1. some time, a prompt in particular computer did not recognize "make"
or "install" command. why, and how to solve it?
2. even it recognize "make" or "install" command it always error in
compuilation progress so i still cannot install it, again, why and how
to solve it?
3. if mod_ruby or eruby run with apache server are those need real
apache, cant i use apache in PHPTriad?
Oh yeah i forgot to add some thing, the problem are same if i try to
install a gem, i put a command $gem instal something --option, and the
propmt say, "error while executing gem command" or something like that
. o 0 (Huh?)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.