Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ProjectsController < ApplicationController
- def index
- end
- def new
- @project = Project.new
- end
- def create
- @project = Project.new(params[:project])
- @project.save
- flash[:notice] = "Project has been created."
- redirect_to @project
- end
- def show
- @project = Project. find(params[:id])
- end
- end
Add Comment
Please, Sign In to add comment