Permalink
Browse files

lines index action by journal_id

  • Loading branch information...
1 parent 5015578 commit 48968a000ad24696745cef4ab6d8d2899b58dfdb @vavd vavd committed Oct 9, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/invent_journal_lines_controller.rb
@@ -2,7 +2,8 @@ class InventJournalLinesController < ApplicationController
# GET /invent_journal_lines
# GET /invent_journal_lines.json
def index
- @invent_journal_lines = InventJournalLine.all
+
+ @invent_journal_lines = InventJournalLine.where(:journal_id => params[:journal_id])
respond_to do |format|
format.html # index.html.erb

0 comments on commit 48968a0

Please sign in to comment.