Hi all,
I am very new to ruby…could someone help me with the method form_
tag? I think I got my syntax wrong…
Post new classified
<% form_tag( :action => 'create ) do %>
<p><label for="classified_title">Title</label><br/>
<%= text_field 'classified', 'title' %></p>
<p><label for="classified_price">Price</label><br/>
<%= text_field 'classified', 'price' %></p>
<p><label for="classified_location">Location</label><br/>
<%= text_field 'classified', 'location' %></p>
<p><label for="classified_description">Description</label><br/
<%= text_area 'classified', 'description' %></p>
<p><label for="classified_email">Email</label><br/>
<%= text_field 'classified', 'email' %></p>
<%= submit_tag "Create" %>
<% end %>
<%= link_to ‘Back’, {:action => ‘list’} %>