MyFramework is a lightweight MVC framework developed with Ruby and inspired by Rails. MVC stands for Model-View-Controller. It’s a paradigm, allowing developers to factor out the various components of an application and more easily update them.
-
redirect_to(url): Redirect to the passed URL.
-
render_content(content, content_type): Render custom content with the specified content_type.
-
session: key/value pairs saved to this hash are saved as cookies.
-
flash and flash.now: key/values pairs saved to this hash will persist through the next session and the current session only, respectively.
-
protect_from_forgery: MyFramework will check for an authenticity token in any submitted data. This token can be added to the forms in your views.