deploying a rails application on TC server

2019-03-02 06:14发布

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条回答
Animai°情兽
2楼-- · 2019-03-02 06:30

I think you need to try this:

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

instead of

  <%=  f.label: username%>
  <%=  f.text_field: password%>
查看更多
登录 后发表回答