lib/plezi/handlers/controller_magic.rb in plezi-0.10.13 vs lib/plezi/handlers/controller_magic.rb in plezi-0.10.14

- old
+ new

@@ -18,14 +18,14 @@ base.send :include, InstanceMethods base.extend ClassMethods end module InstanceMethods - module_function + public - # the request object, class: HTTPRequest. + # the request object, type HTTPRequest. attr_reader :request # the :params variable contains all the parameters set by the request (/path?locale=he => params ["locale"] == "he"). attr_reader :params @@ -95,10 +95,10 @@ # same as #url_for, but returns the full URL (protocol:port:://host/path?params=foo) def full_url_for dest request.base_url + url_for(dest) end - # this method adds data to be sent. + # Send raw data to be saved as a file or viewed as an attachment. Browser should believe it had recieved a file. # # this is usful for sending 'attachments' (data to be downloaded) rather then # a regular response. # # this is also usful for offering a file name for the browser to "save as".