..an oversight. :-)
modified slightly to work:
class_def(meth) do |*a|
controller_module = self.class.name.split(/::/)
controller_module.pop
controller_module << :Login # maybe this could be passed as an arg too
controller_module=controller_module.join("::").constantize
@[EMAIL PROTECTED]
return redirect(controller_module) if @state.blank? or
@state.user_id.nil?
send("__#{meth}__", *a)
end
thanks for the speedy reply!
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list