我在保存会话时获得用户名的值,它应该在textfield中显示用户名,我应该怎么做
<% @page_title = "UserAuth | fillup" %>
<div class="fillup">
<h1>Sign fill</h1>
<hr/>
<%= form_for(:session, :url => {:controller => 'session', :action => 'findle'}) do |f| %>
<div class="field">
<%= f.label :username %><br />
<%= f.text_field :username %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
</div>
答案 0 :(得分:1)
尝试
/%category%/%postname%.html