# Page access denied

**URL:** <https://www.ruby-forum.com/t/page-access-denied/168309>\
**Category:** Rails\
**Created:** [May 19, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/page-access-denied/168309 "2009-05-19T13:37:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![najam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7feea3/32.png) [@najam](https://www.ruby-forum.com/u/najam)\
**Post date:** [May 19, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/page-access-denied/168309/1 "2009-05-19T13:37:14Z")

</div>

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

## Hi from index

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](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.

---

<div class="post-metadata">

**Author:** ![najam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7feea3/32.png) [@najam](https://www.ruby-forum.com/u/najam)\
**Post date:** [May 19, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/page-access-denied/168309/2 "2009-05-19T18:41:32Z")

</div>

On May 19, 12:37 pm, Najam A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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](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

---

<div class="post-metadata">

**Author:** ![najam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7feea3/32.png) [@najam](https://www.ruby-forum.com/u/najam)\
**Post date:** [May 20, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/page-access-denied/168309/3 "2009-05-20T13:32:36Z")

</div>

Frederick C. wrote:

> On May 19, 12:37ï¿½pm, Najam A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> 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](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

Ok. 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. ☹
