- codemyth
- 等级:
- 文章: 17
- 积分: 163
|
ruby 代码
- <li><%= link_to h("权限管理啊"),
- :controller => "group",
- :action => "list" %>
- </li>
这样就可以
下面这样就报错,仅仅去掉一个"啊"字
ruby 代码
- <li><%= link_to h("权限管理"),
- :controller => "group",
- :action => "list" %>
- </li>
报的错是这样的
ruby 代码
- Showing app/views/main/welcome.rhtml where line
-
- compile error
- ./script/../config/../app/views/main/welcome.rhtml:3: syntax error
- :controller => "group",
- ^
- ./script/../config/../app/views/main/welcome.rhtml:4: syntax error
- :action => "list" ).to_s); _erbout.concat "\n"
- ^
- ./script/../config/../app/views/main/welcome.rhtml:4: syntax error
- :action => "list" ).to_s); _erbout.concat "\n"
- ^
- ./script/../config/../app/views/main/welcome.rhtml:5: unterminated string meets end of file
- ./script/../config/../app/views/main/welcome.rhtml:5: syntax error
-
- Extracted source (around line
-
- 1:
- 2: <li><%= link_to h("权限管理"),
- 3: :controller => "group",
- 4: :action => "list" %>
- 5: </li>
-
我在application.rb中的字符集设的是gbk
ruby 代码
- headers["Content-Type"] = "text/html; charset=gbk"
声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
返回顶楼 |
|
|
- jack
- 等级:
- 文章: 1123
- 积分: 2406
- 来自: 温州
|
参考这两篇
http://www.iteye.com/topic/53673
[url]
http://www.iteye.com/topic/53877[/url]
|
返回顶楼 |
|
|