Well right now i'm currently trying to make a form that posts
information into my database. I'm using the form_for function, but
when i run the server and go to the page and get this error:
undefined method `posts_path' for #<ActionView::Base:0x23bbabc>
So i have no idea what i'm doing wrong, here is the code for the form:
<% form_for(@posts) do |p| %>
<%= p.error_message %>
<p>
<%= p.label :title %><br />
<%= p.text_field :title %>
</p>
<p>
<%= p.label :post %><br />
<%= p.text_area :post %>
</p>
<p>
<%= p.submit "Submit Post" %>
</p>
<% end %>
Any idea?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---