Loos
10 years ago
7 changed files with 25 additions and 4 deletions
@ -0,0 +1,8 @@ |
|||||
|
class ReportsController < ApplicationController |
||||
|
before_action :authenticate_user! |
||||
|
|
||||
|
def bikes_sold_per_year |
||||
|
@bikes_sold_per_year = Report.bikes_sold_per_year |
||||
|
end |
||||
|
|
||||
|
end |
@ -0,0 +1,5 @@ |
|||||
|
class Report |
||||
|
def self.bikes_sold_per_year |
||||
|
"KITTIES" |
||||
|
end |
||||
|
end |
@ -1,6 +1,10 @@ |
|||||
class User < ActiveRecord::Base |
class User < ActiveRecord::Base |
||||
# Include default devise modules. Others available are: |
# Include default devise modules. Others available are: |
||||
# :confirmable, :lockable, :timeoutable and :omniauthable |
# :confirmable, :lockable, :timeoutable, :omniauthable, :registerable, |
||||
devise :database_authenticatable, :registerable, |
|
||||
:recoverable, :rememberable, :trackable, :validatable |
devise :database_authenticatable, |
||||
|
:recoverable, |
||||
|
:rememberable, |
||||
|
:trackable, |
||||
|
:validatable |
||||
end |
end |
||||
|
@ -0,0 +1 @@ |
|||||
|
= @bikes_sold_per_year |
Loading…
Reference in new issue