similar to: 404.html and 500.html not working

Displaying 20 results from an estimated 100000 matches similar to: "404.html and 500.html not working"

2007 Apr 19
3
500.html not being returned to IE
When I access a "broken" page on my site, most browsers display my 500.html file found in the RAILS_ROOT/public folder. However, Internet Explorer always shows its own default "The page cannot be displayed" error rather than showing the custom page I made. It works fine in Firefox, Safari, etc. Any suggestions? I''m running rails 1.2.3 on mongrel+apache2.2. -- Posted
2008 Jan 17
0
It seems to be a restful_authentication bug (was Re: Re: named route new_session not working)
On 1/16/08, Jimmy Palmer <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > sorry for the ambiguity. I will work on being more descriptive. :) > > In the method access_denied in the file authenticated_system.rb from > restful athentication, it generates this: > > def access_denied > respond_to do |format| > format.html do >
2007 Jun 15
4
404 Error in any controller/action on Media Temple
Hi everybody. I''m a newbie on RoR. I have some experiencie developing in PHP or Java, but I''m just starting with RoR. A few days ago I signed up to the (gs) Grid Service on Media Temple. This is my very first experience deplying RoR on a production enviroment. Until now I just used the WebRick server on developement. Well, the problem I''m having is that after
2009 Mar 12
2
Redmine: 500 Internal Server Error Content-Type: text/html
Hello! I have a such problem in my redmine app, like "Redmine: 500 Internal Server Error Content-Type: text/html " error, from time to time, and there is no periodicly matches. Versions: Rails - 2.2.2 Ruby - 1.8.5 Thx, for you answers. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Mar 02
0
Status: 500 Internal Server Error Content-Type: text/html
Hello Every body! I''m newbie in Rails application. I installed rails in my fedora system last week. I dont have problem on starting lighttpd and using the command script/server and all. But when try to view my application in my browser. Its show some error like Status: 500 Internal Server Error Content-Type: text/html How can I overcome this. If you need for information about
2007 Dec 30
6
Restful-Authentication Rspec Failure Rails 2.0.2
I am trying the Restful-Authentication (latest version, downloaded today) and upon running the generator, doing the migration, prepping the test system and putting the resources in routes.rb I get a Rspec test failure: ''SessionsController logins and redirects'' FAILED expected not nil, got nil routes.rb has: map.resources :users map.resources :sessions nothing else was
2007 Aug 27
1
Error 500 when displaying after creating a controller
Hello, I''m currently learning RoR but I''m facing yp to a displaying issue. I created a RoR project via the command rails project in the OS Linux Ubuntu Then, I also created a controller: sudo script/generate controller about exists app/controllers/ exists app/helpers/ create app/views/about exists test/functional/ create app/controllers/about_controller.rb create
2008 Nov 17
2
Can't seem to test http error codes
in application.rb rescue_from ActiveRecord::RecordNotFound { |e| http_status_code (:missing, e) } def http_status_code(status, exception) @exception = exception respond_to do |format| format.html { render :template => "shared/status_# {status.to_s}", :status => status } format.any { head status } end end in a controller project =
2008 Jan 16
5
named route new_session not working
Anyone have any idea why a named route would NOT work? I did rake routes to make sure it was there and it was but for some reason new_session doesn''t work. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,
2007 Aug 16
0
Update from RoR 1.1.6 - 1.2.3 Rake fails
I am getting a message when I update my system from rails 1.1.6 to 1.2.3 running rake. []# rake test --trace (in /var/www/matrix.1.7.15) ** Invoke test (first_time) ** Execute test ** Invoke test:units (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! Expected /var/www/matrix.1.7.15/config/../vendor/plugins/
2008 Feb 26
2
Specify HTML options on select_year
Rails 1.2.3 It appears that the select_year helper doesn''t accept HTML attributes as part of the options array. Does anyone have a way to successfully pass an :onchange attribute in to the select_year helper? I''m going to do it with Javascript directly for now. Thanks, Wes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You
2007 Mar 31
0
routing problem with controllers in other dirs
Hi all I have a problem with mapping url to controller which is deeper in controller directory (not root directory). I wanted to move acts_as_authenticated account_controller deeper to directory (let''s call it Foo) and route it as /Foo/Account, but i always seem to get exception that no route matched my request file structure: /app +- /controllers +- /Foo +-
2008 May 22
2
Story / Redirection to static html within public
With a rails application I''m trying to access the public/ folder from within a rspec story. I have a controller which redirects to: /public/static_html_page.html I have a story written using webat. This story uses the above controller and it expects the redirection. This story always fails as within the story it cannot follow the redirection (Always gives a 500 error). It does not
2008 Jul 08
5
map.root doesn't do anything, index.html can't be changed
Environment: Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 PHP/5.2.4-2ubuntu5.1 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.6(2007-09-24) mod_ssl/2.2.8 OpenSSL/0.9.8g Phusion_Passenger/2.0.1 Server I''ve created several scaffolds that all work, and am trying to set the root page for this app to default to one of the methods. Here''s my routes.rb: ActionController::Routing::Routes.draw do
2008 Apr 15
0
routing problem: map.testroute ":param1/:param2-:param3-:param4.html"
hi, I''m trying to create meaningful urls with routing extracting all params as specified: map.testroute ":param1/:param2-for-:param3.html" However this approach totally fails - it says Routing Error, No route matches "/aaaa/bbbb-for-ccc.html" with {:method=>:get} Then while browsing source code and some googling I''ve found that there is sth called
2007 Dec 10
2
Updating Rails to 2.0 on Mac OS X 10.5.1 won't work
Hi, I just wanted to update my Rails installation with "sudo gem update rails" but I get this error: Updating installed gems... Bulk updating Gem source index for: http://gems.rubyforge.org Attempting remote update of rails Install required dependency activesupport? [Yn] y Install required dependency activerecord? [Yn] y ERROR: While executing gem ... (OpenURI::HTTPError) 404
2007 Jun 03
5
can I use template to assemble a html page in an controller and redirect to another controller?
Hi,all! I want to assemble a html page and put it into flash and redirect to another controller ,for example: flash[:aaa]="<html><body><div>hi</div></body></html>" but what I need is to assemble some more complicate html page,so I want to read the render result of a template before to send it to browser. Any thought? Thanks in advance :-)
2010 Dec 02
4
how to redirect to ERROR page /500.html in rails
I setup an application in rails while performing some action am getting below error Status: 500 Internal Server Error Content-Type: text/html 500 Internal Server Error page. using Rails 2.2.2 I want to redirect the user to /500.html so that they get the error page that looks like our application,.how could achieve this ?? -- Posted via http://www.ruby-forum.com/. -- You received this
2009 Jan 28
4
format.html and redirect_to
I was wondering what the purpose of wrapping a redirect_to in a format.html block is. I get why you''d want to do this with a render, but if you''re redirecting the browser to another URL, what''s the point? As I understand it, when redirect_to is called, Rails sends a 302 back to the browser, so I''m having trouble understanding why format plays any part in this.
2007 Jun 28
2
form_tag routing error in >= 1.2.2 ?
I have a simple feedback form handled by feedback_controller. For methods I use "new" for the form and "create" to handle the feedback submitted. Routes are simple enough: map.resources :feedback What''s odd is this works fine in Rails 1.2.1: <% form_tag(feedback_path) do -%> But in Rails 1.2.2 and 1.2.3 I get: feedback_url failed to generate from