Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

CCH4GITHUB's Profile

GitHub User: CCH4GITHUB

Comments by

Avatar

Where should be payin_drawer.rb (previously product_drawer.rb)
be located in the project framework ?

LoadError in PayinsController#index
Unable to autoload constant PayinDrawer, expected C:/RubymineProjects/pms4mysql/app/pdfs/payin_drawer.rb to define it

Extracted source (around line #10):
8
9
10
11
12
13

  format.html
  format.pdf do
    send_data PayinDrawer.draw(@payins), :filename => 'payins.pdf', :type => 'application/pdf', :disposition => 'inline'
  end
end

end

Rails.root: C:/RubymineProjects/pms4mysql