Saturday, May 21, 2011

Re: [Rails] Re: undefined method `posts_path'

On 21 May 2011 05:18, John shelfer <johnsshelfer@gmail.com> wrote:
>
>> Please run rake routes and post that here
>  rake routes shows
>  posts_index GET /posts/index(.:format)
> {:action=>"index", :controller=>"posts"}
>
> What does your routes.rb look like?
> router.rb file looks like:
>
> Check::Application.routes.draw do
>  get "posts/index"
> ...

Have a look at the Rails Guide on Routing to see how routing works.
Read it through carefully and make sure you understand it. Then you
will easily answer your question yourself.

Colin

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate