[chef-dev] Re: Adding a new page to the Chef-Server-Webui


Chronological Thread 
  • From: Peter Fern < >
  • To:
  • Subject: [chef-dev] Re: Adding a new page to the Chef-Server-Webui
  • Date: Thu, 05 Jun 2014 05:45:13 +1000

" type="cite">
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).



Archive powered by MHonArc 2.6.16.

§