Hi,
I recently start working on rails. I am writing a plugin for redmine, right now I am in the start phase. I successfully got the menu display as "custom reports" but problem starts when I click the cutom reports menu. The error generated is:
"The page you were trying to access doesn't exist or has been removed."
where as I have not much code in controller.
Controller.
def index render :text => 'hello' end
even I tried
def index render :template => 'reports/index' end
In index.rhtml <h2>Hi from index</h2>
In init.rb I have
require 'redmine'
Redmine::Plugin.register :redmine_reports do
permission :reports, {}, :require => :member menu :top_menu, :reports, { :controller => 'reports', :action => 'index'}, :caption => 'Custom Reports' end
In terminal where webrick server is running following error information is available: (same in the log file)
Processing ReportsController#index (for 127.0.0.2 at 2009-05-19 17:14:26) [GET] Session ID: acbd4b9697b41f837ef990b0e2e0e807 Parameters: {"action"=>"index", "controller"=>"reports"} Rendering template within layouts/base Rendering common/404 (404) Filter chain halted as [:find_project] rendered_or_redirected. Completed in 0.03096 (32 reqs/sec) | Rendering: 0.02767 (89%) | DB: 0.00105 (3%) | 404 Not Found [http://ferrari/reports\]
I cant understand why it is redirected to find_project where as I didn't use this action anywhere.
Please help me out
Thanks a lot.