Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 09:18 , Raimon Fernandez wrote: Hi again, I'm trying to install Camping on my OS X but I'm getting some errors: MacBook-ProII-2:~ montx$ gem -v 1.3.5 MacBook-ProII-2:~ montx$ sudo gem install camping WARNING: RubyGems 1.2+ index not found for: http

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
Hi Dave, On 8jun, 2010, at 11:52 , Dave Everitt wrote: Hi Raimon I'm having the same problem with rubygems.org - won't even load in a browser. ok, In February there was a bit of a change: http://update.gemcutter.org/2010/02/20/rubygems-org-move-complete.html Fro current status see

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 11:52 , Dave Everitt wrote: Otherwise, get the bleeding edge version: sudo gem install camping --source http://gems.judofyr.net/ ok, I want to focus on Camping so I've installed the edge version without any problems :-) the problem is when I try to execute some example:

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 11:34 , Magnus Holm wrote: Hey Raimon, Try a `sudo gem update --system` first to upgrade to the latest RubyGems // Magnus Holm MacBook-ProII-2:~ montx$ sudo gem update --system Password: Updating RubyGems Nothing to update MacBook-ProII-2:~ montx$ thanks, r.

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 12:30 , Magnus Holm wrote: I believe Rack::Server was introduced in one of the later Rack versions. Looks like I forgot to update the version dependency. Are you able to install the latest rack (gem install rack), or is rubygems.org fully down? I think is fully down

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 6/8/2010 4:25 AM, Raimon Fernandez wrote: On 8jun, 2010, at 11:52 , Dave Everitt wrote: Otherwise, get the bleeding edge version: sudo gem install camping --source http://gems.judofyr.net/ ok, I want to focus on Camping so I've installed the edge version without any problems

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
Hi David, On 8jun, 2010, at 15:38 , Dave Everitt wrote: Hi Raimon Github is no longer maintaining this but the gems are still there, so try: --source http://gems.github.com do you mean using like this ? MacBook-ProII-2:~ montx$ sudo gem install rack --source http://gems.github.com

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
Hi David, On 8jun, 2010, at 16:59 , Dave Everitt wrote: Hi Raimon I did mean that, but the rubygems site is back up... and it looks like they're making progress as the error messages are changing. ok So maybe try again tomorrow? If I have to wait, I'll wait ... what can I do ? :-) I

Re: First time on Camping

2010-06-08 Thread Raimon Fernandez
Hi Dave, On 8jun, 2010, at 17:04 , David Susco wrote: Camping with reststop ought will make serving the xml files easy enough. The example on github ought to get you started: http://github.com/camping/reststop thanks ! reststop is also a gem for camping ? regards, r.

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
Hi Dave, On 8jun, 2010, at 17:47 , Dave Everitt wrote: Raimon apologies, rack is not listed in the Github gems (http://gems.github.com/list.html). BUT (still trying to get around the rubygems.org gem server issues and get you started with Camping) you can try this mirror: sudo gem

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 18:19 , Dave Everitt wrote: Hi Raimon - welcome, thanks! glad we got around the rubygems.org fail :-) hey, I need more workarounds . :-) I'm playing with Camping and the introduction found in http://camping.rubyforge.org/book/02_getting_started.html Now I'm

Where I can find Reststop-based blog.rb?

2010-06-08 Thread Raimon Fernandez
Hi again, In Reststop docs they say a good example is the blog.rb, but their link is broken. Where I can find it ? thanks, regards, raimon ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: First time on Camping

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 18:43 , David Susco wrote: I don't believe the gem has been updated to include Matt's or Philippe's latest changes. You could clone it from GitHub though and rake and install it yourself. I think it requieres 'hoe' and I can't install without rubygems working or once

Re: First time on Camping

2010-06-08 Thread Raimon Fernandez
: nodename nor servname provided, or not known (http://gems.rubyforge.org/gems/json_pure-1.4.3.gem) MacBook-ProII-2:~ montx$ we have to wait ... thanks, r. Dave On Tue, Jun 8, 2010 at 1:01 PM, Raimon Fernandez co...@montx.com wrote: On 8jun, 2010, at 18:43 , David Susco wrote: I

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 co...@montx.com: 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

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

2010-06-09 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,

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

2010-06-09 Thread Raimon Fernandez
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

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

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
Hi Magnus, On 17jun, 2010, at 21:04 , Magnus Holm wrote: Hey Raimon, I see that you've been experimenting with Camping and Reststop lately, and just thought I should chime in a bit. You definitely don't *need* Reststop in order to achieve what you want, so it might be a good idea to

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
On 17jun, 2010, at 21:04 , Magnus Holm wrote: That's (hopefully) the simplest way to generate XML with Camping. You still need to create a model to store/retrieve the data. Before we can help you here, we need to know a few things: Is it going to fetch data from a specific place, or

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
List.create List::Models.setup! end Until then, you'll have to stick with the current solution :-) // Magnus Holm On Fri, Jun 18, 2010 at 11:09, Raimon Fernandez co...@montx.com wrote: On 17jun, 2010, at 21:04 , Magnus Holm wrote: That's (hopefully) the simplest way

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
Hi again, I know this is more related to builder than to camping, but not sure where to ask for it ... :-) My app receives .xml file from some different sources, and all of them, except the camping one, are formatted like this: ?xml version=1.0 encoding=UTF-8? person nameJim

Re: First time on Camping

2010-06-19 Thread Raimon Fernandez
in other projects that they do not escape those chars ... Thanks! regards, r. // Magnus Holm (from my phone) On Friday, June 18, 2010, Raimon Fernandez co...@montx.com wrote: Hi again, I know this is more related to builder than to camping, but not sure where to ask

Re: First time on Camping

2010-06-19 Thread Raimon Fernandez
, but don't know why the parser doesn't treat it, I'll try to find another XML parser ... thanks, r. // Magnus Holm On Sat, Jun 19, 2010 at 15:53, Raimon Fernandez co...@montx.com wrote: Hi all, On 18jun, 2010, at 17:51 , Magnus Holm wrote: This shouldn't be a problem, because

Re: Speed issue

2010-06-20 Thread Raimon Fernandez
On 18jun, 2010, at 15:34 , Magnus Holm wrote: Oh, and I also have the speed issue! That's definitely a bug. I'll have a look at it later... I'm making some progress with Camping and well, it's impressive, really :-) Wich version can I use that has not the bug for speed issue ? I would

Re: Speed issue

2010-06-21 Thread Raimon Fernandez
On 20jun, 2010, at 23:38 , Raimon Fernandez wrote: On 18jun, 2010, at 15:34 , Magnus Holm wrote: Oh, and I also have the speed issue! That's definitely a bug. I'll have a look at it later... I'm making some progress with Camping and well, it's impressive, really :-) Wich

Re: Speed issue

2010-06-21 Thread Raimon Fernandez
On 21jun, 2010, at 12:56 , Magnus Holm wrote: What if you run Thin with `camping -s thin app.rb`? Do you have the speed issue then? No, with Thin I don't have the speed issue ... thanks, r. Thanks, Magnus On Monday, June 21, 2010, Raimon Fernandez co...@montx.com wrote: On 20jun

Re: Speed issue

2010-06-21 Thread Raimon Fernandez
, regards. r. On Monday, June 21, 2010, Raimon Fernandez co...@montx.com wrote: On 21jun, 2010, at 12:56 , Magnus Holm wrote: What if you run Thin with `camping -s thin app.rb`? Do you have the speed issue then? No, with Thin I don't have the speed issue ... thanks, r

Re: Speed issue

2010-06-22 Thread Raimon Fernandez
Holm On Mon, Jun 21, 2010 at 16:10, Raimon Fernandez co...@montx.com wrote: On 21jun, 2010, at 13:49 , Magnus Holm wrote: Okay, I was just wondering since if you run the app with the thin command, you won't get the reloader. So apparently the issue exists only with the reloader+Mongrel

Re: Updated version of RESTstop and RESTr plus bonus blog post

2010-06-23 Thread Raimon Fernandez
great !!! thanks, r. On 23jun, 2010, at 15:11 , Philippe Monnet wrote: After last week's thread with Raimon, I made a couple changes to RESTstop and RESTr (added JSON support). Both GitHub and RubyGems are up-to-date now. I also ended up writing a blog post on how to implement REST

Relations on Camping

2010-06-25 Thread Raimon Fernandez
Hi, it's me again ... :-) I have one table called people and another one called groups. Each person from people belongs to ONE group. module List::Models class Person Base belongs_to :group end class Group Base end end When I get all persons from people, I expect, like

Re: Relations on Camping

2010-06-25 Thread Raimon Fernandez
in: def self.up create_table :list_groups, :force = true do |t| t.string :name end create_table :list_people, :force = true do |t| t.integer :group_id, :null = false t.string :username end Philippe On 6/25/2010 2:39 AM, Raimon

Installing Camping on ubuntu lucid

2010-08-03 Thread Raimon Fernandez
hi, I'm moving my Camping from OS X to a Ubuntu Lucid unix machine. The camping gem has been successfully installed, but I can't access it directly from the command line. mo...@lucid:/u/apps/portablechecking$ gem list *** LOCAL GEMS *** actionmailer (2.3.8) actionpack (2.3.8) activerecord

Re: Installing Camping on ubuntu lucid

2010-08-03 Thread Raimon Fernandez
hi David, On 3ago, 2010, at 11:33 , Dave Everitt wrote: Hi Raimon use gem intall rather than apt-get - see: http://wiki.github.com/camping/camping/installation yes, I know, this is how I've installed it. BUT it seems you already have Camping 2.0 in your gem list, so what do you see

Using filters

2010-10-03 Thread Raimon Fernandez
Hi, I'm trying to use filters in my Camping App, but at this moment they are not working ... I've found some presentation by Jeremy McAnally (http://slideshow.rubyforge.org/camping.html#1) At the end, appears a Library that makes our life easier, but I can't find this library. Also, this

Re: Forcing a Response Status-Code of 40x

2010-10-03 Thread Raimon Fernandez
Thanks John Magnus, Where I can find more info about those little magic :-) Also, I was calling from the wrong place, in a helper it is not working, but works if I call from a Controller. thanks again, regards, r. On 3oct, 2010, at 18:22 , John Beppu wrote: @status = 404 On

Re: Forcing a Response Status-Code of 40x

2010-10-03 Thread Raimon Fernandez
// Magnus Holm On Sun, Oct 3, 2010 at 22:47, Raimon Fernandez co...@montx.com wrote: Thanks John Magnus, Where I can find more info about those little magic :-) Also, I was calling from the wrong place, in a helper it is not working, but works if I call from a Controller

Re: Using filters

2010-10-04 Thread Raimon Fernandez
we can call them as methods. There is some precedence in order ? thanks, r. On 4oct, 2010, at 11:39 , Raimon Fernandez wrote: Hi, In my main Camping module I'm including the views: include Views # We include the Views module so we can call them as methods. My controllers