Method Calling Problems


#1

Hi all! I am attemping to call a method inside of my
LeviUserController named show_userland from my
LeviInterfaceController class. No matter how I do it,
I keep getting some type of error. If I make the method
a class method, then my render_partial inside of
show_userland can’t be found. If i call it using

@luser = LeviUserController.new;
@luser.show_userland;

I get an error with a nil object exception.

Y’all have any ideas? I would greatly appreciate the help.


Topher Fangio
removed_email_address@domain.invalid
http://www.fangiotophia.com

Website Specialist
Fangiotophia Designs
(325) 660-7141


#2

Why would wanto to do this???

You might be going in he wrong direction…

On Wednesday, March 01, 2006, at 11:51 AM, Toph wrote:

I get an error with a nil object exception.
(325) 660-7141


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails

Mikkel B.

www.strongside.dk - Football Portal(DK)
nflfeed.helenius.org - Football News(DK)
ting.minline.dk - Buy Old Stuff!(DK)


#3

I am needing to render a partial from a bunch of classes. The user
class should render the userland, the module class should render
the modules and the interface module (which should call the others)
needs to render some additional information such as an editor. Is
there a better way to do this?

On 1 Mar 2006 17:58:21 -0000, Mikkel B.
removed_email_address@domain.invalid wrote:

a class method, then my render_partial inside of
Topher Fangio


Posted with http://DevLists.com. Sign up and save your time!


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


Topher Fangio
removed_email_address@domain.invalid
http://www.fangiotophia.com

Website Specialist
Fangiotophia Designs
(325) 660-7141