class PostsController < ApplicationController def new @post = Post.new end def create @post = Post.new(params[:post]) if @post.save redirect_to @post, notice: 'Post created!' else render action: :new end end end app/controllers/posts_controller.rb
app/assets assets from the current application lib/assets your own libraries, shared across applications vendor/assets third party assets(js plugins, css frameworks)