Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Ruby on Rails中Look#input中的SyntaxError_Ruby On Rails_Ruby_Linux_Ubuntu 11.04 - Fatal编程技术网

Ruby on rails Ruby on Rails中Look#input中的SyntaxError

Ruby on rails Ruby on Rails中Look#input中的SyntaxError,ruby-on-rails,ruby,linux,ubuntu-11.04,Ruby On Rails,Ruby,Linux,Ubuntu 11.04,我是RoR新手,我使用“Débuter avec Ruby on Rails”进行测试。这是史蒂文·霍尔兹纳用法语写的“开始Ruby on Rails”。我在Look#input中有语法错误: Showing /home/rene/ruby_dev/ch05/txt2fields/app/views/look/input.html where line #9 raised: /home/rene/ruby_dev/ch05/txt2fields/app/views/look/input.htm

我是RoR新手,我使用“Débuter avec Ruby on Rails”进行测试。这是史蒂文·霍尔兹纳用法语写的“开始Ruby on Rails”。我在
Look#input
中有语法错误:

Showing /home/rene/ruby_dev/ch05/txt2fields/app/views/look/input.html where line #9 raised:

/home/rene/ruby_dev/ch05/txt2fields/app/views/look/input.html:9: syntax error, unexpected ',', expecting ')'
...rt_form_tag ({:action => "at"}, {:method = > "post"} ));@out...
...                               ^

/home/rene/ruby_dev/ch05/txt2fields/app/views/look/input.html:9: syntax error, unexpected '}', expecting ')'
... => "at"}, {:method = > "post"} ));@output_buffer.safe_conca...
...                               ^

/home/rene/ruby_dev/ch05/txt2fields/app/views/look/input.html:12: syntax error, unexpected ',', expecting ')'
...end= ( text_field_tag ("text2", "", ["size" => 30]) );@outpu...
...                               ^
提取的源(第9行附近):

6:Les champs de saisie(champs de texte)第2版
7:Cette应用程序RubyonRails照亮了TEXTESAISI。
8:
9:“在”},{:method=>“post”})%> 10:Veuillez saisir votre nom。 11:
12: 30]) %>
模板包含的痕迹:

app/views/look/input.html  <=
app/views/look/input.html试试看

对于您的文本字段

text_field_tag "text2", nil, :size => 30
form_tag :action => 'at', :method => post
text_field_tag "text2", nil, :size => 30