1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/app/controllers/sources_controller.rb
cryptogopher c96cea5ca6 New objects are now created through association
Added Sources to sidebar
2019-09-23 15:35:43 +02:00

17 lines
322 B
Ruby

class SourcesController < ApplicationController
before_action :find_project_by_project_id, only: [:index, :create]
before_action :find_source, only: [:destroy]
before_action :authorize
def index
@source = @project.sources.new
@sources = @project.sources
end
def create
end
def destroy
end
end