From 1e35ca4895ce8d3c8f89267921ff49765019f53e Mon Sep 17 00:00:00 2001 From: rgarcia Date: Tue, 19 Jul 2016 13:16:30 +0200 Subject: [PATCH] adds budget structure for views and controllers --- app/controllers/budget/investments_controller.rb | 9 +++++++++ app/views/budget/investments/index.html.erb | 1 + config/routes.rb | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 app/controllers/budget/investments_controller.rb create mode 100644 app/views/budget/investments/index.html.erb diff --git a/app/controllers/budget/investments_controller.rb b/app/controllers/budget/investments_controller.rb new file mode 100644 index 000000000..b1e1ff16e --- /dev/null +++ b/app/controllers/budget/investments_controller.rb @@ -0,0 +1,9 @@ +class Budget + class InvestmentsController < ApplicationController + skip_authorization_check + + def index + end + + end +end \ No newline at end of file diff --git a/app/views/budget/investments/index.html.erb b/app/views/budget/investments/index.html.erb new file mode 100644 index 000000000..7b6743e31 --- /dev/null +++ b/app/views/budget/investments/index.html.erb @@ -0,0 +1 @@ +hello budgets! diff --git a/config/routes.rb b/config/routes.rb index 7d0a3a996..7b0d825c4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -75,6 +75,10 @@ Rails.application.routes.draw do end end + namespace :budget do + resources :investments, only: [:index] + end + resources :stats, only: [:index] resources :legislations, only: [:show]