ShowFor ShowFor允许您快速显示具有I18n功能的模型信息。
<%= show_for @user做| u |
%> <%= u.attribute:name%> <%= u.attribute:nickname,:in =>:profile%> <%= u.att ShowFor ShowFor允许您快速显示具有I18n功能的模型信息。
:profile%>:short%>“用户尚未访问”,:wrapper_html => {:id =>“ sign_in_timestamp”}%>
评论0
最新资源