Answer the question
In order to leave comments, you need to log in
How to set up routing in Ruby on Rails?
routing.rb:
get 'brand' => 'index#brand', as: :brand
get 'client' => 'index#client', as: :client
get 'info' => 'index#info', as: :information
get 'help' => 'index#help', as: :help
%nav#main_menu
%ul.nav
%li.home
%a{href: root_url}
%li
%a{href: brand_path(page: 'brand')}
%span
о бренде
%li
%a{href: client_path(page: 'client')}
%span
клиентам
%ul
%li
= link_to 'Наши партнёры и точки продаж', '#'
%li
= link_to 'Почему мы лучшие', '#'
%li
= link_to 'Готовое бизнес-решение', '#'
%li
%a{href: information_path(page: 'info')}
%span
полезная информация
%li
%a{href: help_path(page: 'contacts')}
%span
контакты
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question