Permalink
Commits on Nov 9, 2009
  1. Fix display for non-standard formats (yaml, etc)

    Rails provides custom rendering for certain "standard formats",
    specifically :xml, :js and :json. This fix forces InheritedResources to
    render nonstandard mime-types as :text and ensures that they are
    formatted correctly. Resources for standard Mime types that Rails
    handles are passed without formatting to allow Rails to format them
    itself.
    
    - Rename Responder#to_format as Responder#call and refactor
      Responder.call to use it.
    - Add tests for InheritedResources controllers with respond_to(:yaml)
    - Add undef :to_yaml
    - Use the formatted resource and :text render type for
      non-standard formats
    committed Nov 9, 2009
Commits on Oct 15, 2009
  1. Release to gemcutter.

    josevalim committed Oct 15, 2009
Commits on Sep 30, 2009
  1. Updated CHANGELOG.

    josevalim committed Sep 30, 2009
  2. Bump version.

    josevalim committed Sep 30, 2009
  3. Tidying up some loose ends.

    josevalim committed Sep 30, 2009
  4. Correct default resource_name for flash

      Before: FileVersion => Fileversion
      After: FileVersion => File version
    sabotatore committed with josevalim Sep 22, 2009
  5. avoiding common `classify` bug with singular nouns

    Most singular nouns can be `classify`'d just fine but anything
    that ends in 's' in the singular form will be improperly transformed.
    
    If a resource is named :business the previous code would attempt:
    
       :business.to_s.classify.constantize # => Unknown Constant 'Busines'
    
    This patch allows:
    
       :business.to_s.pluralize.classify.constantize # => Business
    JackDanger committed with josevalim Sep 26, 2009
  6. adding support for :if and :unless scope options

    This provides the same functionality as the :if and :unless behavior
    on before_filters and after_filters.  A scope will be applied if :if
    evaluates to true and will be skipped if :unless evaluates to true.
    
    Particularly helpful for situations like the following:
    
      has_scope :not_deleted, :default => true, :unless => :is_admin?
    
    Accepts:
      - Strings
      - Procs
      - Symbol method names
    JackDanger committed with josevalim Sep 24, 2009
  7. Pagination example working for will_paginate

    Paul Campbell committed with josevalim Sep 28, 2009
Commits on Sep 28, 2009
Commits on Sep 20, 2009
  1. Introducing new controller helpers: create_resource, update_resource …

    …and destroy_resource.
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    carlosantoniodasilva committed with josevalim Sep 19, 2009
  2. Removing has_scope deprecation in class_methods test.

    Signed-off-by: José Valim <jose.valim@gmail.com>
    carlosantoniodasilva committed with josevalim Sep 19, 2009
Commits on Sep 19, 2009
  1. Fix warning message on DumbResponder

    Signed-off-by: José Valim <jose.valim@gmail.com>
    Darrick Wiebe committed with josevalim Sep 8, 2009
  2. Fixed specifying actions in ruby 1.9.1

    Signed-off-by: José Valim <jose.valim@gmail.com>
    Darrick Wiebe committed with josevalim Sep 8, 2009
Commits on Sep 9, 2009
Commits on Sep 4, 2009
  1. Kick tests back to life.

    josevalim committed Sep 4, 2009
Commits on Sep 3, 2009
  1. Tests flash messages on destroy

    Signed-off-by: José Valim <jose.valim@gmail.com>
    ellenvb committed with josevalim Sep 3, 2009
  2. Test if the object was successfully destroyed or not, providing the r…

    …ight flash message (:notice or :error) for each case. Business rules can avoid destroying.
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    ellenvb committed with josevalim Sep 3, 2009
Commits on Sep 1, 2009
  1. Updated README

    josevalim committed Sep 1, 2009
  2. Bump tiny.

    josevalim committed Sep 1, 2009
  3. Added parent_url.

    josevalim committed Sep 1, 2009
  4. Added association_chain.

    josevalim committed Sep 1, 2009
Commits on Aug 28, 2009
Commits on Aug 25, 2009
  1. Added responder and legacy.

    josevalim committed Aug 25, 2009
  2. Documentation patches.

    josevalim committed Aug 25, 2009