search for: actioncontrollererror

Displaying 7 results from an estimated 7 matches for "actioncontrollererror".

2007 Jun 27
5
Filter Ordering in Edge Rails (Rev 7143)
Filter chaining appears to behave in differently than Rails 1.2.x. It seems that I''m getting a lot of errors along the lines of: ActionController::ActionControllerError: filter #<ActionController::Filters::ClassMethods::BeforeFilterProxy:0x322f468 @filter=#<ActionController::Filters::ClassMethods::SymbolFilter: 0x322f4b8 @filter=:login_required>> was in the wrong place! This isn''t very helpful. How are you guys hunting down the problems with...
2012 Jan 18
3
Cannot redirect to nil!
I need some help please.. when I created web application about books market, i create a cart and using test the message error appear like this on rake test:functionals LineItemsControllerTest > test_should_create_line_item > ERROR > Cannot redirect to nil! and also appear on web side, thats error told that "Cannot redirect to nil!" Then i was checking the code,
2005 Dec 16
1
Exception Locations?
I am trying to locate the following in the current 1.0 source tree: ActiveRecord::RecordNotFound ActionController::UnknownAction Looking at the API docs, I''ve been unable to track these down. Can someone help?
2004 Oct 16
0
class ActiveRecordError < Exception
Hi, I noticed that ActionControllerError was recently changed in CVS to descend from StandardError instead of Exception, to permit generic rescue clauses to work. Could this be done for ActiveRecordError, also? That issue was a head-scratcher for me the other day when I was porting some code to Active Record. -- Ryan Platte
2013 Sep 23
1
redirect on browser success, but redirect on functional test is error
...assert_difference(''LineItem.count'', -1) do delete :destroy, id: @line_item end assert_redirected_to @cart end ---------------------------------------------- rake test:functionals 1) Error: test_should_destroy_line_item(LineItemsControllerTest): ActionController::ActionControllerError: Cannot redirect to nil! ------------------------------------------------ @cart in line_items_controller.rb may be nil, when executing functional test. Accessing by browser "line_items/20/ post:delete", correctly redirected show cart that contain line_items(id:20) why is functional t...
2006 May 23
5
Wierd pagination problem - Unknown options: order?
...39;ve seen all over the web, but I am getting an error. My code seems simple: def list @upload_pages, @uploads = paginate :uploads, :per_page => 20, :order => ''id'' end Yet I keep getting this error: ___________________________________________ ActionController::ActionControllerError in Data#list Unknown options: order /app/controllers/data_controller.rb:12:in `list'' /home/bclinton/work/eds/script/server:51 ___________________________________________ If I take the order option out, it works fine. Anyone have any idea what I am doing wrong here? -- Posted via ht...
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
...Dave Steinberg] * Changed that integer and floats set to "" through attributes= remain as NULL. This was especially a problem for scaffolding and postgresql. (#49) * Changed the MySQL Adapter to rely on MySQL for its defaults for socket, host, and port [Andreas Schwarz] * Changed ActionControllerError to decent from StandardError instead of Exception. It can now be caught by a generic rescue. * Changed class inheritable attributes to not use eval [Caio Chassot] * Changed Errors#add to now use "invalid" as the default message instead of true, which means full_messages work with th...