Forum: Ruby on Rails Method Calling Problems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9dda75d7ad467bf2a22de8a9d695a2dd?d=identicon&s=25 Toph (Guest)
on 2006-03-01 18:51
(Received via mailing list)
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
fangiotophia@gmail.com
http://www.fangiotophia.com

Website Specialist
Fangiotophia Designs
(325) 660-7141
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Mikkel Bruun (Guest)
on 2006-03-01 18:59
(Received via mailing list)
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
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


Mikkel Bruun

www.strongside.dk    - Football Portal(DK)
nflfeed.helenius.org - Football News(DK)
ting.minline.dk      - Buy Old Stuff!(DK)
9dda75d7ad467bf2a22de8a9d695a2dd?d=identicon&s=25 Toph (Guest)
on 2006-03-01 19:02
(Received via mailing list)
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 Bruun
<devlists-rubyonrails@devlists.com> 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
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
Topher Fangio
fangiotophia@gmail.com
http://www.fangiotophia.com

Website Specialist
Fangiotophia Designs
(325) 660-7141
This topic is locked and can not be replied to.