No route matches {:action=>"show", :controller=>"admin/locations"}
view:
= link_to location.full_name, admin_corporation_location_path
routes:
namespace :admin do
match 'dashboard' => 'corporations#index', :via => :get, :as => :dashboard
resources :corporations do
resources :locations
resources :addresses
end
end
rake routes
admin_corporation_locations GET /admin/corporations/:corporation_id/locations(.:format) {:action=>"index", :controller=>"admin/locations"}
POST /admin/corporations/:corporation_id/locations(.:format) {:action=>"create", :controller=>"admin/locations"}
new_admin_corporation_location GET /admin/corporations/:corporation_id/locations/new(.:format) {:action=>"new", :controller=>"admin/locations"}
edit_admin_corporation_location GET /admin/corporations/:corporation_id/locations/:id/edit(.:format) {:action=>"edit", :controller=>"admin/locations"}
admin_corporation_location GET /admin/corporations/:corporation_id/locations/:id(.:format) {:action=>"show", :controller=>"admin/locations"}
Не могу понять почему валится ошибка. Помогите, плз
-- --
Данное сообщение отправлено Вам, так как Вы являетесь подписчиком группы "RubyOnRails to russian" на группах Google.
FAQ группы находится по адресу: http://ru.wikibooks.org/wiki/RubyFAQ
Для того, чтобы отправить сообщение в эту группу, пошлите его по адресу
ror2ru@googlegroups.com
Чтобы отменить подписку на эту группу, отправьте сообщение по адресу: ror2ru-unsubscribe@googlegroups.com
Дополнительные варианты находятся на странице группы http://groups.google.com/group/ror2ru?hl=ru
Комментариев нет:
Отправить комментарий