[Rails] i need some help!!! how to solve this problem. urgent!!!!!

2015-04-17 Thread Wei Qiang
1. What is one major concern of the following code and how would you improve it? class BookController ApplicationController def rename @book = Books.find(params[:id]) if @book.update_attribute(:title, sanitize(params[:title])) format.json { render json: { status:

Re: [Rails] i need some help!!! how to solve this problem. urgent!!!!!

2015-04-17 Thread Colin Law
On 17 April 2015 at 07:00, Wei Qiang breakthrough...@gmail.com wrote: What is one major concern of the following code and how would you improve it? The purpose of this list to help those who have problems, not to do their course work for them. Colin -- You received this message because you

Re: [Rails] i need some help!!! how to solve this problem. urgent!!!!!

2015-04-17 Thread Dave Aronson
It's so urgent because your homework is due today? Odd that you think we're stupid enough to fall for that, yet smart enough to be able to help you. -- Dave Aronson, consulting software developer of Codosaur.us, PullRequestRoulette.com, Blog.Codosaur.us, and Dare2XL.com. -- You received this