RailsCasts Pro episodes are now free!

Learn more or hide this

CodisaIT's Profile

GitHub User: CodisaIT

Comments by

Avatar

I'm trying this line

ruby
pdf = OrderPdf.new(@order, view_context)

but I get this error "SyntaxError in xxxController#index"
syntax error, unexpected ',', expecting ')'

I get this error when adding the "view_context"

I'm using rails 3.2.5