Sha256: 03c35950d96f5a42a3b47411e9adc679366bca3c45bfe3d8d4fafbcf6786a720

Contents?: true

Size: 509 Bytes

Versions: 4

Compression:

Stored size: 509 Bytes

Contents

= Risosu-san

A lean mixin for <tt>ActionController::Base</tt> that assists in situations
where a resource controller is nested under another resource. Eg:

  /members/24/passwords/new

In this example, retrieving the parent resource is as simple as:

  class PasswordsController < ActionController::Base
    find_parent_resource :only => :new
    
    def new
      @parent_resource # => #<Member id: 24>
      @member # => #<Member id: 24>
    end
  end

See RisosuSan for a bit more in depth documentation.

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
matsimitsu-risosu-san-0.1.2 README.rdoc
matsimitsu-risosu-san-0.1.1 README.rdoc
matsimitsu-risosu-san-0.1.0 README.rdoc
risosu-san-0.1.0 README.rdoc