RisosuSan is a Rails plugin that assists in situations where a resource controller is nested under another resource.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 6 commits ahead of Fingertips:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
rails
test
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION
risosu-san.gemspec

README.rdoc

Risosu-san

A lean mixin for ActionController::Base 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.