On May 20, 2011, at 10:22 AM, John shelfer wrote:
I tried to generate a form it says "undefined method `posts_path' for #<#<Class:0xb6784798>:0xb67817f0>" The following code at line number 2 gives the error. <%= link_to 'New Post'%> <%= form_for(@post) do |f| %> <div class="field"> <%= f.label :name %><br /> <%= f.text_field :name %> </div> <div class="field"> <%= f.label :title %><br /> <%= f.text_field :title %> </div> <div class="field"> <%= f.label :content %><br /> <%= f.text_area :content %> </div> <div class="actions"> <%= f.submit %> </div> <% end %> John
Please run rake routes and post that here, or just read through it and see whether posts_path is listed. What does your routes.rb look like?
Walter -- 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.

