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. -- Posted via http://www.ruby-forum.com/.
On May 19, 12:37 pm, Najam Alvi <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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.It isn''t saying that you are are redirected to find_project. It is saying that there is a before filter called find_project that rendered or redirected. Fred> > Please help me out > > Thanks a lot. > -- > Posted viahttp://www.ruby-forum.com/.
Frederick Cheung wrote:> On May 19, 12:37�pm, Najam Alvi <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> 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. > > It isn''t saying that you are are redirected to find_project. > It is saying that there is a before filter called find_project that > rendered or redirected. > > FredOk. Can you tell me how to stop it, I mean the automatic call to find_project because I didn''t want it. Still searching on google and forums but of no use. :( -- Posted via http://www.ruby-forum.com/.