On 6 September 2010 05:30, rajeevsharma86 wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>I have two modelds
>1. loan model belongs_to :borrower
>
>2. borrower model has_many:loans
>
> In my borrower Show method i wrote
>
> <%= link_to 'Request New Loan', :c
I have two modelds
1. loan model belongs_to :borrower
2. borrower model has_many:loans
In my borrower Show method i wrote
<%= link_to 'Request New Loan', :controller => 'loans', :action =>
'new', :id => @borrower.id %>
my loans_controller have this
def new
@borrower = Borrower.f
If the issue is in the create action please provide the corresponding
code. Model code would be helpful too.
Luke
On Sep 4, 5:51 am, ashu wrote:
> my models
>
> borrower - has_many :loans
> loan - belongs_to :borrower
>
> my loans _controller
>
> def new
> @borrowe
3 matches
Mail list logo