search for: find_by_account_numb

Displaying 1 result from an estimated 1 matches for "find_by_account_numb".

Did you mean: find_by_account_number
2012 Mar 06
0
Devise/Cancan Signout User On Controller Action
...icationController load_and_authorize_resource helper_method :sort_column, :sort_direction def index @accounts = Account.search(params[:program_id] respond_to do |format| format.html # index.html.erb format.json { render :json => @accounts} end def our_miles_balance a = Account.find_by_account_number(params[:account_number]) @miles = Account.our_miles_balance(a.id) if ?a!=nil respond_to do |format| format.json { render json: @miles} end end end What i m doing wrong here, please help.... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are...