Sha256: c4e20c66d26dd1f9b3fc98869c74397b11572653f55b89263ead78a97b12d0d4
Contents?: true
Size: 802 Bytes
Versions: 2
Compression:
Stored size: 802 Bytes
Contents
# Freddie Yet another web application framework for Ruby. :) ## Example ``` run Freddie do layout 'application.html.haml' # Serve some asset files # path('application-:timestamp.css') { stylesheet 'application.scss' } path('application-:timestamp.js') { javascript 'application.js' } # Built-in OmniAuth support # omni_auth # Provide a /logout action # path('logout') do session['omniauth_user'] = nil redirect_to '/' end # Mount a RESTful resource. This adds all the required # paths and even applies authorization scopes for the # currently logged in user. # resource :events do can :index, :show can :new, :create, :update, :destroy if current_user.admin? end # The root action is a simple redirect. # redirect_to '/events' end ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
freddie-0.0.2 | README.md |
freddie-0.0.1 | README.md |