1
0

Added project menu, body_trackers#index and sidebar

This commit is contained in:
cryptogopher
2019-08-09 12:09:18 +02:00
parent 3e83693c28
commit 40f39a955c
6 changed files with 37 additions and 2 deletions

View File

@@ -1,5 +1,17 @@
class BodyTrackersController < ApplicationController
before_action :find_project, only: [:index]
before_action :authorize
def index
end
private
# :find_* methods are called before :authorize,
# @project is required for :authorize to succeed
def find_project
@project = Project.find(params[:project_id])
rescue ActiveRecord::RecordNotFound
render_404
end
end

View File

@@ -0,0 +1 @@
<h3><%= t ".heading_common" %></h3>

View File

@@ -1 +1,5 @@
<h2>BodyTrackersController#index</h2>
<h2><%= t ".heading" %></h2>
<% content_for :sidebar do %>
<%= render :partial => 'sidebar' %>
<% end %>