Adding a new page to the Chef-Server-Webui


#1

Hi

I would like to add a new page to the chef-server-webui say nodes/mypage

In the /opt/chef-server/embedded/service/chef-server-webui/app directory

views/nodes/mypage.html.haml
controller/nodes_controller i added def mypage
config/routes i added a path get nodes/mypage

I restarted the chef-server-ctl

But I cant get the page, Its showing “404 Object Not Found”


#2

On 04/06/14 22:40, anjumr06@gmail.com wrote:

Hi

I would like to add a new page to the chef-server-webui say nodes/mypage

In the /opt/chef-server/embedded/service/chef-server-webui/app directory

views/nodes/mypage.html.haml
controller/nodes_controller i added def mypage
config/routes i added a path get nodes/mypage

I restarted the chef-server-ctl

But I cant get the page, Its showing “404 Object Not Found”

It’s a Ruby on Rails application, I’d suggest you do some reading on
Rails development (you’ll need at least a route and controller).