On 21 June 2011 14:44, Chirag Singhal <[email protected]> wrote: > Also, you may want to read up more on routing. > Here's a link to official guide, which does a great job of explaining how > routing works in rails 3 > http://guides.rubyonrails.org/routing.html
I have lost track of how many times Aritpal Pathak has been advised to read that. Also you might like to try getting him to post the result of rake routes. Colin > > On Tue, Jun 21, 2011 at 7:04 PM, amritpal pathak <[email protected]> > wrote: >> >> >> On Tue, Jun 21, 2011 at 9:21 AM, Colin Law <[email protected]> wrote: >>> >>> On 21 June 2011 14:16, amritpal pathak <[email protected]> wrote: >>> > >>> > >>> > On Tue, Jun 21, 2011 at 9:09 AM, Chirag Singhal >>> > <[email protected]> >>> > wrote: >>> >> >>> >> Can you paste the code from your routes file here? >>> >> >>> >> Check::Application.routes.draw do >>> >> # get "gne/clg" >>> >> get "posts/index" >>> >> #resources :posts, :module => "admin" >>> >> namespace "admin" do >>> >> resources :posts ,:collection =>{:click => :post} >>> >> end >>> >> #working right >>> >> #resources :posts do >>> >> #end >>> >> #working right >>> >> root :to => "posts#click" >>> >> root :to => "posts#work" >>> >>> Can you explain what these two routes are doing? >> >> These 2 routes were for "Great" and "click me" buttton before >> using namespacing. >> should the changes be in these 2 routes for namespacing rather than as: >> namespace "admin" do >> resources :posts ,:collection =>{:click => :post} >> end >> thanks >> amritpalpathakgne.wordpress.com >> >> -- >> 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. > > > > -- > Chirag > http://sumeruonrails.com > > -- > 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. > -- 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.

