Hey all, When I run rake routes, I see this: inventory_dashboard /inventory/ (.:format) {:action=>"show", :controller=>"inventory"} when I invoke this: inventory_dashboard_path I get this: Processing InventoryController#index (for 127.0.0.1 at 2012-06-07 23:45:37) [GET] Parameters: {"action"=>"index", "controller"=>"inventory"} This is not making any sense. Why isn''t it loading the show action? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Maybe you have some route that overwrite this route, look at your route file lines before you write. пятница, 8 июня 2012 г., 7:49:17 UTC+4 пользователь John Merlino написал:> > Hey all, > > > When I run rake routes, I see this: > > > inventory_dashboard /inventory/ > (.:format) > {:action=>"show", :controller=>"inventory"} > > when I invoke this: > > inventory_dashboard_path > > I get this: > > Processing InventoryController#index (for 127.0.0.1 at 2012-06-07 > 23:45:37) [GET] > Parameters: {"action"=>"index", "controller"=>"inventory"} > > This is not making any sense. Why isn''t it loading the show action? >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/GBK75aGvhZUJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Can you also show the contents of ''routes.rb''? On Fri, Jun 8, 2012 at 9:19 AM, John Merlino <stoicism1-YDxpq3io04c@public.gmane.org> wrote:> Hey all, > > > When I run rake routes, I see this: > > > inventory_dashboard /inventory/ > (.:format) > {:action=>"show", :controller=>"inventory"} > > when I invoke this: > > inventory_dashboard_path > > I get this: > > Processing InventoryController#index (for 127.0.0.1 at 2012-06-07 > 23:45:37) [GET] > Parameters: {"action"=>"index", "controller"=>"inventory"} > > This is not making any sense. Why isn''t it loading the show action? > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.