similar to: ActionController::Verification problem

Displaying 20 results from an estimated 10000 matches similar to: "ActionController::Verification problem"

2006 Mar 17
0
ActionController::Verification problem (sorry if it is double post, I''m not sure about the first one)
Hello, I have a subscriptions model and a ''new'' action in subscriptions controller to create new subscription. Also, I have a ''thankyou'' view, which I want to display only if user is just subscribed. So I want to block access to http://localhost/subscriptions/thankyou action with a verify filter. Here is my code: class SubscriptionsController <
2006 Apr 14
2
Puzzled with filters
Hello everyone! I''m trying to create an after filter for all my actions in all controllers. I put it in application controller (application.rb). class ApplicationController < ActionController::Base after_filter :tidyit def tidyit xxxx # syntax error - intentionally end end I have a Example (example_controller.rb) controller with index action. class
2006 Jan 10
4
Problem creating MockController
Hi there, I''m trying to create a mock controller to test the use of UrlHelper in ActionMailer. I''m trying this: require ''d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller'' # Re-raise errors caught by the controller. #class DiscussionsController; def rescue_action(e) raise e end; end class MockController < ActionController::Base def
2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
Hi, I'm looking for a way to solve an error I get each times I run my functional tests. I have a Rails Engine gem (isolated), I have a JSON action with a route declared. But each times I use the method get in a test I get an ActionController::UrlGenerationError exception. Here an example of code with the problem: # config/routes.rbMyEngine::Engine.routes.draw do resources :cats, only:
2008 Jan 03
1
help - updated from 1.2.5 to 1.2.6 and getting undefined method 'session=' for ActionController::base
i start the server but it exits right away, I ran the rake to update and changed the version string in config.rb. Any thoughts on this matter would be appreciated. i imagine that it has something to do with the session, but i am not able to figure it out. my config/config.rb has the following config.action_controller.session = { :session_key => ''c3_rails_session'',
2008 Aug 01
1
rescue_from ActionController::MethodNotAllowed
Hello, I''m having some trouble handing ActionController::MethodNotAllowed errors. Basically, the following is defined in my controllers, but obviously I''m missing something. Thanks in advance for any light you can shed. - - - - - - - - - - - - - - - - - - - - class UsersController < ApplicationController rescue_from ActionController::MethodNotAllowed, :with =>
2011 Mar 30
0
Anonymous Subclass of ActionController::Base
I''m trying to spec a subclass of ActionController::Base using an anonymous subclass but I am running into errors but I am receiving a uninitialized constant StubResource Here is my base class class Admin::BaseController < ApplicationController before_filter :etherweb_site load_and_authorize_resource layout "admin/admin" protected def etherweb_site end end
2010 Apr 26
0
ActionController::RoutingError
Hi All, I am just learning Rails. I had encountered a routing error, though I think I have specified the correct rules in the routing.rb. I have attached the code. Please help routing.rb map.connect '':controller/:action'' map.connect '':controller/:action/:id'' map.connect '':controller/:action/:id.:format'' Controller class
2008 Mar 14
3
ActionController <-> ActiveView code access ambiguity
Hi All! This is not a problem in general but i''ve just missed the point. If my application has a global state, which i have to use both throughout ActionController and ActiveView, then, where to place that state? E.g. if I do this: class ApplicationController < ActionController::Base protected def authenticated? !user.nil? end end then I can''t use that from any
2004 May 03
0
wine-users digest, Vol 1 #1756 - 15 msgs
besides wine is there no other package thats can be used ----- Original Message ----- From: <wine-users-request@winehq.org> To: <wine-users@winehq.org> Sent: Friday, April 30, 2004 5:20 PM Subject: wine-users digest, Vol 1 #1756 - 15 msgs > Send wine-users mailing list submissions to > wine-users@winehq.org > > To subscribe or unsubscribe via the World Wide Web, visit
2006 May 03
8
Subversion and tmp directory in Rails 1.1 project
Hello everyone! I''m thinking of the right way to store tmp/ directory of Rails 1.1 project in Subversion. It has cache, session and sockets subdirectories. To me, it looks good to have svn delete tmp/* svn propset svn:ignore "*" tmp So it will ignore all directories and files in tmp/. Even if you create sessions/ and put some files in it, tmp/ content is still ignored. But
2009 Jul 31
2
ActionController::RoutingError (No route matches "/say/hello" with {:method=>:get}):
Hello: I have found a whole lot of posts on this, however, none of them offer any sort of solution other than restarting the web server, which I can''t imagine everyone out there developing on Rails is doing. I am on page 40 of Agile Development with Rails 3rd edition and trying to get the missing template error to show but until I restart webrick I only get the following: Processing
2008 Jan 16
4
ActionController::InvalidAuthenticityToken in LoginController
Hi, I''m having a problem trying to get a login controller working. When I try and post to my login controller I get the following error: ActionController::InvalidAuthenticityToken in LoginController#login login_controller: class LoginController < ApplicationController def login case request.method when :post if @session[''user''] =
2006 Jul 18
1
Fixtures Max Size? SystemStackError: stack level too deep
Hello, I have a table of zipcodes that I am using in my application, so there are approximately 50,000 rows in this table. I have dumped the table to a fixture yaml file to represent this data, but when I try to load it, I get this error: SystemStackError: stack level too deep Is there a max size allowed for a fixture file..? Here is the --trace output: rake db:fixtures:load --trace **
2006 Aug 15
0
SystemStackError: stack level too deep
Hi I have two models Keyword and KeywordResult, they basically look like this: class KeywordResult < ActiveRecord::Base belongs_to :keyword validates_presence_of :title, :url, :keyword_id end class Keyword < ActiveRecord::Base has_many :keyword_results, :dependent => :delete_all acts_as_tree :order => "text", :foreign_key => "top_keyword" end Before you
2006 Apr 03
4
Clearing out filters in ActionController
I want to run a single filter in my application.rb file, and then if a certain condition is true, end the action''s processing immediately. Right now I''m using prepend_before_filter to ensure that it gets run first, but some of my around_filters are still being processed. Is there a way that I can clear out all the filters that should be run? Basically it''ll look
2006 May 08
6
how to make field in model immutable after create
Hello everyone! I want to have login field in User model which is set only once (on create), and then it should fail validation if the value is changed. How can I do this? I dig around for validation and tried def after_validation_on_update unless User.find_by_login(:login) errors.add(:login, "is immutable. You can''t change it") end end in model, but somewhat it
2006 Jun 06
1
stack level too deep
Iam new to ferret Iam trying to do a sample application on ferret this is my code: class SearchController < ApplicationController require ''ferret'' include Ferret index = Index::Index.new(:path => ''/path/to/index'') def list end def index index << {:title => "Programming Ruby", :content => "blah blah blah"}
2006 Jan 20
1
AW: Linux Suggestions
Like the idea - how''d you call it, "railix"? ;) .mitro -----Urspr?ngliche Nachricht----- Von: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] Im Auftrag von David Harrison *EXTERN* Gesendet: Freitag, 20. J?nner 2006 11:25 An: rails@lists.rubyonrails.org Betreff: Re: [Rails] Linux Suggestions Is this thread an indication that what would be
2008 Jan 23
0
bug in external apps
I was connecting directly to my server to try to debug something. I disabled the ensure_application_is_installed_by_facebook_user check, then tried to connect to my index action. Got this error: SystemStackError in FacebookController#index stack level too deep RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace