Wierd ID problem controller router?

Hello, recently on one of y sites i have a weird ID problem one
editing some pages.

After edit I get an The page you were looking for doesn’t exist.
error.

The Id of the editing page is 93 but in log files I have

ActiveRecord::RecordNotFound (Couldn’t find Page with ID=403):
app/controllers/pages_controller.rb:44:in `show’

In the controller there is just
def show
@page = Page.find params[:id] # line 44

respond_to do |format|
  format.html { render :layout => 'application' }
end

end

I’m really stunned by this error, I’ve looked in the source of the
edited page but it seems ok.

On 18 February 2012 11:20, Adam [email protected] wrote:

Hello, recently on one of y sites i have a weird ID problem one
editing some pages.

After edit I get an The page you were looking for doesn’t exist.
error.

The Id of the editing page is 93 but in log files I have

ActiveRecord::RecordNotFound (Couldn’t find Page with ID=403):
app/controllers/pages_controller.rb:44:in `show’

Before this in the log you should see the http request that caused the
problems, which will show the params passed to the show action. That
may give you a clue. If you can’t make sense of it post the log
showing the request and the error.

Colin

I’m really stunned by this error, I’ve looked in the source of the
edited page but it seems ok.


You received this message because you are subscribed to the Google G. “Ruby
on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


gplus.to/clanlaw

Thanks for the tip I’ll check that out

On 19 February 2012 18:05, Adam [email protected] wrote:

Could you not top post please, it makes it difficult to follow the
thread. Insert your reply at appropriate point(s) in previous
message. Thanks.

I’ve checked the http request but cannot find anything that could do
this. I’m also passing a lot of html could it be the fault?
I’m using the 3.0.1 gem of rails.

Can you post the bit of the log showing the request and the subsequent
error.

I don’t know what you mean by ‘passing a log of html’

Colin

The Id of the editing page is 93 but in log files I have

In the controller there is just

You received this message because you are subscribed to the Google G. “Ruby
on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


gplus.to/clanlaw

It should have been “a lot of html” my bad.
I’ve placed the production log here
http://dl.dropbox.com/u/947601/production.log
the’re only two actions there and you can see that the is changed from
73 to 403 without any reason (there is a lot of html in it).

Sorry for posting so much, but I’ve tried to remove the html content
from the page( html_body param in log) and the error disappeared so I
think it has to do something with the html. But still is the question
what…

I’ve checked the http request but cannot find anything that could do
this. I’m also passing a lot of html could it be the fault?
I’m using the 3.0.1 gem of rails.

This is the content from TinyMce so the user can visually edit his
page content.

On 19 February 2012 20:08, Adam [email protected] wrote:

Still top posting I see, much better to put your reply inline as I
suggested previously

It should have been “a lot of html” my bad.
I’ve placed the production log here
http://dl.dropbox.com/u/947601/production.log
the’re only two actions there and you can see that the is changed from
73 to 403 without any reason (there is a lot of html in it).

I see
Started GET “/403.shtml” for 77.252.249.15 at Sun Feb 19 14:01:06 -0600
2012
That is where the 403 is coming from.
What on earth are you doing posting html in the params?

Colin

I’m using the 3.0.1 gem of rails.

editing some pages.
problems, which will show the params passed to the show action. That
format.html { render :layout => ‘application’ }
For more options, visit this group
athttp://groups.google.com/group/rubyonrails-talk?hl=en.


gplus.to/clanlaw


You received this message because you are subscribed to the Google G. “Ruby
on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


gplus.to/clanlaw

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs