Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def index
- @title = "All Books - Vendera Publishing"
- @books = Array.new
- authors = Company.find_by_path(params[:company_path]).authors
- authors.each do |author|
- @books = @books + [Book.find_by_author_id(author.id)]
- end
- end
Add Comment
Please, Sign In to add comment