deploying a rails application on TC server

好久不见. 提交于 2019-12-02 08:20:22

问题


ok so here is my problem.

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.

I have something like this on my view

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

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

Username

is written instead.

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.

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


回答1:


I think you need to try this:

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

instead of

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


来源:https://stackoverflow.com/questions/11940055/deploying-a-rails-application-on-tc-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!