Permalink
Switch branches/tags
Nothing to show
Commits on Aug 20, 2012
  1. Use "format=json" for JSON

    mistydemeo committed Aug 20, 2012
    "json=true" was fairly dumb and nonstandard.
  2. submission_confirmation: return item with json

    mistydemeo committed Aug 20, 2012
    If JSON is requested when submitting an item, the JSON representation
    of the requested item will be returned upon successful submission.
Commits on Aug 19, 2012
  1. Move newspost formatting to a helper

    mistydemeo committed Aug 19, 2012
    * Moved newspost formatting to a helper
    * Added a new helper which handles displaying all newsposts,
      separating that logic out from the view itself
Commits on Aug 14, 2012
  1. Enforce foreign key in Posts

    mistydemeo committed Aug 14, 2012
    This uses the Foreigner gem; Activerecord doesn't seem to have native
    support for foreign keys in migrations yet.
Commits on Aug 12, 2012
  1. Add basic README, license

    mistydemeo committed Aug 12, 2012
  2. Improve configuration

    mistydemeo committed Aug 12, 2012
    Sets the Activerecord configuration based on RACK_ENV, with
    "development" as the default.
  3. app: Fix up include paths

    mistydemeo committed Aug 12, 2012
  4. Populate newsposts in a migration

    mistydemeo committed Aug 12, 2012
    Instead of using a script, it's much cleaner to handle this as a
    migration.
  5. Add newsposts

    mistydemeo committed Aug 12, 2012
    Newsposts are tracked in the database (not that there's a real CMS…),
    in the Post and Poster classes. (Not that there's more than one poster
    either…)
    
    This finishes up the "lost" page.
Commits on Aug 11, 2012
  1. Create LostItem and FoundItem classes

    mistydemeo committed Aug 11, 2012
    LostItem and FoundItem subclass Items to provide simple classes which
    only deal with lost and found items, respectively. This moves some
    logic out of the main app methods.
  2. Store and return a public ID number for each item

    mistydemeo committed Aug 11, 2012
    Each item should have its own unique item number. Rather than use the
    database ID, hit up Brooklyn Integers for a hand-crafted, guaranteed
    artisinal int to use. This is only returned with JSON output.
    
    A class for Mission Integers is also included, but I didn't use
    it because the response times were insanely slow. Oh well!
  3. Initial commit

    mistydemeo committed Aug 11, 2012