# Problems with \<div\>

**URL:** <https://www.ruby-forum.com/t/problems-with-div/183903>\
**Category:** Rails\
**Created:** [February 22, 2010, 2:41pm UTC](https://www.ruby-forum.com/t/problems-with-div/183903 "2010-02-22T14:41:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erwillie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c0e974/32.png) [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Post date:** [February 22, 2010, 2:41pm UTC](https://www.ruby-forum.com/t/problems-with-div/183903/1 "2010-02-22T14:41:27Z")

</div>

Hi everybody  
IÂ´m trying to do a partial refresh, I use the div tag, but it doesnÂ´t  
work and I donÂ´t know where I have done an error if someone can help me  
I will be very gratefully THANKS!! Here is my view

\<%= javascript\_include\_tag â€œprototypeâ€ %\>
# Listing comments

\<% @comments.each do |comment| %\>

```
<td><%= link_to 'Show', comment %></td>
<td><%= link_to 'Edit', edit_comment_path(comment) %></td>
<td><%= link_to 'Destroy', comment, :confirm => 'Are you sure?',

```

:method =\> :delete %\>

\<% end %\>

| Title | Body |
| --- | --- |
| \<%=h comment.title %\> | 
â€\> \<%= link\_to\_remote( â€œShow Bodyâ€, :update =\> â€œcomment\_#{comment.id.to\_s}â€, :url =\> { :action =\> :show\_body, :id =\> comment }) %\>
 |

  

\<%= link\_to ‘New comment’, new\_comment\_path %\>

and here is the problems report  
SyntaxError in Comments#index

Showing app/views/comments/index.html.erb where line #2 raised:

compile error  
C:/Instant/rails\_apps/discussion/app/views/comments/index.html.erb:2:  
Invalid char `\223' in expression C:/Instant/rails_apps/discussion/app/views/comments/index.html.erb:2: Invalid char`\224’ in expression  
C:/Instant/rails\_apps/discussion/app/views/comments/index.html.erb:16:  
Invalid char `\223' in expression C:/Instant/rails_apps/discussion/app/views/comments/index.html.erb:16: Invalid char`\224’ in expression  
C:/Instant/rails\_apps/discussion/app/views/comments/index.html.erb:17:  
Invalid char `\223’ in expression  
C:/Instant/rails\_apps/discussion/app/views/comments/index.html.erb:18:  
syntax error, unexpected tSYMBEG, expecting ‘)’  
:url =\> { :action =\> :show\_body,  
^  
C:/Instant/rails\_apps/discussion/app/views/comments/index.html.erb:19:  
syntax error, unexpected ‘)’, expecting kEND  
:id =\> comment }) ).to\_s); @output\_buffer.concat “\n”  
^

Extracted source (around line #2):

1:   
2: \<%= javascript\_include\_tag ï¿½prototypeï¿½ %\>  
3:   
4:

# Listing comments
  
5:

Trace of template inclusion: app/views/comments/index.html.erb

RAILS\_ROOT: C:/Instant/rails\_apps/discussion  
Application Trace | Framework Trace | Full Trace

C:/Instant/rails\_apps/discussion/app/views/comments/index.html.erb:34:in  
`compile!' C:/Instant/rails_apps/discussion/app/controllers/comments_controller.rb:7:in`index’

C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_view/renderable.rb:61:in  
`compile' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable.rb:28:in`render’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_view/template.rb:205:in  
`render_template' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:265:in`render’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_view/base.rb:348:in  
`_render_with_layout' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:262:in`render’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:1250:in  
`render_for_file' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:951:in`render\_without\_benchmark’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/benchmarking.rb:51:in  
`render' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/core\_ext/benchmark.rb:10:in  
`realtime' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/benchmarking.rb:51:in  
`render' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/mime_responds.rb:135:in`send’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/mime\_responds.rb:135:in  
`custom' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/mime_responds.rb:179:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/mime\_responds.rb:179:in  
`respond' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/mime_responds.rb:173:in`each’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/mime\_responds.rb:173:in  
`respond' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/mime_responds.rb:107:in`respond\_to’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:1331:in  
`send' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in`perform\_action\_without\_filters’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/filters.rb:617:in  
`call_filters' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in`perform\_action\_without\_benchmark’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/benchmarking.rb:68:in  
`perform_action_without_rescue' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/core\_ext/benchmark.rb:10:in  
`realtime' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/benchmarking.rb:68:in  
`perform_action_without_rescue' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:160:in`perform\_action\_without\_flash’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/flash.rb:146:in  
`perform_action' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in`send’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:532:in  
`process_without_filters' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in`process’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:391:in  
`process' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:386:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/routing/route\_set.rb:437:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:in`dispatch’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:121:in  
`_call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in`build\_middleware\_stack’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/query\_cache.rb:29:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/abstract/query\_cache.rb:34:in  
`cache' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in`cache’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/query\_cache.rb:28:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/string\_coercion.rb:25:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/session/cookie\_store.rb:93:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in`synchronize’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/reloader.rb:34:in  
`run' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/cgi\_process.rb:44:in  
`dispatch_cgi' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:101:in`dispatch\_cgi’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:27:in  
`dispatch' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:76:in`process’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:74:in  
`synchronize' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:74:in`process’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:159:in  
`process_client' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in`each’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in  
`process_client' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in`run’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in  
`initialize' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in`new’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in  
`run' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in`initialize’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in  
`new' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in`run’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:282:in  
`run' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in`each’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in  
`run' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:128:in`run’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/command.rb:212:in  
`run' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:281 C:/Instant/ruby/bin/mongrel_rails:19:in`load’  
C:/Instant/ruby/bin/mongrel\_rails:19

C:/Instant/rails\_apps/discussion/app/views/comments/index.html.erb:34:in  
`compile!' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable.rb:61:in`compile’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_view/renderable.rb:28:in  
`render' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/template.rb:205:in`render\_template’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_view/base.rb:265:in  
`render' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:348:in`\_render\_with\_layout’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_view/base.rb:262:in  
`render' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1250:in`render\_for\_file’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:951:in  
`render_without_benchmark' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:51:in`render’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/core\_ext/benchmark.rb:17:in  
`ms' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:10:in`realtime’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/core\_ext/benchmark.rb:17:in  
`ms' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:51:in`render’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/mime\_responds.rb:135:in  
`send' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/mime_responds.rb:135:in`custom’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/mime\_responds.rb:179:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/mime_responds.rb:179:in`respond’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/mime\_responds.rb:173:in  
`each' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/mime_responds.rb:173:in`respond’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/mime\_responds.rb:107:in  
`respond_to' C:/Instant/rails_apps/discussion/app/controllers/comments_controller.rb:7:in`index’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:1331:in  
`send' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in`perform\_action\_without\_filters’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/filters.rb:617:in  
`call_filters' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in`perform\_action\_without\_benchmark’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/benchmarking.rb:68:in  
`perform_action_without_rescue' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/core\_ext/benchmark.rb:10:in  
`realtime' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/benchmarking.rb:68:in  
`perform_action_without_rescue' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:160:in`perform\_action\_without\_flash’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/flash.rb:146:in  
`perform_action' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in`send’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:532:in  
`process_without_filters' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in`process’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:391:in  
`process' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:386:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/routing/route\_set.rb:437:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:in`dispatch’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:121:in  
`_call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in`build\_middleware\_stack’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/query\_cache.rb:29:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/abstract/query\_cache.rb:34:in  
`cache' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in`cache’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/query\_cache.rb:28:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/string\_coercion.rb:25:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/session/cookie\_store.rb:93:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in`synchronize’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in  
`call' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/reloader.rb:34:in  
`run' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in`call’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/cgi\_process.rb:44:in  
`dispatch_cgi' C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:101:in`dispatch\_cgi’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:27:in  
`dispatch' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:76:in`process’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:74:in  
`synchronize' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:74:in`process’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:159:in  
`process_client' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in`each’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in  
`process_client' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in`run’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in  
`initialize' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in`new’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in  
`run' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in`initialize’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in  
`new' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in`run’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:282:in  
`run' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in`each’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in  
`run' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:128:in`run’  
C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/command.rb:212:in  
`run' C:/Instant/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:281 C:/Instant/ruby/bin/mongrel_rails:19:in`load’  
C:/Instant/ruby/bin/mongrel\_rails:19

Request

Parameters:

None

Show session dump

* * *

Response

Headers:

{“Content-Type”=\>“text/html”,  
“Cache-Control”=\>“no-cache”}

---

<div class="post-metadata">

**Author:** ![erwillie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c0e974/32.png) [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Post date:** [February 22, 2010, 2:58pm UTC](https://www.ruby-forum.com/t/problems-with-div/183903/2 "2010-02-22T14:58:51Z")

</div>

> â€œShow Bodyâ€  
> â€œprototypeâ€

Those looks like “fancy” quotation marks. Did you copy/paste the code  
from somewhere? Try replacing them with “regular” quotation marks.

---

<div class="post-metadata">

**Author:** ![erwillie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c0e974/32.png) [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Post date:** [February 22, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/problems-with-div/183903/3 "2010-02-22T15:03:10Z")

</div>

On 22 February 2010 13:41, Guille S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Â   
> :url =\> { :action =\> :show\_body,
> 
> Showing app/views/comments/index.html.erb where line #2 raised:  
> C:/Instant/rails\_apps/discussion/app/views/comments/index.html.erb:17:  
> Extracted source (around line #2):
> 
> 1:   
> 2: \<%= javascript\_include\_tag ï¿½prototypeï¿½ %\>  
> 3:   
> 4:
> 
> # Listing comments
>   
> 5:

Always look at the first error message first, which says invalid  
character in line 2. I think if you look carefully you will see that  
the double quotes are not what they appear, possibly the line was  
copied and pasted from a word document. Replace them with real single  
or double quotes.

Colin

---

<div class="post-metadata">

**Author:** ![erwillie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c0e974/32.png) [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Post date:** [February 22, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/problems-with-div/183903/4 "2010-02-22T15:03:28Z")

</div>

Sharagoz – wrote:

> > â€œShow Bodyâ€  
> > â€œprototypeâ€
> 
> Those looks like “fancy” quotation marks. Did you copy/paste the code  
> from somewhere? Try replacing them with “regular” quotation marks.

iT WAS the quotation marks, thanks a lot. I copied it from other code  
and I didnÂ´s see that. Now I have other problems but I think is not a  
big problem
