在 TC 服务器上部署 rails 应用程序

编程入门 行业动态 更新时间:2024-10-23 05:47:49
本文介绍了在 TC 服务器上部署 rails 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

好的,这是我的问题.

我在 TC 服务器上部署了一个 rails 应用程序.我有一个 .WAR 文件,服务器能够通过 WEB-INF 呈现数据读取.

I have a rails application deployed on TC server. I have a .WAR file and the server is able to render data reading through the WEB-INF.

我有这样的想法

  <%=  f.label :username%>
  <%=  f.text_field :password%>

现在视图仅在 f.label 被注释掉并写入像

Username

Now the view is displayed only when the f.label is commented out and an html tag like

Username

错误表明当我使用 f.label 或实际上只是一个 <%= label :something %> 时堆栈级别太深了.

The error says that the stack level is too deep when i use f.label or in fact just a <%= label :something %> for that matter.

如果我缺少任何 gem 或者需要专门为 TC 服务器做一些事情,请告诉我

Please let me know if iam missing any gem or there is something needed to be done specially for TC server

推荐答案

我认为你需要试试这个:

I think you need to try this:

  <%= f.label  :username %>
  <%= f.text_field :password %>

代替

  <%=  f.label: username%>
  <%=  f.text_field: password%>

这篇关于在 TC 服务器上部署 rails 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 04:22:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1389305.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   器上   TC   rails

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!