On 18 February 2012 11:20, Adam 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'
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'
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
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.
--
You received this message because you are subscribed to the Google Groups "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.
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.
--
You received this message because you are subscribed to the Google Groups "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
--
You received this message because you are subscribed to the Google Groups "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.