Up-to-Date Example?

19 views
Skip to first unread message

Scott Bellware

unread,
May 23, 2011, 5:49:28 PM5/23/11
to restfulie
Is there an up-to-date example of using Restfulie in both client and
server on Rails 3 using Restfulie 1.0.0?

I'm having a really painful and frustrating time getting even a simple
example to work. I've got a hodge-podge of different sources from the
Restful Rails PDF to the various samples that I can find on GitHub.

In all cases, I can't seem to make any of it work as the suggested
syntax and capabilities of the docs and samples.

It seems like most of the example code I've found represents previous
versions of DSLs and APIs, but I can find a definitive API doc that
says which APIs are the current ones. An understanding of what has
been deprecated might also be useful.

PS: If anyone has time for an hour of screen sharing, I would pay for
your time. At this point, I've got myself into a commitment to do a
proof of concept for work based solely on what I'd read in documents
rather than what I could do in code, and now I've put myself at quite
a bit of risk for not being able to deliver.

Quite desperate at this point, and would appreciate some guidance.

Thanks!
Scott

Guilherme Silveira

unread,
May 23, 2011, 6:01:15 PM5/23/11
to rest...@googlegroups.com
Hello Scott!

Yes, the restfulie-restbuy example uses Restfulie 1.0.0 and Rails 3 on
the client and server side:
https://github.com/caelum/restfulie-restbuy/tree/1.0.0
https://github.com/caelum/restfulie/tree/1.0.0

We will release 1.0.3 this week from trunk of both projects, if you prefer.

Can you check if it works for you? Either way, you can contact me
tomorrow on msn 'guilherme...@caelum.com.br' or skype
'guilhermemilesimavez'

Regards

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

Scott Bellware

unread,
May 23, 2011, 9:56:36 PM5/23/11
to rest...@googlegroups.com
Hi, Guilherme

I wasn't even to get past 'rake db:migrate'.

The error I got with rake is:
undefined method `task' for #<Restbuy::Application:0x0000010289dca0>

I still hope to pull able at least to pull an all-nighter to meet my
commitment on doing this proof of concept with Restfulie. I'm willing
to loose a night's sleep to get this done if someone somewhere can
help me.

Thanks,
Scott

Scott Bellware

unread,
May 23, 2011, 10:03:16 PM5/23/11
to rest...@googlegroups.com
PS: I changed the version of Restfulie in the Gemfile to "~> 1.0.0".
Ruby Gems reports that Restfulie "~> 1.0.3" can't be found. Does
restfulie-restbuy absolutely depend on an unreleased gem?

Thanks,
Scott

Guilherme Silveira

unread,
May 23, 2011, 10:04:43 PM5/23/11
to rest...@googlegroups.com
Hi Scott,

The trunk version of both files is related to the work in progress.
The links I sent are for the TAG 1.0, so you can do:

git clone g...@github.com:caelum/restfulie-restbuy.git
cd restfulie-restbuy
git checkout 1.0.0
gem install bundler
bundle install
rake db:migrate
rake spec

Regards

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

Scott Bellware

unread,
May 24, 2011, 12:31:15 AM5/24/11
to rest...@googlegroups.com
Thanks for all your help tonight, Guilherme! I think I've got a good
starting point. Still lots of questions, but at least some working
code to work with.

Best,
Scott

On Mon, May 23, 2011 at 9:04 PM, Guilherme Silveira

Guilherme Silveira

unread,
May 24, 2011, 8:41:57 AM5/24/11
to rest...@googlegroups.com
Hi Scott,

No problems, just for the records, the problem occurs because of a
rake bug (rake 0.9.0) which is described on stackoverflow + some bug
on rubygems, that makes the environment not load the correct gems
(nokogiri in the second case).

Regards

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

Reply all
Reply to author
Forward
0 new messages