Ruby on Rails Sunday, May 29, 2011



On Sun, May 29, 2011 at 7:16 AM, amritpal pathak <amritpalpathak1@gmail.com> wrote:


On Sun, May 29, 2011 at 4:12 AM, Chris Kottom <chris@chriskottom.com> wrote:
This should be everyone's starting point when first learning about Rails routing: http://guides.rubyonrails.org/routing.html

Read it a couple of times at least.  If you're still unsure, at least you'll have enough context to come back and ask specific questions about the parts you don't understand.

I followed Section 2.9.1 for adding a  route  to single action of controller as: 
         resources :posts do
        member do
        get 'click'
        end
        end
                                     But it still gave routing error
           No route matches {:controller=>"posts", :action=>"click"}

Thank you

--
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.

No comments:

Post a Comment