ramaze

ramaze — Ruby gem

Ramaze — Ruby gem
1.gem install ramaze

2. Write code:

jazzez.rb

require ‘rubygems’
require ‘ramaze’

class AnotherController < Ramaze::Controller
map ‘/another’

# http://localhost:7000/another/hello
def hello
home=”https://raveendran.wordpress.com&#8221;
link=”<a href=#{home}>#{home}</a>”
“If you want to know about jazzez then go to #{link}”
end
end

Ramaze.start

3. Run the program —  cmd> ruby jazzez.rb

4. Open this link in browser –> http://localhost:7000/another/hello

Output looks like,

ramaze

For more details –>

1. http://ramaze.net

Advertisements

One thought on “ramaze — Ruby gem

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s