Started working on a blog for the website; adjusted some styles
This commit is contained in:
9
app/controllers/blog_controller.rb
Normal file
9
app/controllers/blog_controller.rb
Normal file
@ -0,0 +1,9 @@
|
||||
class BlogController < ApplicationController
|
||||
def index
|
||||
@posts = Post.all()
|
||||
end
|
||||
|
||||
def show
|
||||
@post = Post.find(params[:id])
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user