module Amatista::Helpers


Helpers used by the methods in the controller class.

Direct including types

Defined in:


Instance Method Summary

Instance Method Detail

def add_cache_control(max_age = 31536000, public = true) #

[View source]
def add_etag(resource) #

[View source]
def add_last_modified(resource) #

[View source]
def redirect_to(path) #

Redirects to an url


redirect_to "/tasks"

[View source]
def remote_ip #

Find out the IP address

[View source]
def respond_to(context, body) #

Makes a respond based on context type The body argument should be string if used html context type

[View source]
def send_data(body, filename, disposition = "attachment") #

Send data as attachment

[View source]
def set_headers #

[View source]