Forum: Ruby on Rails Web service interface

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.
David S. (Guest)
on 2006-02-16 10:27
I'm trying to create an application that interfaces with the metaweblog
API of a remote blog.

I've installed a nifty little ruby module called "blog/client" and have
it working if I put all the code into my controller.

Now, I wanted to try and put the code into a model so that I can create
a new connection to the blog using @blog = and then save
posts back to the blog using

Obviously as this doesn't have an associated database table it shouldn't
inherit from activerecord::base (is this a correct assumption?). I've
tried creating a model like this but Rails just complains back to be

"undefined method `new' for Blog:Module"

Even though I have specified a new and initialize method within the
blog.rb model.

Am I going about this the right way? Should I just leave the code in the
This topic is locked and can not be replied to.