12 lines
192 B
Ruby
12 lines
192 B
Ruby
class FeedsController < ApplicationController
|
|
# Show all feeds
|
|
def index
|
|
@feeds = Feed.all
|
|
end
|
|
|
|
# Show a single feed
|
|
def show
|
|
@items = Feed.find(params[:id]).items
|
|
end
|
|
end
|