在 TC 服务器上部署 rails 应用程序 [英] deploying a rails application on TC server

查看:26
本文介绍了在 TC 服务器上部署 rails 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,这是我的问题.

我在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆