Skip to content

Instantly share code, notes, and snippets.

View marcelloma's full-sized avatar

Marcello Albuquerque marcelloma

View GitHub Profile
@marcelloma
marcelloma / gist:3404604
Created August 20, 2012 14:11
webkit-debug
Finished "EnableLogging"
Wrote response true ""
Received "Visit"
Started "Visit"
Load started
"Visit" started page load
Started request to "http://127.0.0.1:57733/store/signin"
Finished "Visit"
Started request to "http://127.0.0.1:57733/assets/application.js"
Received 200 from "http://127.0.0.1:57733/store/signin"
module Administration
class PartnersController < BaseController
respond_to :html
def index
authorize! :read, :partners
@partners = Partner.page(params[:page])
respond_with @partners
end
class Partner
include Mongoid::Document
include Mongoid::Timestamps
field :contact_first_name
field :contact_last_name
end