Module: Sinatra::Trails::Helpers

Defined in:
lib/sinatra/trails.rb

Instance Method Summary collapse

Instance Method Details

#path_for(name, *args) ⇒ Object



264
265
266
# File 'lib/sinatra/trails.rb', line 264

def path_for name, *args
  Trails.route_for(self.class, name).to_path(*args)
end

#url_for(*args) ⇒ Object



268
269
270
# File 'lib/sinatra/trails.rb', line 268

def url_for *args 
  url path_for(*args) 
end