{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/b55bc68cad49a99ef092940af45e3df1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b55bc68cad49a99ef092940af45e3df1","url":"https://api.github.com/users/nehaverma8","login":"nehaverma8","id":732991},"labels":[],"updated_at":"2011-10-30T17:53:40Z","assignee":null,"comments":1,"closed_at":"2011-10-30T17:53:40Z","url":"https://api.github.com/repos/plataformatec/simple_form/issues/356","body":"I have a namespaced admin controller\r\ncontrollers/admin/products \r\n\r\nIn the admin view (views/admin/_form.html.erb ) for add products, I use \r\n<%= simple_form_for @product, :validate=>true, :html => {:multipart => true} do |f| %>\r\n  ... \r\n<%>\r\n\r\nIn the routes, I have\r\nnamespace :admin do\r\n      resources :products\r\n end\r\n    \r\nbut the view fails with the error \r\nNo route matches {:controller=>\"products} \r\n\r\nWhat should I specify in simple_form_for so that the proper post/put route is generated ? \r\n\r\nNote that I am using the same partial for new and edit products. ","html_url":"https://github.com/plataformatec/simple_form/issues/356","title":"SimpleForm with NameSpace","number":356,"id":2091048,"created_at":"2011-10-30T16:02:27Z"},"action":"closed"}