nabeta/enju_leaf — Issue #8: app/views/manifestations/index.csv.erb@dc4845c3c4 csv view raises syntax error
Author: chonan
Created: 2011-12-20 02:49:08+00:00
State: open

Modified index.csv view of manifestation can not work.

app/views/manifestations/index.csv.erb@dc4845c3c412b5427c3a3316bf1395f4a7abac17
https://github.com/nabeta/enju_leaf/blob/dc4845c3c412b5427c3a3316bf1395f4a7abac17/app/views/manifestations/index.csv.erb

It must be written as below;

manifestation.original_title.gsub(/"/, '""')

----
SyntaxError in Manifestations#index

Showing /home/chonan/work/enju_leaf/app/views/manifestations/index.csv.erb where line #3 raised:

/home/chonan/work/enju_leaf/app/views/manifestations/index.csv.erb:3: syntax error, unexpected tSTRING_BEG, expecting ')'
...tion.original_title.gsub(/"/	'""') );@output_buffer.safe_co...
...	^
/home/chonan/work/enju_leaf/app/views/manifestations/index.csv.erb:3: syntax error, unexpected ')', expecting keyword_end
...riginal_title.gsub(/"/	'""') );@output_buffer.safe_concat('...
...	^
Extracted source (around line #3):

1: original_title	creator	contributor	publisher	isbn	pub_date	note
2: <%- @manifestations.each do |manifestation| -%>
3: "<%=raw manifestation.original_title.gsub(/"/	'""') -%>"	<%=raw manifestation.creators.collect(&:full_name).join(';') -%>	<%=raw manifestation.contributors.collect(&:full_name).join(';') -%>	<%=raw manifestation.publishers.collect(&:full_name).join(';') -%>	<%= manifestation.isbn -%>	<%= manifestation.pub_date -%>	<%= manifestation.note -%><%= "\n" -%>
4: <%- end -%>
Trace of template inclusion: app/views/manifestations/index.csv.erb

Rails.root: /home/chonan/work/enju_leaf

Application Trace | Framework Trace | Full Trace
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
vendor/bundler/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
vendor/bundler/ruby/1.9.1/gems/sunspot_rails-1.3.0/lib/sunspot/rails/railties/controller_runtime.rb:15:in `cleanup_view_runtime'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
app/controllers/manifestations_controller.rb:283:in `block (2 levels) in index'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/mime_responds.rb:195:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/mime_responds.rb:195:in `respond_to'
app/controllers/manifestations_controller.rb:277:in `index'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:524:in `_run__2711373255326757792__process_action__125751186390267300__callbacks'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
vendor/bundler/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `block in action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `block in call'
vendor/bundler/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `block in recognize'
vendor/bundler/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:439:in `optimized_each'
vendor/bundler/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
vendor/bundler/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
vendor/bundler/ruby/1.9.1/gems/client_side_validations-3.1.3/lib/client_side_validations/middleware.rb:18:in `call'
vendor/bundler/ruby/1.9.1/gems/warden-1.1.0/lib/warden/manager.rb:35:in `block in call'
vendor/bundler/ruby/1.9.1/gems/warden-1.1.0/lib/warden/manager.rb:34:in `catch'
vendor/bundler/ruby/1.9.1/gems/warden-1.1.0/lib/warden/manager.rb:34:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/etag.rb:23:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/conditionalget.rb:25:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
vendor/bundler/ruby/1.9.1/gems/jpmobile-2.0.4/lib/jpmobile/rack/mobile_carrier.rb:13:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:195:in `context'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:190:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
vendor/bundler/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
vendor/bundler/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/sendfile.rb:101:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
vendor/bundler/ruby/1.9.1/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/methodoverride.rb:24:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/runtime.rb:17:in `call'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/lock.rb:15:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
vendor/bundler/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/content_length.rb:14:in `call'
vendor/bundler/ruby/1.9.1/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/handler/webrick.rb:59:in `service'
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
Request

Parameters:

{"format"=>"csv"}
Show session dump

_csrf_token: "v5TyK2uFQLmtg8p3VmpDORGL9z/NqfKuK9/xHkd6lDc="
csrf: "v5TyK2uFQLmtg8p3VmpDORGL9z/NqfKuK9/xHkd6lDc="
locale: :ja
manifestation_ids: [1]
params: {"action"=>"index", "controller"=>"manifestations", "format"=>"csv"}
query: ""
search_params: nil
tracking: {"HTTP_USER_AGENT"=>"cb1e6a5800d02d58ebf5955fb4924711bdf3575c", "HTTP_ACCEPT_ENCODING"=>"ed2b3ca90a4e723402367a1d17c8b28392842398", "HTTP_ACCEPT_LANGUAGE"=>"86ee8a4e4ccb4f4ca214320a24f93660423eb700"}
warden.user.user.key: ["User", [1], "$2a$10$jCehQeBMY1spJpkAovPXW."]
Show env dump

GATEWAY_INTERFACE: "CGI/1.1"
HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_CHARSET: "Shift_JIS,utf-8;q=0.7,*;q=0.3"
HTTP_ACCEPT_ENCODING: "gzip,deflate,sdch"
HTTP_ACCEPT_LANGUAGE: "ja,en-US;q=0.8,en;q=0.6"
REMOTE_ADDR: "192.168.108.222"
REMOTE_HOST: "192.168.108.222"
SERVER_NAME: "192.168.108.131"
SERVER_PROTOCOL: "HTTP/1.1"
Response

Headers:

None