Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
class
UsersController
<
ApplicationController
def
index
@users
= User.
all
respond_to
do
|
format
|
format
.
html
{
render
'index'
}
format
.
xml
{
render
xml:
@users
}
format
.
json
{
render
json:
@users
}
format
.
pdf
{
render
pdf:
@file
}
end
end
end