Re: Using filters

2010-10-04 Thread Raimon Fernandez
le so 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 th

Re: Using filters

2010-10-04 Thread Raimon Fernandez
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 call those views directly, as I'm generating always .xml responses, never .html If I remove the Include Views the filters work as expected, bu

Re: Forcing a Response Status-Code of 40x

2010-10-03 Thread Raimon Fernandez
pi.html#class-Camping-Controllers > > // Magnus Holm > > > On Sun, Oct 3, 2010 at 22:47, Raimon Fernandez wrote: > Thanks John & Magnus, > > > Where I can find more info about those little magic > > :-) > > Also, I was calling from the wrong pla

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 3o

Forcing a Response Status-Code of 40x

2010-10-03 Thread Raimon Fernandez
Hi again, I'm trying to force a different Response Status-Code when some situations occur. Once again, in Rails I just use the :status => 404 and that's all ... Here, I suppose I must use the @headers[] but I'm always getting the 200 Status OK. I'm not sure wich name exactly the header must be

Re: Using filters

2010-10-03 Thread Raimon Fernandez
ilter logic > end > > Note you can also use a lambda: > > myblock1 = lambda { Camping::Models::Base.logger.debug "hello - before > (Index)" } > before :Index , &myblock1 > > One of these days I'll write a post on that. ;-) > > Philippe

Re: Using filters

2010-10-03 Thread Raimon Fernandez
Hi, Finally I could remember the great Blog camping, where are some filters that do what I want ... thanks, r. On 3oct, 2010, at 13:21 , Raimon Fernandez wrote: > Hi, > > > I'm trying to use filters in my Camping App, but at this moment they are not > working ...

Re: Using filters

2010-10-03 Thread Raimon Fernandez
On 3oct, 2010, at 16:02 , Jenna Fox wrote: > Maybe it'd work if you set your clock correctly? > > Worth a shot. I'm a programmer of the future ... :-))) back to reality, we are in 2010 ... r. > > — > Jenna > > > On 03/10/2010, at 10:21

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 pr

[solved]Re: nginx + thin + camping => adapter not found

2010-08-08 Thread Raimon Fernandez
hi, well, finally all is working fine ... there were some problems with thin configuration file and one missing require 'rubygems' in the config.ru file, that curiosly, it was not necessary when starting thin manually ... thanks, r. On 6ago, 2010, at 18:49 , Raimon Fernandez wro

Re: nginx + thin + camping => adapter not found

2010-08-06 Thread Raimon Fernandez
and my thin version: thin 1.2.7 codename No Hup and camping version: 2.0 still no idea why it is not working ... thanks, r. On 6ago, 2010, at 09:57 , Raimon Fernandez wrote: > here's is my config.ru > > require 'list' > List.create if List.respond_to?(:creat

Re: nginx + thin + camping => adapter not found

2010-08-06 Thread Raimon Fernandez
here's is my config.ru require 'list' List.create if List.respond_to?(:create) # call List.create if it exists run List # and run the app! On 6ago, 2010, at 09:52 , Raimon Fernandez wrote: > Hi again, > > > I've moved my Camping app from my developer

nginx + thin + camping => adapter not found

2010-08-06 Thread Raimon Fernandez
Hi again, I've moved my Camping app from my developer machine to my deployment machine, a lucid linux. I use nginx + thin on all my RoR, and I want to use the same setup for my Camping app. In the log of thin I have this error: "No adapter found for /u/apps/portablechecking" If I go to /u/a

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 >

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 (2

Re: Relations on Camping

2010-06-25 Thread Raimon Fernandez
hi, it's working with and without it, but you are right that must be there ... thanks! r. On 25jun, 2010, at 13:52 , Matt Zukowski wrote: > you need to add `has_many :people` to your Group class > > >> On 2010-06-25 4:03 AM, "Raimon Fernandez" w

Re: Relations on Camping

2010-06-25 Thread Raimon Fernandez
t.string :username > end > > Philippe > > On 6/25/2010 2:39 AM, Raimon Fernandez wrote: >> >> Hi, it's me again ... >> >> :-) >> >> >> I have one table called people and another one called groups. >> >> Each pe

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: 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 se

Re: Speed issue

2010-06-22 Thread Raimon Fernandez
has some rows that I fetch ... thanks, regards, r. > > // Magnus Holm > > > > On Mon, Jun 21, 2010 at 16:10, Raimon Fernandez wrote: >> >> On 21jun, 2010, at 13:49 , Magnus Holm wrote: >> >>> Okay, I was just wondering since if you run the app with t

Re: Speed issue

2010-06-21 Thread Raimon Fernandez
in the app.rb file ? thanks, regards. r. > > On Monday, June 21, 2010, Raimon Fernandez 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? >&g

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 wrote

Re: Speed issue

2010-06-20 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

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 woul

Re: First time on Camping

2010-06-19 Thread Raimon Fernandez
parser > should handle it and treat every á as á. yes, 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 wrote: >> Hi al

Re: First time on Camping

2010-06-19 Thread Raimon Fernandez
And also I'm using other C libraries 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 wrote: >> Hi again, >> >> I know this is m

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: Jim Fernández 555-1234 but camping is formatting like

Re: First time on Camping

2010-06-18 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... u, I was thinking it was my code ... :-) thanks ! regards, r. > > On Friday, June 18, 2010, Raimon Fernandez wrote

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
to a database which already has the > tables, DON'T run `List::Models.create_schema` as this will probably > delete the whole database. General rule: you only need migrations to > setup the database. > > -- > > And thirdly: Yes, we are aware of that the migration suppor

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
On 18jun, 2010, at 10:25 , Dave Everitt wrote: > Rubygems.org was playing up recently (gems.rubyforge.org forwards to it - see > previous posts), and this looks like the same issue... Dave E. > >> Something's not right with your rubygems install maybe try `gem update >> --system` first?

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

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

2010-06-14 Thread Raimon Fernandez
n, 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 fix

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

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

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

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

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

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,

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.

Re: First time on Camping

2010-06-08 Thread Raimon Fernandez
ror: getaddrinfo: 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 wrote: >> >> On 8jun, 2010, at 18:43 , D

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 aga

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 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 readi

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: > >

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 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 ? :-

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 E

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
n the next post related. thanks, r. > > Philippe > > 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 htt

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 13:19 , Dave Everitt wrote: > Rubygems still down. Rack 1.1 on Github: > > http://github.com/rack/rack.git thanks, How I cann add this repository to gem ? Currently I have: - REMOTE SOURCES: - http://gems.rubyforge.org/ I want to add: MacBook-ProII-2:~ montx$ sudo

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 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 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
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

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 > WAR

First time and first error

2010-06-08 Thread Raimon Fernandez
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://gems.rubyforge.org/ RubyGems will revert to legacy indexes degradi

First time on Camping

2010-06-07 Thread Raimon Fernandez
hi list, This is my first time here, my first time reading seriously something about Camping. I need to create a very simple web server for serving only .xml files, extracted from a sqlite database with some queries. I'm quite comfortable with Ruby on Rails, but it would be too much for this