Cross Reference: home_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
home_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
home_controller.rb revision 49add82df5492dd840e676ff2914574bb707f489
#
# The home page that displays all latest news
#
class
HomeController
<
ApplicationController
def
index
@
comments
=
Comment.latest.limit
(
10
)
.
all
@
versions
=
OntologyVersion.accessible
_by
(
current_user
)
.
latest
.
where
(
state
:
'done'
)
.
limit
(
10
)
.
all
@
repositories
=
Repository.accessible
_by
(
current_user
)
.latest.limit
(
10
)
.
all
end
def
show
end
end