applicationcontroller

Why can't rails3 find ApplicationController when it is in my application

In a Rails3 Application I keep getting ..gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:459:in 'load_missing_constant': uninitialized constant ApplicationController (NameError) Even though app/controllers/application_controller.rb exists and is valid. What is the problem ...

"undefined method" when calling helper method from controller in Rails

Does anyone know why I get undefined method `my_method' for #<MyController:0x1043a7410> when I call my_method("string") from within my ApplicationController subclass? My controller looks like class MyController < ApplicationController def show @value = my_method(params[:string]) end end and my helper module ApplicationHelp...

How to override a render to create a custom "render :my_format => argument" in rails 2.3(.5)?

Hey! I would like to create a custom render as specified in title. For instance, I have my controller: class MyController < ApplicationController def index respond_to do |format| format.html # index.html.erb format.xml { render :xml => @objs } end end end , but I would like something like this: class MyCont...

Rails 3.0 Engine - Execute code in ActionController

Hello all, I am upgrading my Rails plugin to be an engine that works with the latest 3.0RC1 release and I'm having a bit of trouble figuring out the best (and most correct) way to extend ActionController. I've seen this post by DHH and this question here on SO, but my question is more about how to properly call code within the ActionCon...

ApplicationController methods in Rails 2.0.2 not overriding plugin methods using Engines

I am trying to use the Savage Beast 2 plugin in my project. This plugin requires the use of Engines plugin. My project is on Rails 2.0.2. There are some methods in /main_app/vendor/plugins/savage_beast/lib/authentication_system.rb that I mean to override in /main_app/app/controllers/application.rb The views within the plugin (e...