Welcome to the Lighthouse API

Subscribe to Welcome to the Lighthouse API 5 post(s), 4 voice(s)

 
Avatar rick Administator 545 post(s)

We’re really excited for the API and have thrown some preliminary docs up, as well as a Lighthouse ruby library using ActiveResource.

Play around, let us know what you think. And yes, this is just a small fraction of what we’d like to do with the API

 
Avatar MJ 1 post(s)

I checked out edgerails into my vendor/rails directory.
I then checked out active_resource and placed it in the vendor/rails directory.
I commented out the LOAD lines at the top of lighthouse.rb

Then I try requiring everything from the console:
>> require ‘active_support’
=> []
>> require ‘active_resource’
=> []
>> require ‘lighthouse’
LoadError: Expected /Users/mj/projects/lighthouse/lib/lighthouse.rb to define Lighthouse

What am I doing wrong?

 
Avatar rick Administator 545 post(s)

ActiveResource should only be used with the latest version of edge rails. That kind of puts a damper on distribution of the client API until a stable Rails 2.0 is out.

For what it’s worth, i just included the lighthouse API in lighthouse without any problems :)

 
Avatar djohn 1 post(s)

Hi all,

I’m having some issues with the lighthouse-api. I can’t seem to save a ticket – I can save a project without a problem, and fetch tickets. I’ll create a new ticket as the comments recommend, however when I try to save it returns nil. I’m on Rails 2.0.1 – is there anything that has changed with the API re: saving a ticket that may not be documented?

Cheers,
Dave

 
Avatar Michael Deering 1 post(s)

Hope this save someone the time I burned with using ActiveResource with the username as an email address.

http://dev.rubyonrails.org/ticket/11112

Can’t move to Edge? Here is a core_ext…

module URI #:nodoc: class Generic #:nodoc: def check_user_with_escaped_username(user) check_user_without_escaped_username(escape_userpass(user)) end alias_method_chain :check_user, :escaped_username end
end