Skip to content

Instantly share code, notes, and snippets.

View tomfast's full-sized avatar

Tom Fast tomfast

View GitHub Profile
def new
@accessory = Accessory.new({ :client_id => params[:client_id] })
# b/c an accessory can be nested under client or lifting_device
@parent = find_parent
@users = (User.client_users @client.id).client_user_roles
end
def create
@parent = find_parent