Re: Where I can find Reststop-based blog.rb?

2010-06-14 Thread Raimon Fernandez
Philippe,


On 12jun, 2010, at 14:40 , r...@monnet-usa.com wrote:

>  
> Hi Raimon,
>  
> Yes to install RESTstop, run ruby setup.rb - the gem will then appear in your 
> gems folder.
> (I have not been able to publish the gem yet)
>  
> It looks like you don't have the latest version of camping so you can either:
>   a) gem install camping --source http://gems.judofyr.net
>   b) or clone the current camping repository and do a ruby setup.rb
>  
> (The lookup method is a new Camping method)

yes, that was the issue ...

now is running, thanks again,

regards,

r.

>  
> Philippe
>  
> On June 12, 2010 at 10:33 AM Raimon Fernandez  wrote:
> 
> > Hi Philippe,
> >
> > On 10jun, 2010, at 01:12 , Philippe Monnet wrote:
> >
> > > Raimon,
> > >
> > > I have committed a bunch of code fixes and added a wiki page to reststop 
> > > on GitHub.
> > > If you want to upgrade you will need to do the following:
> > > Get the latest source (we'll update the gem soon)
> > How I should install from the source code ?
> >
> > I've just clone the git page:
> >
> > 77-208-180-31:Camping montx$ git clone 
> > http://github.com/camping/reststop.git
> >
> > Once I have the source code downloaded, should I use this ?
> >
> > 77-208-180-31:reststop montx$ ruby setup.rb
> >
> > I'm having always the same error when I start blog.rb with camping:
> >
> > 77-208-180-31:examples montx$ camping blog.rb
> > ** Starting Mongrel on 0.0.0.0:3301
> > !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb:
> > NameError: undefined method `lookup' for module `Blog::Base'
> > /Users/montx/Documents/Camping/reststop/examples/blog.rb:47
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
> >  `load_without_new_constant_marking'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
> >  `load'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
> >  `new_constants_in'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
> >  `load'
> > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:80:in
> >  `load_apps'
> > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:167:in
> >  `update'
> > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in
> >  `map'
> > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in
> >  `update'
> > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:51:in 
> > `find_scripts'
> > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:149:in 
> > `reload!'
> > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:144:in 
> > `start'
> > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/camping:97
> > /usr/bin/camping:19:in `load'
> > /usr/bin/camping:19
> > !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb, 
> > see backtrace above
> >
> >
> >
> >
> >
> > > Use the new blog.rb
> > I suppose the new one is the one that's in git
> >
> >
> > >  If you have customized it or created your own service you will also need 
> > > to replace the ::Base module with the contents from the Blog::Base (there 
> > > is a new alias statement and a new method definition)
> > this should be related to the problem I have ...
> >
> >
> > > Testing is easy if you use IRB + restr + TcpTrace. See the new wiki page 
> > > for details.
> >
> > ok,
> >
> > thanks again,
> >
> > raimon
> >
> ___
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Where I can find Reststop-based blog.rb?

2010-06-12 Thread r...@monnet-usa.com
 
Hi Raimon,
 
Yes to install RESTstop, run ruby setup.rb - the gem will then appear in your
gems folder.
(I have not been able to publish the gem yet)
 
It looks like you don't have the latest version of camping so you can either:
  a) gem install camping --source http://gems.judofyr.net
  b) or clone the current camping repository and do a ruby setup.rb
 
(The lookup method is a new Camping method)
 
Philippe

 

On June 12, 2010 at 10:33 AM Raimon Fernandez  wrote:

> Hi Philippe,
>
> On 10jun, 2010, at 01:12 , Philippe Monnet wrote:
>
> > Raimon,
> >
> > I have committed a bunch of code fixes and added a wiki page to reststop on
> > GitHub.
> > If you want to upgrade you will need to do the following:
> > Get the latest source (we'll update the gem soon)
> How I should install from the source code ?
>
> I've just clone the git page:
>
> 77-208-180-31:Camping montx$ git clone http://github.com/camping/reststop.git
>
> Once I have the source code downloaded, should I use this ?
>
> 77-208-180-31:reststop montx$ ruby setup.rb
>
> I'm having always the same error when I start blog.rb with camping:
>
> 77-208-180-31:examples montx$ camping blog.rb
> ** Starting Mongrel on 0.0.0.0:3301
> !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb:
> NameError: undefined method `lookup' for module `Blog::Base'
> /Users/montx/Documents/Camping/reststop/examples/blog.rb:47
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/g
> ems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
> `load_without_new_constant_marking'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/g
> ems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/g
> ems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
> `new_constants_in'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/g
> ems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load'
> /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:80:in
> `load_apps'
> /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:167:in
> `update'
> /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in
> `map'
> /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in
> `update'
> /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:51:in
> `find_scripts'
> /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:149:in
> `reload!'
> /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:144:in
> `start'
> /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/camping:97
> /usr/bin/camping:19:in `load'
> /usr/bin/camping:19
> !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb, see
> backtrace above
>
>
>
>
>
> > Use the new blog.rb
> I suppose the new one is the one that's in git
>
>
> >  If you have customized it or created your own service you will also need to
> >replace the ::Base module with the contents from the Blog::Base (there is a
> >new alias statement and a new method definition)
> this should be related to the problem I have ...
>
>
> > Testing is easy if you use IRB + restr + TcpTrace. See the new wiki page for
> > details.
>
> ok,
>
> thanks again,
>
> raimon
>___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Where I can find Reststop-based blog.rb?

2010-06-12 Thread Raimon Fernandez
Hi Philippe,

On 10jun, 2010, at 01:12 , Philippe Monnet wrote:

> Raimon,
> 
> I have committed a bunch of code fixes and added a wiki page to reststop on 
> GitHub.
> If you want to upgrade you will need to do the following:
> Get the latest source (we'll update the gem soon)
How I should install from the source code ?

I've just clone the git page:

77-208-180-31:Camping montx$ git clone http://github.com/camping/reststop.git

Once I have the source code downloaded, should I use this ?

77-208-180-31:reststop montx$ ruby setup.rb 

I'm having always the same error when I start blog.rb with camping:

77-208-180-31:examples montx$ camping blog.rb 
** Starting Mongrel on 0.0.0.0:3301
!! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb:
NameError: undefined method `lookup' for module `Blog::Base'
/Users/montx/Documents/Camping/reststop/examples/blog.rb:47
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
 `load_without_new_constant_marking'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
 `load'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
 `new_constants_in'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
 `load'
/Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:80:in 
`load_apps'
/Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:167:in 
`update'
/Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in 
`map'
/Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in 
`update'
/Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:51:in 
`find_scripts'
/Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:149:in 
`reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:144:in 
`start'
/Library/Ruby/Gems/1.8/gems/camping-2.0/bin/camping:97
/usr/bin/camping:19:in `load'
/usr/bin/camping:19
!! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb, see 
backtrace above





> Use the new blog.rb
I suppose the new one is the one that's in git 


>  If you have customized it or created your own service you will also need to 
> replace the ::Base module with the contents from the Blog::Base (there is a 
> new alias statement and a new method definition)
this should be related to the problem I have ...


> Testing is easy if you use IRB + restr + TcpTrace. See the new wiki page for 
> details.

ok,

thanks again,

raimon

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Where I can find Reststop-based blog.rb?

2010-06-11 Thread Raimon Fernandez
Hi Philippe,

I'm 'out' for some days, I'll give it a try ASAP

thanks,

r.

On 10jun, 2010, at 01:12 , Philippe Monnet wrote:

> Raimon,
> 
> I have committed a bunch of code fixes and added a wiki page to reststop on 
> GitHub.
> If you want to upgrade you will need to do the following:
> Get the latest source (we'll update the gem soon)
> Use the new blog.rb
>  If you have customized it or created your own service you will also need to 
> replace the ::Base module with the contents from the Blog::Base (there is a 
> new alias statement and a new method definition)
> Testing is easy if you use IRB + restr + TcpTrace. See the new wiki page for 
> details.
> 
> Philippe
> 
> On 6/9/2010 9:19 AM, Raimon Fernandez wrote:
>> 
>> Hi Philippe,
>> 
>> 
>> On 9jun, 2010, at 15:09 , Philippe Monnet wrote:
>> 
>>> Hi Raimon,
>>> 
>>> I did a quick test this morning and it looks like some change in Camping 
>>> after version 2.0 impacted RESTstop. By reverting to camping-2.0 I was able 
>>> to run the blog example. I will need to investigate what the issue is. Also 
>>> I realized that a couple things need to be done: 
>>>   a) publish a new version of the reststop gem (as the current one no 
>>> longer matches the current camping/reststop project code on GitHub
>>>   b) merge some of my changes from March re: the RESTR library and publish 
>>> a new gem
>>> 
>>> Philippe
>>> 
>>> PS - eventually I will write a blog post on this ;-)
>> 
>> ok,
>> 
>> uninstalled current camping 2.0.392 and installed the gem camping 2.0 and ...
>> 
>> it's working better as before :-)
>> 
>> the default page is never found, but if I force for example the login, all 
>> is working fine 
>> 
>> :-)
>> 
>> now I can focus on camping and how to send xml files instead of html
>> 
>> thanks!
>> 
>> regards,
>> 
>> raimon
>> 
>> 
>>> 
>>> On 6/9/2010 12:31 AM, Raimon Fernandez wrote:
 
 Hi Bartosz,
 
 On 8jun, 2010, at 20:31 , Bartosz Dziewoński wrote:
 
   
> It should come with the gem, in examples directory. You can also find
> it here: http://github.com/camping/camping/blob/master/examples/blog.rb
> 
 This version doesn't use reststop.
 
 The one that is included in the examples, it does, but has some errors:
 
 MacBook-ProII-2:examples montx$ camping blog.rb 
 ** Starting Mongrel on 0.0.0.0:3301
 !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb:
 NameError: uninitialized constant Logger
 /Library/Ruby/Site/1.8/reststop.rb:43
 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in 
 `gem_original_require'
 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
 /Users/montx/Documents/Camping/reststop/examples/blog.rb:32
 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
  `load'
 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
  `load_apps'
 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in
  `reload!'
 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in
  `reload!'
 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
  `each'
 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
  `reload!'
 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in
  `update'
 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in
  `find_scripts'
 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in
  `reload!'
 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in
  `call'
 /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call'
 /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call'
 /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in 
 `call'
 ...
 
 So I've added:
 
 require 'Logger'
 
 and started again camping:
 
 MacBook-ProII-2:examples montx$ camping blog.rb 
 ** Starting Mongrel on 0.0.0.0:3301
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172:
  warning: already initialized constant VERSION
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174:
  warning: already initialized constant ProgName
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181:
  warning: already initialized constant DEBUG
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182:
  warning: already initialized constant INFO
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183:
  warning: already initialized constant WARN
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Philippe Monnet

Raimon,

I have committed a bunch of code fixes and added a wiki page to reststop 
on GitHub.

If you want to upgrade you will need to do the following:

  1. Get the latest source (we'll update the gem soon)
  2. Use the new blog.rb
  3.   If you have customized it or created your own service you will
 also need to replace the ::Base module with the contents from the
 Blog::Base (there is a new alias statement and a new method
 definition)

Testing is easy if you use IRB + restr + TcpTrace. See the new wiki page 
for details.


Philippe

On 6/9/2010 9:19 AM, Raimon Fernandez wrote:

Hi Philippe,


On 9jun, 2010, at 15:09 , Philippe Monnet wrote:


Hi Raimon,

I did a quick test this morning and it looks like some change in 
Camping after version 2.0 impacted RESTstop. By reverting to 
camping-2.0 I was able to run the blog example. I will need to 
investigate what the issue is. Also I realized that a couple things 
need to be done:
  a) publish a new version of the reststop gem (as the current one no 
longer matches the current camping/reststop project code on GitHub
  b) merge some of my changes from March re: the RESTR library and 
publish a new gem


Philippe

PS - eventually I will write a blog post on this ;-)


ok,

uninstalled current camping 2.0.392 and installed the gem camping 2.0 
and ...


it's working better as before :-)

the default page is never found, but if I force for example the login, 
all is working fine


:-)

now I can focus on camping and how to send xml files instead of html

thanks!

regards,

raimon




On 6/9/2010 12:31 AM, Raimon Fernandez wrote:

Hi Bartosz,

On 8jun, 2010, at 20:31 , Bartosz Dziewoński wrote:

   

It should come with the gem, in examples directory. You can also find
it here:http://github.com/camping/camping/blob/master/examples/blog.rb
 

This version doesn't use reststop.

The one that is included in the examples, it does, but has some errors:

MacBook-ProII-2:examples montx$ camping blog.rb
** Starting Mongrel on 0.0.0.0:3301
!! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb:
NameError: uninitialized constant Logger
/Library/Ruby/Site/1.8/reststop.rb:43
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/montx/Documents/Camping/reststop/examples/blog.rb:32
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
 `load'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
 `load_apps'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
 `each'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in
 `update'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in 
`find_scripts'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in 
`reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in 
`call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call'
...

So I've added:

require 'Logger'

and started again camping:

MacBook-ProII-2:examples montx$ camping blog.rb
** Starting Mongrel on 0.0.0.0:3301
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172:
 warning: already initialized constant VERSION
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174:
 warning: already initialized constant ProgName
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181:
 warning: already initialized constant DEBUG
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182:
 warning: already initialized constant INFO
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183:
 warning: already initialized constant WARN
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184:
 warning: already initialized constant ERROR
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185:
 warning: already initialized constant FATAL
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186:
 warning: already initialized constant UNKNOWN
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424:
 warning: already initialized constant SEV_LABEL
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436:
 warning: already initialized constant

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Philippe Monnet

Matt,

Do you have the gemspec file for RESTStop? Could you add it to GitHub 
and I can update the version number and push it to RubyGems?


I figured out what the issue was. With Camping 2.0.392 (Tilt support), 
the render method looks for view methods in either the Views module or 
in the views folder (for example to find the haml version of the view). 
Since in RESTstop the Views module has 2 submodules: HTML and XML, I 
needed to adapt the new lookup method of Camping to have a chance to 
look in the HTML module first and then delegate to the base Camping 
method. I have committed my changes and tested them with an updated 
version of blog.rb.


Philippe

On 6/9/2010 7:09 AM, Philippe Monnet wrote:

Hi Raimon,

I did a quick test this morning and it looks like some change in 
Camping after version 2.0 impacted RESTstop. By reverting to 
camping-2.0 I was able to run the blog example. I will need to 
investigate what the issue is. Also I realized that a couple things 
need to be done:
  a) publish a new version of the reststop gem (as the current one no 
longer matches the current camping/reststop project code on GitHub
  b) merge some of my changes from March re: the RESTR library and 
publish a new gem


Philippe

PS - eventually I will write a blog post on this ;-)

On 6/9/2010 12:31 AM, Raimon Fernandez wrote:

Hi Bartosz,

On 8jun, 2010, at 20:31 , Bartosz Dziewoński wrote:

   

It should come with the gem, in examples directory. You can also find
it here:http://github.com/camping/camping/blob/master/examples/blog.rb
 

This version doesn't use reststop.

The one that is included in the examples, it does, but has some errors:

MacBook-ProII-2:examples montx$ camping blog.rb
** Starting Mongrel on 0.0.0.0:3301
!! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb:
NameError: uninitialized constant Logger
/Library/Ruby/Site/1.8/reststop.rb:43
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/montx/Documents/Camping/reststop/examples/blog.rb:32
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
 `load'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
 `load_apps'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
 `each'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in
 `update'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in 
`find_scripts'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in 
`reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in 
`call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call'
...

So I've added:

require 'Logger'

and started again camping:

MacBook-ProII-2:examples montx$ camping blog.rb
** Starting Mongrel on 0.0.0.0:3301
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172:
 warning: already initialized constant VERSION
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174:
 warning: already initialized constant ProgName
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181:
 warning: already initialized constant DEBUG
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182:
 warning: already initialized constant INFO
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183:
 warning: already initialized constant WARN
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184:
 warning: already initialized constant ERROR
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185:
 warning: already initialized constant FATAL
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186:
 warning: already initialized constant UNKNOWN
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424:
 warning: already initialized constant SEV_LABEL
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436:
 warning: already initialized constant Format
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:537:
 warning: already initialized constant SiD
Creating RESTful controller for "posts" using Reststop pull version number here
Creating RESTful controller for "comments" using Reststop p

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Philippe Monnet
Hi Matt, I just forked restr and added cookie support. Could you pull my 
changes and republish the gem?


On 6/9/2010 10:21 AM, Matt Zukowski wrote:


hey Philippe, thanks for raking care of the support on this. I've been 
badly neglecting my camping projects lately due to time constraints... 
let me know if there's anything I can do to help with the reststop gem 
push (gemcutter/rubyforge access?)


On 2010-06-09 8:17 AM, "Philippe Monnet" > wrote:


Hi Raimon,

I did a quick test this morning and it looks like some change in 
Camping after version 2.0 impacted RESTstop. By reverting to 
camping-2.0 I was able to run the blog example. I will need to 
investigate what the issue is. Also I realized that a couple things 
need to be done:
  a) publish a new version of the reststop gem (as the current one no 
longer matches the current camping/reststop project code on GitHub
  b) merge some of my changes from March re: the RESTR library and 
publish a new gem


Philippe

PS - eventually I will write a blog post on this ;-)



On 6/9/2010 12:31 AM, Raimon Fernandez wrote:
>
> Hi Bartosz,
>
> On 8jun, 2010, at 20:31 , Bartos...


___
Camping-list mailing list
Camping-list@rubyforge.org 
http://rubyforge.org/mailman/listinfo/camping-list



___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Dave Everitt

PS - eventually I will write a blog post on this ;-)


with a link on the Camping Github wiki :-)
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Matt Zukowski
hey Philippe, thanks for raking care of the support on this. I've been badly
neglecting my camping projects lately due to time constraints... let me know
if there's anything I can do to help with the reststop gem push
(gemcutter/rubyforge access?)

On 2010-06-09 8:17 AM, "Philippe Monnet"  wrote:

 Hi Raimon,

I did a quick test this morning and it looks like some change in Camping
after version 2.0 impacted RESTstop. By reverting to camping-2.0 I was able
to run the blog example. I will need to investigate what the issue is. Also
I realized that a couple things need to be done:
  a) publish a new version of the reststop gem (as the current one no longer
matches the current camping/reststop project code on GitHub
  b) merge some of my changes from March re: the RESTR library and publish a
new gem

Philippe

PS - eventually I will write a blog post on this ;-)



On 6/9/2010 12:31 AM, Raimon Fernandez wrote:
>
> Hi Bartosz,
>
> On 8jun, 2010, at 20:31 , Bartos...

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Raimon Fernandez
Hi Philippe,


On 9jun, 2010, at 15:09 , Philippe Monnet wrote:

> Hi Raimon,
> 
> I did a quick test this morning and it looks like some change in Camping 
> after version 2.0 impacted RESTstop. By reverting to camping-2.0 I was able 
> to run the blog example. I will need to investigate what the issue is. Also I 
> realized that a couple things need to be done: 
>   a) publish a new version of the reststop gem (as the current one no longer 
> matches the current camping/reststop project code on GitHub
>   b) merge some of my changes from March re: the RESTR library and publish a 
> new gem
> 
> Philippe
> 
> PS - eventually I will write a blog post on this ;-)

ok,

uninstalled current camping 2.0.392 and installed the gem camping 2.0 and ...

it's working better as before :-)

the default page is never found, but if I force for example the login, all is 
working fine 

:-)

now I can focus on camping and how to send xml files instead of html

thanks!

regards,

raimon


> 
> On 6/9/2010 12:31 AM, Raimon Fernandez wrote:
>> 
>> Hi Bartosz,
>> 
>> On 8jun, 2010, at 20:31 , Bartosz Dziewoński wrote:
>> 
>>   
>>> It should come with the gem, in examples directory. You can also find
>>> it here: http://github.com/camping/camping/blob/master/examples/blog.rb
>>> 
>> This version doesn't use reststop.
>> 
>> The one that is included in the examples, it does, but has some errors:
>> 
>> MacBook-ProII-2:examples montx$ camping blog.rb 
>> ** Starting Mongrel on 0.0.0.0:3301
>> !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb:
>> NameError: uninitialized constant Logger
>> /Library/Ruby/Site/1.8/reststop.rb:43
>> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in 
>> `gem_original_require'
>> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
>> /Users/montx/Documents/Camping/reststop/examples/blog.rb:32
>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
>>  `load'
>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
>>  `load_apps'
>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in
>>  `reload!'
>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in
>>  `reload!'
>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
>>  `each'
>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
>>  `reload!'
>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in
>>  `update'
>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in
>>  `find_scripts'
>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in
>>  `reload!'
>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in
>>  `call'
>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call'
>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call'
>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in 
>> `call'
>> ...
>> 
>> So I've added:
>> 
>> require 'Logger'
>> 
>> and started again camping:
>> 
>> MacBook-ProII-2:examples montx$ camping blog.rb 
>> ** Starting Mongrel on 0.0.0.0:3301
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172:
>>  warning: already initialized constant VERSION
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174:
>>  warning: already initialized constant ProgName
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181:
>>  warning: already initialized constant DEBUG
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182:
>>  warning: already initialized constant INFO
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183:
>>  warning: already initialized constant WARN
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184:
>>  warning: already initialized constant ERROR
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185:
>>  warning: already initialized constant FATAL
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186:
>>  warning: already initialized constant UNKNOWN
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424:
>>  warning: already initialized constant SEV_LABEL
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436:
>>  warning: already initialized constant Format
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:537:
>>  warning: already initialized constant SiD
>> Creating RESTful controller for "posts" using Reststop pull version number 
>> here
>> Creating RESTful controller for "comments" using Reststop pull version 
>> number here
>> Creating RESTful contr

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Philippe Monnet

Hi Raimon,

I did a quick test this morning and it looks like some change in Camping 
after version 2.0 impacted RESTstop. By reverting to camping-2.0 I was 
able to run the blog example. I will need to investigate what the issue 
is. Also I realized that a couple things need to be done:
  a) publish a new version of the reststop gem (as the current one no 
longer matches the current camping/reststop project code on GitHub
  b) merge some of my changes from March re: the RESTR library and 
publish a new gem


Philippe

PS - eventually I will write a blog post on this ;-)

On 6/9/2010 12:31 AM, Raimon Fernandez wrote:

Hi Bartosz,

On 8jun, 2010, at 20:31 , Bartosz Dziewoński wrote:

   

It should come with the gem, in examples directory. You can also find
it here: http://github.com/camping/camping/blob/master/examples/blog.rb
 

This version doesn't use reststop.

The one that is included in the examples, it does, but has some errors:

MacBook-ProII-2:examples montx$ camping blog.rb
** Starting Mongrel on 0.0.0.0:3301
!! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb:
NameError: uninitialized constant Logger
/Library/Ruby/Site/1.8/reststop.rb:43
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/montx/Documents/Camping/reststop/examples/blog.rb:32
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
 `load'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
 `load_apps'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
 `each'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in
 `update'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in 
`find_scripts'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in 
`reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in 
`call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call'
...

So I've added:

require 'Logger'

and started again camping:

MacBook-ProII-2:examples montx$ camping blog.rb
** Starting Mongrel on 0.0.0.0:3301
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172:
 warning: already initialized constant VERSION
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174:
 warning: already initialized constant ProgName
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181:
 warning: already initialized constant DEBUG
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182:
 warning: already initialized constant INFO
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183:
 warning: already initialized constant WARN
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184:
 warning: already initialized constant ERROR
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185:
 warning: already initialized constant FATAL
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186:
 warning: already initialized constant UNKNOWN
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424:
 warning: already initialized constant SEV_LABEL
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436:
 warning: already initialized constant Format
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:537:
 warning: already initialized constant SiD
Creating RESTful controller for "posts" using Reststop pull version number here
Creating RESTful controller for "comments" using Reststop pull version number 
here
Creating RESTful controller for "sessions" using Reststop pull version number 
here
127.0.0.1 - - [09/Jun/2010 08:28:07] "GET / HTTP/1.1" 404 45 0.4875

And in the browser, I see:

Camping problem!
/not found


and If I force the login:

http://127.0.0.1:3301/login

Plenty of errors again ...

RuntimeError: Can't find template _login
(eval):16:in `camping_render'
/Library/Ruby/Site/1.8/reststop.rb:135:in `render'
/Users/montx/Documents/Camping/reststop/examples/blog.rb:101:in `get'
(eval):27:in `send'
(eval):27:in `camping_service'
(eval):27:in `catch'
(eval):27:in `camping_service'
/Library/Ruby/Site/1.8/reststop.rb

Re: Where I can find Reststop-based blog.rb?

2010-06-08 Thread Raimon Fernandez
Hi Bartosz,

On 8jun, 2010, at 20:31 , Bartosz Dziewoński wrote:

> It should come with the gem, in examples directory. You can also find
> it here: http://github.com/camping/camping/blob/master/examples/blog.rb

This version doesn't use reststop.

The one that is included in the examples, it does, but has some errors:

MacBook-ProII-2:examples montx$ camping blog.rb 
** Starting Mongrel on 0.0.0.0:3301
!! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb:
NameError: uninitialized constant Logger
/Library/Ruby/Site/1.8/reststop.rb:43
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/montx/Documents/Camping/reststop/examples/blog.rb:32
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
 `load'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in
 `load_apps'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
 `each'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in
 `reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in
 `update'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in 
`find_scripts'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in 
`reload!'
/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in 
`call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call'
...

So I've added:

require 'Logger'

and started again camping:

MacBook-ProII-2:examples montx$ camping blog.rb 
** Starting Mongrel on 0.0.0.0:3301
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172:
 warning: already initialized constant VERSION
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174:
 warning: already initialized constant ProgName
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181:
 warning: already initialized constant DEBUG
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182:
 warning: already initialized constant INFO
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183:
 warning: already initialized constant WARN
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184:
 warning: already initialized constant ERROR
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185:
 warning: already initialized constant FATAL
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186:
 warning: already initialized constant UNKNOWN
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424:
 warning: already initialized constant SEV_LABEL
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436:
 warning: already initialized constant Format
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:537:
 warning: already initialized constant SiD
Creating RESTful controller for "posts" using Reststop pull version number here
Creating RESTful controller for "comments" using Reststop pull version number 
here
Creating RESTful controller for "sessions" using Reststop pull version number 
here
127.0.0.1 - - [09/Jun/2010 08:28:07] "GET / HTTP/1.1" 404 45 0.4875

And in the browser, I see:

Camping problem!
/not found


and If I force the login:

http://127.0.0.1:3301/login

Plenty of errors again ...

RuntimeError: Can't find template _login
(eval):16:in `camping_render'
/Library/Ruby/Site/1.8/reststop.rb:135:in `render'
/Users/montx/Documents/Camping/reststop/examples/blog.rb:101:in `get'
(eval):27:in `send'
(eval):27:in `camping_service'
(eval):27:in `catch'
(eval):27:in `camping_service'
/Library/Ruby/Site/1.8/reststop.rb:53:in `service'
(eval):38:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in 
`call'
(eval):42:in `call'

/Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in 
`call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in 
`call'
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in 
`call'

/Library/Ruby/Gems/1.8/gems/camping-

Re: Where I can find Reststop-based blog.rb?

2010-06-08 Thread Raimon Fernandez

On 8jun, 2010, at 20:31 , Bartosz Dziewoński wrote:

> 2010/6/8, Raimon Fernandez :
>> In Reststop docs they say a good example is the blog.rb, but their link is 
>> broken.
>> 
>> Where I can find it ?
> 
> It should come with the gem, in examples directory.

oughhh, you're right, it's there.

> You can also find it here: 
> http://github.com/camping/camping/blob/master/examples/blog.rb

thanks,

raimon

> 
> -- 
> Matma Rex - http://matma-rex.prv.pl/
> ___
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
> 


___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Where I can find Reststop-based blog.rb?

2010-06-08 Thread Bartosz Dziewoński
2010/6/8, Raimon Fernandez :
>  In Reststop docs they say a good example is the blog.rb, but their link is 
> broken.
>
>  Where I can find it ?

It should come with the gem, in examples directory. You can also find
it here: http://github.com/camping/camping/blob/master/examples/blog.rb

-- 
Matma Rex - http://matma-rex.prv.pl/
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list