stonean

trying to be better than I was yesterday

RuHL on Sinatra

To use RuHL with Sinatra simply

require 'ruhl/sinatra'

You will then be able to use RuHL:


# Simple case:
ruhl(:index)

# With layout:
ruhl(:index, :layout => path_to_layout)

# With local object (good for show/edit type pages)
ruhl(:show, :layout => path_to_layout, :object => @user)

Copyright © 2010 stonean. All rights reserved.
Powered by Thoth.