Tokamak needed to index

8 views
Skip to first unread message

Altieres

unread,
May 21, 2011, 11:00:07 AM5/21/11
to restfulie
Hy! I'm trying to start using restfulie.

When I try to get all items, without a tokamak file, Restfulie doesn't
understand the response:

$ r = Restfulie.at('http://localhost:3000/items').accepts('application/
json').get
$ print r.body
[{"item":{"created_at":"2011...
$ o = r.resource
SystemStackError: stack level too deep
from /Users/altiereslopes/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/
irb/workspace.rb:80
Maybe IRB bug!!

Creating a index.tokamak all runs fine, since I have a "items" root
element.

thanks, RR-79 is great!

Altieres Lopes - Webgoal

Guilherme Silveira

unread,
May 21, 2011, 6:42:14 PM5/21/11
to rest...@googlegroups.com

Hi Altieres.

Can you check with trunk?
I will open th esource of the pdf so someone can help updating it.

Regards

Guilherme Silveira

Altieres

unread,
May 23, 2011, 9:31:38 AM5/23/11
to restfulie
Newbie question!

I'm trying to build Restfulie from source...

$ bundle install
Could not find gem 'hypertemplate (~> 1.2.0)', required by
'restfulie', in any of the sources

I have cloned hypertemplate too, but I don't know how to build the
gem!

thanks!

On 21 maio, 19:42, Guilherme Silveira
<guilherme.silve...@caelum.com.br> wrote:
> Hi Altieres.
>
> Can you check with trunk?
> I will open th esource of the pdf so someone can help updating it.
>
> Regards
>
> Guilherme Silveira
>

Guilherme Silveira

unread,
May 23, 2011, 10:21:31 AM5/23/11
to rest...@googlegroups.com
Hi Altieres,

We are about to release the new minor version.
To build it simply:

gem build hypertemplate.gemspec
gem install hypertemplate-*

Regards

Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/

Altieres Lopes

unread,
May 23, 2011, 1:02:32 PM5/23/11
to rest...@googlegroups.com
Thanks again!

I learned the importance of hyperlinks and I will use the tokamak.

Just for you know, I have Restfulie 1.0.3 running, but the error persists.


ruby-1.9.2-p180 :007 > Restfulie::VERSION
 => 1.0.3

ruby-1.9.2-p180 :016 > Rails.version
 => "3.0.7"

ruby-1.9.2-p180 :008 > r = Restfulie.at("http://localhost:3000/items").get
ready to execute request using stack [{:type=>Restfulie::Client...
GET /items
 => #<Net::HTTPOK 200 OK  readbody=true>

ruby-1.9.2-p180 :009 > r.body
 => "[{\"item\":{\"created_at\":\"2011...

ruby-1.9.2-p180 :010 > o = r.resource

SystemStackError: stack level too deep
    from /Users/altiereslopes/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/workspace.rb:80
Maybe IRB bug!!


--
Altieres Lopes
altier...@webgoal.com.br | (11) 2537-1198

Webgoal - Produtos Web
www.webgoal.com.br
www.webgoal.com.br/blog
www.twitter.com/webgoal


Reply all
Reply to author
Forward
0 new messages