module InheritedResources::BaseHelpers

def begin_of_association_chain


and declare that projects belong to user.
If the user actually scopes the url, you should use belongs_to method

project_url(@current_user, @project)

urls, so this is never going to happen when calling resource_url:
The variable set in begin_of_association_chain is not sent when building

@current_user.projects.find(params[:id])
@current_user.projects.build(params[:project])

So every time we instantiate a project, we will do:

end
@current_user
def begin_of_association_chain

could do this:
and that means that they belong to the current logged in user. So you
association chain. For example, usually your projects belongs to users
This class allows you to set a instance variable to begin your
def begin_of_association_chain
  nil
end