Define map.resources :posts in your config/routes.rb
On Dec 10, 2007 6:44 PM, GA Gorter
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:
>
> I have installed rails 2.0.1 succesfully.
> the problem is that i don''t know how to get the paths working
>
> In my controller i have
>
> def new
> @Post = Post.new
> end
>
>
>
> in my new.html.erb
>
> <% form_for(Post.new) do |f| %>
>
>
> The result is
> undefined method `posts_path'' for
#<ActionView::Base:0x25510c0>
>
> How can i setup the posts_path method.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
Ryan Bigg
http://www.frozenplague.net
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---