Forum: Radiant CMS 1st Extension - Class Call from module newext_tags.rb

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E8d27b9246051fff88e348844afd57ce?d=identicon&s=25 Bartee Lamar (bartee)
on 2008-12-28 17:20
I am writing my 1st extension.. also new to rails and ruby.. oh why

In the newext_tags.rb module I am trying to call a method from a
newext.rb Class Newext

The method cannot be found.

If I move the Class definition at then end of the module NewextTags it

I am using the rake command:

rake radiant:extensions:newext:update  after each update to the code

Also restarting the web server each time.
4ac2b4fe78e6d4a40cc4642320a8c5cd?d=identicon&s=25 Manuel Meurer (zoopzoop)
on 2008-12-29 12:23
(Received via mailing list)
Hi Bartee (or Lamar?),

Where are the files newext_tags.rb and newext.rb located?

When you declare methods in newext.rb (which should be located
somewhere in \lib) you should declare them as class methods (def
self.my_method) to be able to call them like this with

You don't need to use the rake update command, it just copies the
files from your extension's \public folder to the Radiant
application's \public folder, which is not what you want at this
point. Restarting the web server is necessary, though.

E8d27b9246051fff88e348844afd57ce?d=identicon&s=25 Bartee Lamar (bartee)
on 2008-12-29 14:55

Excellent!!!  That worked.

Thanks... I am obviously new to ruby/rails etc..

My first name is Bartee.

Now on to the next step, I am sure I will have more questions.

This topic is locked and can not be replied to.