Displaying 1 result from an estimated 1 matches for "suggestion_titl".
Did you mean:
suggestion_title
2006 Jul 27
2
setting initial text field values in a form
...reate a basic form in which I want one of the fields
initialized before displaying it.
My code (in a view) is as follows:
<%
if ( session[:user_id] != nil )
then
logged_in_user = User.find(session[:user_id])
end
%>
<% form_for :suggestion do |form| %>
<label for="suggestion_title">Topic:</label><br/>
<%= form.text_field :title, :size => 64 %>
<label for="suggestion_email">Email:</label><br/>
<%= form.text_field :email, :size => 64 %>
<label for="suggestion_suggestion">Suggestion:</label>...