Cyril Mougel wrote:
> Le 17 juin 09 � 08:47, Seawing Seawing a �crit :
> 
>> Rendering shared/errors/404 (404)
> Ce template n'est pas un comportement par d�faut de Rails. Je pense
> donc qu'il y a dans ton code un petit truc qui indique qu'il faut
> renderer ce fichier. A toi de trouver o� est ce code (surement un
> before_filter)
> 
> 
> --
> Cyril Mougel
> http://blog.shingara.fr

j'ai trouver le before filter en question donc c'est bon, l'erreur est 
principalement corriger. (il fallait que je verifie la nullite d'un 
parametre avant de faire mon travail)

mais lorsque je provoque l'erreur pour voir comment rails le gere (pour 
le futur), ma page devient balnche mais le contenu est resté (a part de 
menu qui a disparu egalement). comment faire pour directement voir la 
page d'erreur car jer sais qu'elle est creer mais elle ne s'affiche pas

voici le log :



Processing EvenementsController#type_evenement_select (for 127.0.0.1 at 
2009-06-17 13:20:01) [POST]
  Parameters: {"categorie_id"=>"2", 
"authenticity_token"=>"tHCIyQa8J2tF2dQ8UcwNcQdOdkfyRTgHB394nI9doH0="}
   [4;36;1mUser Columns (0.0ms) [0m    [0;1m
 SELECT
 cols.COLUMN_NAME as ColName,
 cols.COLUMN_DEFAULT as DefaultValue,
 cols.NUMERIC_SCALE as numeric_scale,
 cols.NUMERIC_PRECISION as numeric_precision,
 cols.DATA_TYPE as ColType,
 cols.IS_NULLABLE As IsNullable,
 COL_LENGTH(cols.TABLE_NAME, cols.COLUMN_NAME) as Length,
 COLUMNPROPERTY(OBJECT_ID(cols.TABLE_NAME), cols.COLUMN_NAME, 
'IsIdentity') as IsIdentity,
 cols.NUMERIC_SCALE as Scale
 FROM INFORMATION_SCHEMA.COLUMNS cols
 WHERE cols.TABLE_NAME = 'users'
  [0m
   [4;35;1mSQL (16.0ms) [0m    [0m
 SELECT
 cols.COLUMN_NAME as ColName,
 cols.COLUMN_DEFAULT as DefaultValue,
 cols.NUMERIC_SCALE as numeric_scale,
 cols.NUMERIC_PRECISION as numeric_precision,
 cols.DATA_TYPE as ColType,
 cols.IS_NULLABLE As IsNullable,
 COL_LENGTH(cols.TABLE_NAME, cols.COLUMN_NAME) as Length,
 COLUMNPROPERTY(OBJECT_ID(cols.TABLE_NAME), cols.COLUMN_NAME, 
'IsIdentity') as IsIdentity,
 cols.NUMERIC_SCALE as Scale
 FROM INFORMATION_SCHEMA.COLUMNS cols
 WHERE cols.TABLE_NAME = 'users'
  [0m
   [4;36;1mSQL (0.0ms) [0m    [0;1mSELECT TOP 1 * FROM [users] WHERE 
([users].[id] = 16)  [0m
   [4;35;1mSQL (0.0ms) [0m    [0m
 SELECT
 cols.COLUMN_NAME as ColName,
 cols.COLUMN_DEFAULT as DefaultValue,
 cols.NUMERIC_SCALE as numeric_scale,
 cols.NUMERIC_PRECISION as numeric_precision,
 cols.DATA_TYPE as ColType,
 cols.IS_NULLABLE As IsNullable,
 COL_LENGTH(cols.TABLE_NAME, cols.COLUMN_NAME) as Length,
 COLUMNPROPERTY(OBJECT_ID(cols.TABLE_NAME), cols.COLUMN_NAME, 
'IsIdentity') as IsIdentity,
 cols.NUMERIC_SCALE as Scale
 FROM INFORMATION_SCHEMA.COLUMNS cols
 WHERE cols.TABLE_NAME = 'type_evenements'
  [0m
   [4;36;1mSQL (16.0ms) [0m    [0;1mSELECT * FROM [type_evenements] 
WHERE ([type_evenements].[categorie_id] = '2')  [0m
   [4;35;1mCategorie Columns (0.0ms) [0m    [0m
 SELECT
 cols.COLUMN_NAME as ColName,
 cols.COLUMN_DEFAULT as DefaultValue,
 cols.NUMERIC_SCALE as numeric_scale,
 cols.NUMERIC_PRECISION as numeric_precision,
 cols.DATA_TYPE as ColType,
 cols.IS_NULLABLE As IsNullable,
 COL_LENGTH(cols.TABLE_NAME, cols.COLUMN_NAME) as Length,
 COLUMNPROPERTY(OBJECT_ID(cols.TABLE_NAME), cols.COLUMN_NAME, 
'IsIdentity') as IsIdentity,
 cols.NUMERIC_SCALE as Scale
 FROM INFORMATION_SCHEMA.COLUMNS cols
 WHERE cols.TABLE_NAME = 'categories'
  [0m
   [4;36;1mSQL (16.0ms) [0m    [0;1m
 SELECT
 cols.COLUMN_NAME as ColName,
 cols.COLUMN_DEFAULT as DefaultValue,
 cols.NUMERIC_SCALE as numeric_scale,
 cols.NUMERIC_PRECISION as numeric_precision,
 cols.DATA_TYPE as ColType,
 cols.IS_NULLABLE As IsNullable,
 COL_LENGTH(cols.TABLE_NAME, cols.COLUMN_NAME) as Length,
 COLUMNPROPERTY(OBJECT_ID(cols.TABLE_NAME), cols.COLUMN_NAME, 
'IsIdentity') as IsIdentity,
 cols.NUMERIC_SCALE as Scale
 FROM INFORMATION_SCHEMA.COLUMNS cols
 WHERE cols.TABLE_NAME = 'categories'
  [0m
   [4;35;1mSQL (0.0ms) [0m    [0mSELECT * FROM [categories] WHERE 
([categories].[id] = 2)  [0m
   [4;36;1mCACHE (0.0ms) [0m    [0;1mSELECT * FROM [categories] WHERE 
([categories].[id] = 2)  [0m
ERROR: compiling 
_run_erb_app47views47evenements47_type_evenements46html46erb_locals_object_type_evenements
 
RAISED compile error
C:/ruby/project/mainCourante/app/views/evenements/_type_evenements.html.erb:39: 
syntax error, unexpected '\n', expecting kDO_BLOCK
C:/ruby/project/mainCourante/app/views/evenements/_type_evenements.html.erb:113:
 
syntax error, unexpected kENSURE, expecting ')'
C:/ruby/project/mainCourante/app/views/evenements/_type_evenements.html.erb:115:
 
syntax error, unexpected kEND, expecting ')'
Function body:           def 
_run_erb_app47views47evenements47_type_evenements46html46erb_locals_object_type_evenements(local_assigns)
            old_output_buffer = output_buffer;type_evenements = 
local_assigns[:type_evenements];object = 
local_assigns[:object];;@output_buffer = '';  __in_erb_template=true ; 
@output_buffer.concat "\n"
@output_buffer.concat "\t<input type=HIDDEN id='localisation' value="; 
@output_buffer.concat(( @localisation_form ).to_s); 
@output_buffer.concat ">\n"
@output_buffer.concat "\t<input type=HIDDEN id='agent' value="; 
@output_buffer.concat(( @agent_form ).to_s); @output_buffer.concat ">\n"
@output_buffer.concat "\t\n"
@output_buffer.concat "\t<select id='evenement_type_evenement_id' 
name='evenement[type_evenement_id]' onchange=\"\">\n"
@output_buffer.concat "\t\t<option></option>\n"
@output_buffer.concat "\t\t";  for type_evenement in @results do
@output_buffer.concat "\t\t\t<option value='"; @output_buffer.concat(( 
type_evenement.id ).to_s); @output_buffer.concat "'>\n"
@output_buffer.concat "\t\t\t\t"; @output_buffer.concat(( 
type_evenement.libelle ).to_s); @output_buffer.concat "\n"
@output_buffer.concat "\t\t\t</option>\n"
@output_buffer.concat "\t\t";  end
@output_buffer.concat "\t</select>\n"
@output_buffer.concat "\n"
@output_buffer.concat(( observe_field(
  :evenement_type_evenement_id, #:frequency => 0.25,
  :update => "sous_type_evenement_select",
  :url => {:action => :sous_type_evenement_select},
  :with => "'type_evenement_id='+value")
).to_s); @output_buffer.concat "\n"
@output_buffer.concat "\n"
@output_buffer.concat(( observe_field(
  :evenement_type_evenement_id, #:frequency => 0.25,
  :update => "information_specifiques",
  :url => {:action => :information_specifiques},
  :with => "'type_evenement_id='+value")
).to_s); @output_buffer.concat "\n"
@output_buffer.concat "\n"
@output_buffer.concat "\n"
@output_buffer.concat "<script type=\"text/javascript\" 
charset=\"utf-8\">\n"
@output_buffer.concat "\tEffect.Grow('type_evenement_select', {delay:0, 
duration:0.15});\n"
@output_buffer.concat "\t\n"
@output_buffer.concat "\tfunction localisation1 () {\n"
@output_buffer.concat "\t\tif 
(document.getElementById('localisation1').style.display != 'none') {\n"
@output_buffer.concat "\t\t\tEffect.BlindUp('localisation1', 
{duration:0.5, queue:'end'});\t\n"
@output_buffer.concat "\t\t\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_ligne_id').value = \"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_point_id').value = \"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_point_id').replace('<select 
id=\"evenement_point_id\" name=\"evenement[point_id]\">"; 
@output_buffer.concat(( "<option value=\"\"></option>" + 
options_from_collection_for_select(Point.all, "id", 
"mnemo_long").gsub("\n", "<br />") ).to_s); @output_buffer.concat 
"</select>"; @output_buffer.concat(( observe_field(:evenement_point_id, 
#:frequency => 0.25,:update => "sens_parcours",:url => {:action => 
:sens_parcours},:with => 
"\'point_id=\'+value+\'&ligne_id=\'+$(\'evenement_ligne_id\').value+\'&champ=sens_parcours\'")).to_s);
 
@output_buffer.concat "');\n"
@output_buffer.concat "\t\t}\n"
@output_buffer.concat "\t}\n"
@output_buffer.concat "\t\n"
@output_buffer.concat "\tfunction localisation2 () {\n"
@output_buffer.concat "\t\tif 
(document.getElementById('localisation2').style.display != 'none') {\n"
@output_buffer.concat "\t\t\tEffect.BlindUp('localisation2', 
{duration:0.5, queue:'end'});\n"
@output_buffer.concat "\t\t\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_ligne_debut_id').value = 
\"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_point_debut_id').value = 
\"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_ligne_fin_id').value = 
\"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_point_fin_id').value = 
\"\";\n"
@output_buffer.concat "\t\t}\n"
@output_buffer.concat "\t}\n"
@output_buffer.concat "\t\n"
@output_buffer.concat "\tfunction agent_form () {\n"
@output_buffer.concat "\t\tif 
(document.getElementById('agent_form').style.display != 'none') {\n"
@output_buffer.concat "\t\t\tEffect.BlindUp('agent_form', {duration:0.5, 
queue:'end'});\n"
@output_buffer.concat "\t\t\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_agent_service_id').value = 
\"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_agent_service_nom').value = 
\"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_vehicule_service_id').value = 
\"\";\n"
@output_buffer.concat "\t\t\t\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_agent_responsable_id').value = 
\"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_agent_responsable_nom').value 
= \"\";\n"
@output_buffer.concat "\t\t\t\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_agent_reserve_id').value = 
\"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_agent_reserve_nom').value = 
\"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_vehicule_service_id').value = 
\"\";\n"
@output_buffer.concat "\t\t}\n"
@output_buffer.concat "\t}\n"
@output_buffer.concat "\t\n"
@output_buffer.concat "\tfunction agent_complet () {\n"
@output_buffer.concat "\t\tif 
(document.getElementById('agent_complet').style.display != 'none') {\n"
@output_buffer.concat "\t\t\tEffect.BlindUp('agent_complet', 
{duration:0.5, queue:'end'});\n"
@output_buffer.concat "\t\t\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_agent_reserve_id').value = 
\"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_agent_reserve_nom').value = 
\"\";\n"
@output_buffer.concat 
"\t\t\tdocument.getElementById('evenement_vehicule_service_id').value = 
\"\";\n"
@output_buffer.concat "\t\t}\n"
@output_buffer.concat "\t}\n"
@output_buffer.concat "\t\n"
@output_buffer.concat "\tif 
(document.getElementById('localisation').value == '1') {\n"
@output_buffer.concat "\t\tlocalisation2();\n"
@output_buffer.concat "\t\tif 
(document.getElementById('localisation1').style.display == 'none')\n"
@output_buffer.concat "\t\t\tEffect.BlindDown('localisation1', 
{duration:0.5,queue:'end'});\n"
@output_buffer.concat "\t}\n"
@output_buffer.concat "\telse if 
(document.getElementById('localisation').value == 2) {\n"
@output_buffer.concat "\t\tlocalisation1();\n"
@output_buffer.concat "\t\tif 
(document.getElementById('localisation2').style.display == 'none')\n"
@output_buffer.concat "\t\t\tEffect.BlindDown('localisation2', 
{duration:0.5,queue:'end'});\n"
@output_buffer.concat "\t}\n"
@output_buffer.concat "\telse {\n"
@output_buffer.concat "\t\tlocalisation1();\n"
@output_buffer.concat "\t\tlocalisation2();\n"
@output_buffer.concat "\t}\n"
@output_buffer.concat "\t\n"
@output_buffer.concat "\tif (document.getElementById('agent').value == 
1) {\n"
@output_buffer.concat "\t\tagent_complet();\n"
@output_buffer.concat "\t\tif 
(document.getElementById('agent_form').style.display == 'none')\n"
@output_buffer.concat "\t\t\tEffect.BlindDown('agent_form', 
{duration:0.5,queue:'end'});\n"
@output_buffer.concat "\t}\n"
@output_buffer.concat "\telse if (document.getElementById('agent').value 
== 2) {\n"
@output_buffer.concat "\t\tif 
(document.getElementById('agent_form').style.display == 'none')\n"
@output_buffer.concat "\t\t\tEffect.BlindDown('agent_form', 
{duration:0.5,queue:'end'});\n"
@output_buffer.concat "\t\tif 
(document.getElementById('agent_complet').style.display == 'none')\n"
@output_buffer.concat "\t\t\tEffect.BlindDown('agent_complet', 
{duration:0.5, queue:'end'});\n"
@output_buffer.concat "\t}\n"
@output_buffer.concat "\telse {\n"
@output_buffer.concat "\t\tagent_form();\n"
@output_buffer.concat "\t\tagent_complet();\n"
@output_buffer.concat "\t}\n"
@output_buffer.concat "</script>\n"
@output_buffer.concat "\n"
@output_buffer
          ensure
            self.output_buffer = old_output_buffer
          end
Backtrace: 
C:/ruby/project/mainCourante/app/views/evenements/_type_evenements.html.erb:115:in
 
`compile!'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable.rb:61:in
 
`compile'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable.rb:28:in
 
`render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable_partial.rb:20:in
 
`render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:26:in
 
`benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in
 
`ms'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10:in
 
`realtime'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in
 
`ms'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:26:in
 
`benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable_partial.rb:19:in
 
`render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/template.rb:194:in
 
`render_template'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable_partial.rb:44:in
 
`render_partial'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/partials.rb:184:in
 
`render_partial'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/base.rb:262:in 
`render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:964:in
 
`render_without_benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:51:in
 
`render'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in
 
`ms'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10:in
 
`realtime'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in
 
`ms'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:51:in
 
`render'
C:/ruby/project/mainCourante/app/controllers/evenements_controller.rb:86:in 
`type_evenement_select'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
 
`send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
 
`perform_action_without_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in
 
`call_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in
 
`perform_action_without_benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
 
`perform_action_without_rescue'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in
 
`ms'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10:in
 
`realtime'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in
 
`ms'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
 
`perform_action_without_rescue'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in
 
`perform_action_without_flash'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in
 
`perform_action'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in
 
`send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in
 
`process_without_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in
 
`process'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in
 
`process'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:88:in
 
`dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:111:in
 
`_call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in
 
`initialize'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
 
`cache'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:9:in
 
`cache'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:28:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/head.rb:9:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/methodoverride.rb:24:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/params_parser.rb:15:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rewindable_input.rb:25:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:93:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/reloader.rb:9:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/failsafe.rb:11:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/lock.rb:11:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/lock.rb:11:in
 
`synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/lock.rb:11:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:106:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:31:in 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/urlmap.rb:46:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/urlmap.rb:40:in
 
`each'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/urlmap.rb:40:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/log_tailer.rb:17:in 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/content_length.rb:13:in
 
`call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/handler/webrick.rb:46:in
 
`service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/handler/webrick.rb:13:in
 
`run'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
`gem_original_require'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
`require'
script/server:3

ActionView::TemplateError (compile error
C:/ruby/project/mainCourante/app/views/evenements/_type_evenements.html.erb:39: 
syntax error, unexpected '\n', expecting kDO_BLOCK
C:/ruby/project/mainCourante/app/views/evenements/_type_evenements.html.erb:113:
 
syntax error, unexpected kENSURE, expecting ')'
C:/ruby/project/mainCourante/app/views/evenements/_type_evenements.html.erb:115:
 
syntax error, unexpected kEND, expecting ')') on line #39 of 
app/views/evenements/_type_evenements.html.erb:
36:       document.getElementById('evenement_ligne_id').value = "";
37:       document.getElementById('evenement_point_id').value = "";
38:       document.getElementById('evenement_point_id').replace('<select 
id="evenement_point_id" name="evenement[point_id]"><%= "<option 
value=\"\"></option>" + options_from_collection_for_select(Point.all, 
"id", "mnemo_long").gsub("\n", "<br />") %></select><%= 
observe_field(:evenement_point_id, #:frequency => 0.25,:update => 
"sens_parcours",:url => {:action => :sens_parcours},:with => 
"\'point_id=\'+value+\'&ligne_id=\'+$(\'evenement_ligne_id\').value+\'&champ=sens_parcours\'")%>');
39:     }
40:   }
41:
42:   function localisation2 () {

    app/views/evenements/_type_evenements.html.erb:115:in `compile!'
    app/controllers/evenements_controller.rb:86:in 
`type_evenement_select'
    c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'

Rendered rescues/_trace (171.0ms)
Rendered rescues/_request_and_response (0.0ms)
Rendering rescues/layout (internal_server_error)
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
Vous avez reçu ce message, car vous êtes abonné au groupe "Railsfrance" de 
Google Groups.
Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse 
[email protected]
Pour résilier votre abonnement envoyez un e-mail à l'adresse 
[email protected]
-~----------~----~----~----~------~----~------~--~---

Répondre à