search for: borrower_id

Displaying 2 results from an estimated 2 matches for "borrower_id".

2010 Sep 04
3
its easy but i forgot all
my models borrower ----- has_many :loans loan ----- belongs_to :borrower my loans _controller def new @borrower = Borrower.find(params[:borrower_id]) logger.debug '' @borrower.id'' logger.debug @borrower.id @loan = Loan.new respond_to do |format| format.html # new.html.erb format.xml { render :xml => @loan } end end def create logger.debug '' @borrower.id''...
2006 Aug 18
2
How do I sort the drop-down list?
I''ve added a drop-down list of first and last names of borrowers to a form. How do I sort them by LastName, FirstName in the drop-down? I''m using code based on the cookbook example: <select name="borrower[borrower_id]"> <% @borrowers.each do |borrower| %> <option value="<%= borrower.id %>"> <%= borrower.FirstName << " " << borrower.LastName %> </option> <% end %> </select> Thanks from a raw newbie, Shauna -- Posted via...