# File app/controllers/myprojects_controller.rb, line 17 def create @myproject = current_user.myprojects.build(params[:myproject]) if @myproject.save flash[:success] = "New project created!" redirect_to projects_url else @feedproject_items = [] render 'static_pages/create' end end
# File app/controllers/myprojects_controller.rb, line 28 def destroy @myproject.destroy redirect_to projects_url end
# File app/controllers/myprojects_controller.rb, line 5 def new @myproject = Myproject.new end
# File app/controllers/myprojects_controller.rb, line 9 def put @myproject = current_user.myprojects.put(params[:myproject]) end
# File app/controllers/myprojects_controller.rb, line 13 def showpr @user = User.find(params[:id]) end