```ruby
class ArticleController < ApplicationController
	def index
	end
	def create
		if not user_signed_in?
			redirect_to root_path, alert: "You have to be signed in to use this feature!"
			return
		end

		temp = current_user.articles.create

		params.keys.each { |key| temp[key] = params[key] if Article.column_names.include?(key) }
		
		if temp.save!
			redirect_to root_path
		else
			render plain: "Could not save the article!"
		end
	end
	def new
	end

	def destroy
		if Article.find(params[:id]).delete
			redirect_to root_path, notice: "That article was deleted!"
		else
			redirect_to root_path, alert: "That article could not be deleted! Try again later."
		end
	end

	def edit
		@thisOne = Article.find(params[:id])
	end

	def update
		t = Article.find(params[:id])
		t.link = params[:link]
		t.author = params[:author]
		t.quote = params[:quote]
		if t.save!
			redirect_to root_path, notice: "Article updated!"
		else
			redirect_to root_path, alert: "Couldn't update that article, try again later."
		end

	end
end
```

Use the same oneliner in the update function
user
```ruby
class ArticleController < ApplicationController
	def index
	end
	def create
		if not user_signed_in?
			redirect_to root_path, alert: "You have to be signed in to use this feature!"
			return
		end

		temp = current_user.articles.create

		params.keys.each { |key| temp[key] = params[key] if Article.column_names.include?(key) }
		
		if temp.save!
			redirect_to root_path
		else
			render plain: "Could not save the article!"
		end
	end
	def new
	end

	def destroy
		if Article.find(params[:id]).delete
			redirect_to root_path, notice: "That article was deleted!"
		else
			redirect_to root_path, alert: "That article could not be deleted! Try again later."
		end
	end

	def edit
		@thisOne = Article.find(params[:id])
	end

	def update
		temp = Article.find(params[:id])
		params.keys.each { |key| temp[key] = params[key] if Article.column_names.include?(key) }
		if temp.save!
			redirect_to root_path, notice: "Article updated!"
		else
			redirect_to root_path, alert: "Couldn't update that article, try again later."
		end

	end
end
```
assistant