Re: [Rails] Problem in Rails Controller and Model

2012-02-03 Thread Michael Pavling
On 3 February 2012 07:07, Srimanta Chakraborty li...@ruby-forum.com wrote:  This is a piece of code found in a fictional Rails controller and model.  Please point out any bugs or security problems in the code, fix them, and  refactor the code to make it cleaner. Sure... how much are you

[Rails] Problem in Rails Controller and Model

2012-02-02 Thread Srimanta Chakraborty
Hi, This is a piece of code found in a fictional Rails controller and model. Please point out any bugs or security problems in the code, fix them, and refactor the code to make it cleaner. class ProfileController ApplicationController def show @user = User.find(:first, :conditions =