Sha256: 5baa0bc0b07479c91dd186a5b8f7991b0a0afd9ec5c0b20056da57f9d2ed27a5

Contents?: true

Size: 535 Bytes

Versions: 21

Compression:

Stored size: 535 Bytes

Contents

require 'rubygems'
require 'ramaze'

class LinkingController < Ramaze::Controller
  map '/'

  def index
    %{simple link <br/> <a href="#{Rs(:help)}">Help?</a>}
  end
  
  def new
    "something new!"
  end
  
  def help
    %{you have help <br/> <a href="#{R(LinkToController, :another)}">A Different Controller</a>}
  end

end

class LinkToController < Ramaze::Controller
  map '/link_to'
  
  def another
    %{<a href="#{R(LinkingController, :index)}">Back to Original Controller</a>}
  end
end

Ramaze.start :adapter => :mongrel

Version data entries

21 entries across 21 versions & 5 rubygems

Version Path
Pistos-ramaze-2008.09 examples/basic/linking.rb
Pistos-ramaze-2008.12 examples/basic/linking.rb
Pistos-ramaze-2009.01 examples/basic/linking.rb
Pistos-ramaze-2009.02 examples/basic/linking.rb
clivecrous-ramaze-0.3.9.5 examples/linking.rb
manveru-ramaze-2008.07 examples/basic/linking.rb
manveru-ramaze-2008.08 examples/basic/linking.rb
manveru-ramaze-2008.09 examples/basic/linking.rb
manveru-ramaze-2008.10 examples/basic/linking.rb
manveru-ramaze-2008.12 examples/basic/linking.rb
manveru-ramaze-2009.01 examples/basic/linking.rb
ptomato-ramaze-2009.02.1 examples/basic/linking.rb
ptomato-ramaze-2009.02 examples/basic/linking.rb
ramaze-0.3.5 examples/linking.rb
ramaze-0.3.9.1 examples/linking.rb
ramaze-0.3.9 examples/linking.rb
ramaze-2008.11 examples/basic/linking.rb
ramaze-2008.06 examples/basic/linking.rb
ramaze-2009.01 examples/basic/linking.rb
ramaze-2009.03 examples/basic/linking.rb