10 lines
144 B
Ruby
10 lines
144 B
Ruby
|
class BlogController < ApplicationController
|
||
|
def index
|
||
|
@posts = Post.all()
|
||
|
end
|
||
|
|
||
|
def show
|
||
|
@post = Post.find(params[:id])
|
||
|
end
|
||
|
end
|