Re: The 2.2 release

2014-09-06 Thread Magnus Holm
:; http://rubyforge.org/mailman/listinfo/camping-list -- // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: first app - some questions

2014-06-09 Thread Magnus Holm
-- // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: app doesn't run on windows

2014-06-07 Thread Magnus Holm
be created? regards, seba -- // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: first app - some questions

2014-06-07 Thread Magnus Holm
the server know how to set. It's impossible for the client to set its own session; every session has to be set through the @state-variable in an action. I hope this clarifies state/sessions a bit. Don't hesitate to ask more if you're confused. // Magnus -- // Magnus Holm

Re: multi-line input field

2014-05-12 Thread Magnus Holm
-- // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: views - html form duplication

2014-04-24 Thread Magnus Holm
On Thu, Apr 24, 2014 at 10:08 PM, Sebastjan Hribar sebastjan.hri...@gmail.com wrote: Hi, I have a question about duplicating a html form in my views. To create a new review form in the app I've composed a html form which is a table and I've ended up with 200+ lines of code due to table row

Re: first app - some questions

2014-04-22 Thread Magnus Holm
On Mon, Apr 21, 2014 at 7:32 PM, Sebastjan Hribar sebastjan.hri...@gmail.com wrote: Hi, I've updated the gist with my next version: https://gist.github.com/sebastjan-hribar/11081389 It works as I wanted but for now I left out the styling. My question is, is this the correct way of setting

Re: camping tutorial pre-2

2014-04-16 Thread Magnus Holm
Do you have the exact code you've entered? You can use https://gist.github.com/ to share it. // Magnus Holm On Wed, Apr 16, 2014 at 1:14 PM, Sebastjan Hribar sebastjan.hri...@gmail.com wrote: Hi Guys, I found this pre-2 tutorial on the ruby-camping-links.1.ai site: http://polzr.blogspot.com

Re: Mab::Mixin::Error This tag is already closed

2014-01-24 Thread Magnus Holm
Interesting. Could you post the personnes_list template? // Magnus Holm On Fri, Jan 24, 2014 at 12:51 PM, Francois Sery sery.franc...@gmail.com wrote: Bonjour, it's me again. Deploying a camping app on amazon ec2 i have a Mab::Mixin::Error at /admin/personnes This tag is already closed

Re: camping app on elastic beanstalk

2014-01-17 Thread Magnus Holm
Do you actually call App.create? Camping will not do this for you automatically (unless you're using the Camping Server, aka bin/camping). // Magnus Holm On Fri, Jan 17, 2014 at 9:07 AM, Francois Sery sery.franc...@gmail.com wrote: Bonjour, here is my app code and the trace. thanks for your

Re: Multiple camping apps in the same rackup?

2014-01-01 Thread Magnus Holm
Yes: map http://example.com; do run App end // Magnus Holm On Wed, Jan 1, 2014 at 7:16 AM, Tim Uckun timuc...@gmail.com wrote: Can you match on top level domains? On Wed, Jan 1, 2014 at 1:05 AM, Magnus Holm judo...@gmail.com wrote: Sorry for the late reply. The easiest way is to use

Re: how do i customize the 404 campin problem page?

2013-12-31 Thread Magnus Holm
Sorry for the late reply. Here's how you override the 404: module YourApp def r404(path) My custom 404 end end // Magnus Holm On Tue, Dec 10, 2013 at 12:32 PM, Francois Sery sery.franc...@gmail.com wrote: Bonjour, one more newbie question: how do i customize the 404 campin problem

Re: Camping without markaby.

2013-12-22 Thread Magnus Holm
This should work: Camping.goes :Xmas module Xmas::Controllers class Index def get render :index end end end __END__ @@ index.erb Hello %= 'world' % // Magnus Holm On Sun, Dec 22, 2013 at 10:26 PM, Tim Uckun timuc...@gmail.com wrote: How can I use something other than

Re: how to handle 4K session in camping

2013-12-10 Thread Magnus Holm
On Mon, Nov 4, 2013 at 8:55 PM, låzaro ad...@lex-sa.cu wrote: Sorry for the thread hacking but, how could be run camping as standalone CGI -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. You can use Rack: app.cgi: #!/usr/bin/env ruby require 'rack' require

Re: how to handle 4K session in camping

2013-12-06 Thread Magnus Holm
You should not store a large amount of data in the session. The session is stored in a cookie, and everything you store there has to be sent back and forth over the network. You can however store an ID in the session and lookup data in your database. // Magnus Holm On Tue, Dec 3, 2013 at 12:04

Re: Omniauth and rack middleware

2013-10-24 Thread Magnus Holm
Hi Francois, Just use `MyApp.use`: Camping.goes :Nuts module Nuts use OmniAuth::Builder do provider :facebook, 'FACEBOOK_ID', 'FACEBOOK_SECRET' end end // Magnus Holm On Tue, Oct 22, 2013 at 9:11 AM, Francois Sery sery.franc...@gmail.comwrote: Bonjour I m new to rack middleware

Re: mounting multiples app

2013-05-22 Thread Magnus Holm
You need to create a custom config.ru: config.ru: require_relative 'app1' require_relative 'app2' map '/app1' do run App1 end map '/app2' do run App2 end // Magnus Holm On Wed, May 22, 2013 at 2:05 PM, låzaro netad...@lex-sa.cu wrote: Hi, I trying to mount an App but with separetaed

Re: charset for french words

2013-03-29 Thread Magnus Holm
You can re-define the #service-method which will be invoked on every request, and there set the correct charset: Camping.goes :Nuts module Nuts def service(*) @headers['Content-Type'] = 'text/html; charset=utf-8' super end end // Magnus Holm On Fri, Mar 29, 2013 at 2:58 PM

Re: Add Rake Middleware

2013-03-28 Thread Magnus Holm
Sure: Camping.goes :Noes module Noes use Rack::Foobar end On Thursday, March 28, 2013, curtis bissonnette wrote: Is there a simple way to add some Rake middleware to the camping server? Specifically I'm hoping to include sass and coffee-script support server side. -- // Magnus Holm

Re: modify the way active record Pluralize/singularize

2013-03-22 Thread Magnus Holm
://api.rubyonrails.org/classes/ActiveSupport/Inflector/Inflections.html // Magnus Holm On Fri, Mar 22, 2013 at 2:16 PM, Francois Sery sery.franc...@gmail.com wrote: hello, i'm new to Camping and i dont speek english very well so , please, forgive my mistakes...here is my question: i want to modify

Re: Apache Passenger and Reloader

2013-01-03 Thread Magnus Holm
On Wed, Jan 2, 2013 at 7:02 PM, Koaps Freeman koapsfree...@gmail.com wrote: Hi Guys, I just started playing with camping and so far it's pretty awesomo. After much messing around I was finally able to get Apache Passenger, Camping and ActiveRecord to PostgreSQL working. One thing I was

Re: Feature: Inline templates?

2012-08-15 Thread Magnus Holm
/style.css * { margin: 0; padding: 0 } // Magnus Holm On Wed, Aug 15, 2012 at 4:44 PM, Jenna Fox a...@creativepony.com wrote: What makes this better than a here doc? — Jenna On Wednesday, 15 August 2012 at 6:18 PM, judo...@gmail.com wrote: It's been implemented here: https://github.com/camping

Re: ChillDB License

2012-05-02 Thread Magnus Holm
On Wed, May 2, 2012 at 3:00 PM, Jenna Fox a...@creativepony.com wrote: This is very helpful! I don't really mind though. Maybe public domain is best. I'm not a big believer in copyright. Public domain is people can do whatever they want with it. BSD is people can do whatever they want with it,

Re: framework size, forking etc.

2012-04-18 Thread Magnus Holm
On Wed, Apr 18, 2012 at 15:07, Daniel Bryan danbr...@gmail.com wrote: Thought I'd weigh in for what it's worth, Thanks, I find it very interesting. My naive first impression of Camping basically took no notice of the whole 3/4k thing. I appreciate that it's a cool programming feat, and I love

Re: framework size, forking etc.

2012-04-18 Thread Magnus Holm
On Wed, Apr 18, 2012 at 17:49, Jenna Fox a...@creativepony.com wrote: I think the trouble with streaming over the rack interface is that it's confusing. I'm fairly good at ruby, but I'm not entirely sure how it would even work. I guess I need to run my app in a threaded web server, running

Re: framework size, forking etc.

2012-04-16 Thread Magnus Holm
On Mon, Apr 16, 2012 at 22:14, Nokan Emiro uzleep...@gmail.com wrote: 2012/4/16 Bartosz Dziewoński matma@gmail.com W dniu 16 kwietnia 2012 20:50 użytkownik Nokan Emiro uzleep...@gmail.com napisał: Actually I think it's not logical that you can build HTML by default using Markaby, but

Re: http_referrer

2012-04-15 Thread Magnus Holm
On Sat, Apr 14, 2012 at 10:38, Dave Everitt dever...@innotts.co.uk wrote: Haha! How did you get Spock on board... :-) I must admit I'm a little confused about the sytnax for environmental variables, because as well as   @env[HTTP_REFERER] this also works:   ENV['SCRIPT_NAME'] For a test I

Re: Camping's URL mapping system

2012-04-12 Thread Magnus Holm
On Thu, Apr 12, 2012 at 15:59, Jenna Fox a...@creativepony.com wrote: The problem is basically this: Sometimes you want to reference static files, and other components of your site. I have a Gallery app mounted at http://creativepony.com/gallery/ and it causes me all sorts of trouble. Often

Re: ~ AppController

2012-04-07 Thread Magnus Holm
You can override #service: module App def service(*args) p({:controller = self.class, :method = @method, :args = args}) p :before super ensure p :after end end // Magnus Holm On Sat, Apr 7, 2012 at 18:11, Nokan Emiro uzleep...@gmail.com wrote: Hi, What's the nice

Re: http_referrer

2012-04-06 Thread Magnus Holm
Try @request. // Magnus Holm On Friday 6. April 2012 at 16:27, Nokan Emiro wrote: I'm sorry bothering you, it was there in env, env['HTTP_REFERER']. (But it still would be useful sometimes to access the Rack's Request object...) On Fri, Apr 6, 2012 at 3:01 PM, Nokan Emiro uzleep

Re: http_referrer

2012-04-06 Thread Magnus Holm
It should be in @env: @env['HTTP_REFERER'] (Note that it's misspelled in the spec) // Magnus Holm On Friday 6. April 2012 at 15:01, Nokan Emiro wrote: Hi, How can I access the Rack request object in a controller? I need to know the HTTP_REFERRER, but I can't find it in env. (I'm

Re: Camping Multimount

2012-02-18 Thread Magnus Holm
On Fri, Feb 17, 2012 at 22:13, Isak Andersson icepa...@lavabit.com wrote: Hi, sorry if I'm repeating is email or something, Cinnamon crashed as I was sending the mail and the result in the sent folder was completely empty, so I'm just gonna have to write it all over again, wee! Anyways, my

Re: +1 shorter domain name

2012-02-01 Thread Magnus Holm
On Wed, Feb 1, 2012 at 04:18, adam moore nerdf...@gmail.com wrote: I've recently been using Arch linux and 90% of the appeal comes from their awesome user-led wiki.. Something which we can gradually add to, build on camping of course, and which hand-holds beginners would be ideal I think The

Mab is pretty much done

2012-01-15 Thread Magnus Holm
end body do div.wrapper! do yield end end end end end // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

New reloader

2012-01-15 Thread Magnus Holm
at /. (If you named the file app2.rb, App2 would be mounted). If you need the previous functionality, just create a config.ru: map '/app' do run App end map '/app2' do run App2 end This gives you more control and can be reused by other servers (Thin, Passenger) etc. // Magnus Holm

Re: Mab: The tiny Markaby-alternative

2011-12-20 Thread Magnus Holm
2011/12/19 Bartosz Dziewoński matma@gmail.com: 2011/12/19 Magnus Holm judo...@gmail.com: The real question here is: Should it be a part of camping/mab.rb or the Mab-gem? I'm definitely for adding many features (indentation, attribute-validation, flow-validation), but not in Camping

Remove camping app.rb app2.rb support?

2011-12-20 Thread Magnus Holm
I think the ability to load multiple Camping apps at once makes things a lot more difficult (e.g. how to deal with static files). Does anyone actually use this feature? // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http

Re: Mab: The tiny Markaby-alternative

2011-12-19 Thread Magnus Holm
2011/12/18 Bartosz Dziewoński matma@gmail.com: I don't have time to look thru now, but it doesn't seem to support boolean attributes (e.g. `input checked:true` should render input checked=checked /)? I was very much missing this feature in old Markaby, and finally even wrote a patch, as

Re: Markaby license issue

2011-12-19 Thread Magnus Holm
On Mon, Dec 19, 2011 at 19:10, Dave Everitt dever...@innotts.co.uk wrote: Magnus: this commit implements a tiny and fast Markaby-alternative (called Mab) ... it's completely inline in camping/mab.rb, but it should be fairy easy to create another Rubygem where we could implement for advanced

Plan for 2.2

2011-12-19 Thread Magnus Holm
- I've been rewriting the Reloader/Server code a bit to support rackup-files too. I want to merge that. - Resolve the Markaby-thingie. - Figure out how to deal with static files (see other thread). - Figure out how to handle extensions to Camping (see other thread). Anything else? // Magnus Holm

Camping Server: automatically serve static files from public/

2011-12-19 Thread Magnus Holm
multiple applications? camping app.rb app2.rb And should files be served from where it's located or where it's run? app.rb # = contains `require app2` app/public/foo.html app2.rb # = the actual app app2/public/foo.html Should /foo.html be served from app/public or app2/public? // Magnus

Re: Markaby license issue

2011-12-18 Thread Magnus Holm
On Sun, Dec 18, 2011 at 02:47, Steve Klabnik st...@steveklabnik.com wrote: A wild project appears: http://krainboltgreene.github.com/dapper-dan/ Some problems: * It doesn't support CSS proxy (div.wrapper! { … ] == div(:id = 'wrapper') { … }) * It doesn't escape stuff * It doesn't specify its

Mab: The tiny Markaby-alternative

2011-12-18 Thread Magnus Holm
https://github.com/camping/camping/pull/50 Right now it's completely inline in camping/mab.rb, but it should be fairy easy to create another Rubygem where we could implement for advanced features (indentation, AJAX-stuff, whatever). // Magnus Holm

Re: Camping.use Before, Rack::File.new('public')

2011-12-17 Thread Magnus Holm
2011/12/16 Bartosz Dziewoński matma@gmail.com: I usually just use Rack::Static: module App  use Rack::Static, :urls = ['/static'] end This would serve ./static/jquery.js at localhost:3301/static/jquery.js, though - with the directory included in URL - but will also serve files from

Markaby license issue

2011-12-17 Thread Magnus Holm
that explicitly says the license) related to Markaby, please let us know! If not, I'm wondering what we should do. I don't think that _why would really care if people brought his libraries forward, but I kinda get an uneasy feeling about this. // Magnus Holm

Camping.use Before, Rack::File.new('public')

2011-12-16 Thread Magnus Holm
for serving static stuff in development mode (Rack::File will serve files from the 'public' directory if it matches the URL; e.g. ./public/jquery.js will be available at localhost:3301/jquery.js) Maybe we should add it to camping.rb? // Magnus Holm

Re: Camping goes heroku. Hopefully.

2011-11-14 Thread Magnus Holm
On Mon, Nov 14, 2011 at 19:44, Steve Klabnik st...@steveklabnik.com wrote: Just remember that the free version of Heroku doesn't include database support. Whaaa? Since when? http://www.heroku.com/pricing#0-0 says you get 5MB for $0. Hm… Really? It seems I got the wrong impression after their

Re: Passenger, Rack and __END__ error

2011-10-14 Thread Magnus Holm
right. This will probably never work, though: [http://pastie.org/2693243] – Matthias Woah, I never realized that __END__ was valid on its own line inside a heredoc/string… ___ Camping-list mailing list Camping-list@rubyforge.org

Re: which view am I inside?

2011-10-14 Thread Magnus Holm
On Thu, Oct 13, 2011 at 23:36, Nokan Emiro uzleep...@gmail.com wrote: My question was about the layout.  Suppose that Alfa and Beta are menu items in the layout, and I want to mark the current menu item with different appearance: module App::Views   def layout     case .  #--- Which

Re: Camping into production

2011-10-13 Thread Magnus Holm
On Wed, Oct 12, 2011 at 22:20, Nokan Emiro uzleep...@gmail.com wrote: It seems to me that PATH_INFO is still not properly handled, but that it's always empty. You are right, PATH_INFO is always empty.  If I fill it with the $SCRIPT_NAME value, controllers can be accessed again.  But links

Re: Camping into production

2011-10-13 Thread Magnus Holm
On Thu, Oct 13, 2011 at 21:16, Nokan Emiro uzleep...@gmail.com wrote: SCRIPT_NAME is the mount-path. PATH_INFO is the internal app-path. So if you want your application available at xxx.com/my_app/, then the request xxx.com/my_app/add will look like this:  SCRIPT_NAME=/my_app  

Re: how to catch 404s?

2011-10-13 Thread Magnus Holm
the method. // Magnus Holm On Thu, Oct 13, 2011 at 21:25, Nokan Emiro uzleep...@gmail.com wrote: How can I hide/catch the Camping problem! /xxx not found pages? It would be great to define my own handler instead, or simply redirect to the root of my app

Re: run my Camping app as a Rack app

2011-10-12 Thread Magnus Holm
On Tue, Oct 11, 2011 at 18:21, Nokan Emiro uzleep...@gmail.com wrote: Thanks for the explanation. I have had the create method in my application, it calls Models::create_scheme, because I have migrations too. (Everything encapsulated, that's what I like about Camping.) Actually the problem

Re: Camping into production

2011-10-12 Thread Magnus Holm
On Wed, Oct 12, 2011 at 21:07, Nokan Emiro uzleep...@gmail.com wrote: Thanks!   I had to hack a bit in camping-2.1.469.gemspec, but now it works. I'm sorry to say this but it still does not work.  :(    I was incautious. After the redirect it shows the right URL in the browser.  That's

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 09:02, Nokan Emiro uzleep...@gmail.com wrote: Hi, As you already know I'm working on turning my Camping app into production.  Unfortunatelly I find lots of problems on my way. The next one is here: My Camping app does something dirty on the 'redirect CtrllerName'

Re: run my Camping app as a Rack app

2011-10-11 Thread Magnus Holm
On Sun, Oct 9, 2011 at 15:43, Nokan Emiro uzleep...@gmail.com wrote: Hi, Could you please show me the preferred/nicest way to run my Camping application as a Rack all?  I like doing my work in Rack because it's easy to run my app in a standalone webserver, or mount it to a path in my

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 18:00, Nokan Emiro uzleep...@gmail.com wrote: Sensiteve parts are masked with ***. http://pastie.org/2676396 u. Thanks. This is a bug in Camping which has been fixed in 5423c7a0. You can install the latest development version of Camping by running: gem

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 20:46, Nokan Emiro uzleep...@gmail.com wrote: Thanks!   I had to hack a bit in camping-2.1.469.gemspec, but now it works. :) u Damn, I hate these issues with YAML and gemspecs :/ I uploaded a new version that hopefully will install nicely on 1.8 too. Could you try to

Re: Simplest easiest rss feeds?

2011-10-05 Thread Magnus Holm
On Wed, Oct 5, 2011 at 02:20, Jenna Fox a...@creativepony.com wrote: I'm looking to make rss feeds of some of my controller data - what's the simplest way to render some? Is there some way I can feed a json-like arrays of hashes type of structure in to some gem and get out an xml feed? Would it

Re: Helpers and R() routes

2011-10-05 Thread Magnus Holm
I've added a failing test: https://github.com/camping/camping/commit/7aa0e1fa934806f964ad120c1b4bb21783c7e008 Will look into it later :-) // Magnus Holm On Wed, Oct 5, 2011 at 03:34, Jenna Fox a...@creativepony.com wrote: It'd be cool if in the next version of camping, you could use R

Re: Maintenance release of 2.1

2011-10-03 Thread Magnus Holm
On Sun, Oct 2, 2011 at 14:26, Jenna Fox a...@creativepony.com wrote: I wouldn't bother with reducing the revision number. If anything having weirdly high ones makes the project seem more alive and active. Is the minor number even functionally useful here? Maybe we should ditch that and just

Re: Feature: Simple controllers?

2011-10-02 Thread Magnus Holm
2011/9/24 Bartosz Dziewoński matma@gmail.com: So, are we reverting it? It's still in the latest GitHub commit. I've reverted it. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Maintenance release of 2.1

2011-10-02 Thread Magnus Holm
REV to number of commits since previous release, simply to avoid some high revision numbers. Thoughts? Okay with a little maintenance release? Okay with some undocumented experimental features? Okay with REV? Okay with decreasing REV a bit= // Magnus Holm

Re: Feature: Inline templates?

2011-10-02 Thread Magnus Holm
2011/9/24 Bartosz Dziewoński matma@gmail.com: A comment after some time: I'd appreciate it more if I could just have one external file with all the templates, and one with the Camping code, and I could link in the templates to parse using this mechanism. This works, although it's kinda

Re: failing test

2011-09-24 Thread Magnus Holm
Pretty sure this is related to incompatability with the latest Rack (which suddenly slightly broke the Session-API). It's fixed in latest master. Maybe we should just do a release soon. // Magnus Holm On Sat, Sep 24, 2011 at 22:22, Paul van Tilburg p...@luon.net wrote: Hi! I am

Re: What is the Best Way to Install Camping in 2011?

2011-09-07 Thread Magnus Holm
On Wed, Sep 7, 2011 at 16:00, Ed Heil edh...@fastmail.fm wrote: And that turned out to be fixable with a global search and replace of 00:00:00.0Z to in my gemspecs.  Rock. :) Great! Feel free to bother us more if you encounter more problems :)

Re: Using CouchDB in Camping - looking for advice

2011-08-30 Thread Magnus Holm
On Mon, Aug 29, 2011 at 05:39, Daniel Bryan danbr...@gmail.com wrote: Woah, that sounds pretty cool. Are you using RubyParser or Ripper? Neither. I'm using sourcify ( http://rubydoc.info/gems/sourcify/0.5.0/frames ) to convert blocks into an S Expression, and then my own library to parse

Re: Feature: Inline templates?

2011-08-26 Thread Magnus Holm
On Aug 26, 2011 6:42 PM, Bartosz Dziewoński matma@gmail.com wrote: If this only supports Erb, then we should throw it away as fast as possible ;) I see no reason why would anyone want to use something *that* dinosauric in a new project. If it also supports (or can support), say, Haml,

Re: Advice on strategy for maintaining state in Camping

2011-08-25 Thread Magnus Holm
On Thu, Aug 25, 2011 at 15:25, Anders Schneiderman aschneider...@gmail.com wrote: Hi, I need a little advice about maintaining state in Camping. Uh oh. Maintaining complex state is *always* a hassle, regardless of language and framework… The general way of maintaing state is using session

Feature: Simple controllers?

2011-08-25 Thread Magnus Holm
I just pushed a new feature to Camping: Simple controllers. module App::Controllers get '/(.*)' do |name| Hello #{name} end end What do you think? Useful? Or should I revert it? It currently costs us 87 bytes. // Magnus Holm

Re: Feature: Simple controllers?

2011-08-25 Thread Magnus Holm
On Thu, Aug 25, 2011 at 21:28, David Susco dsu...@gmail.com wrote: Would you have to write the RE for every declaration? ie...  module App::Controllers   get '/(.*)' do |name|     Hello #{name}   end   put '/(.*)' do |name|     Hello #{name}   end  end That wouldn't work. Camping

Re: anyone run into this activerecord error before?

2011-05-24 Thread Magnus Holm
It seems that you need to establish a connection *before* you write your models. Doesn't seem to be a way around it :/ // Magnus Holm On Tue, May 24, 2011 at 19:53, David Susco dsu...@gmail.com wrote: Not really Camping specific, but I've always had better luck asking on this list than any

Re: update breaks hello clock?

2011-05-18 Thread Magnus Holm
A better solution is to actually upgrade to 1.8.7 (which is actively maintained) // Magnus Holm On Wed, May 18, 2011 at 18:15, Dave Everitt dever...@innotts.co.uk wrote: Thanks Magnus  - downgraded Rack to 1.2.0 after trying Git version. For the benefit of anyone else reading this: Tried

Re: Strange error with no stack trace

2011-01-21 Thread Magnus Holm
but not on Heroku. Also, try to evaluate this on Heroku's console: filename[/\.(\w+)$/,1] (where filename is the filename of the index template). -- // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping

Strange error with no stack trace

2011-01-21 Thread Magnus Holm
but not on Heroku. Also, try to evaluate this on Heroku's console: filename[/\.(\w+)$/,1] where filename is the filename of the index template. -- // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping

Strange error with no stack trace

2011-01-21 Thread Magnus Holm
___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Strange error with no stack trace

2011-01-20 Thread Magnus Holm
} end raise end end Maybe that gives you any clues! // Magnus Holm On Thu, Jan 20, 2011 at 06:14, adam moore nerdf...@gmail.com wrote: Hello there! Been loving getting stuck in creating bits bobs with this wonderful little framework. Had a go at making a listing of a bunch

Re: Rubyconf

2010-11-12 Thread Magnus Holm
I'm unfortunately not at RubyConf :-( Maybe next year? // Magnus Holm On Thu, Nov 11, 2010 at 17:12, Dave Everitt dever...@innotts.co.uk wrote: Anyone going to http://rubyconf.org/ wearing a 'Camping' t-shirt? ___ Camping-list mailing list

Re: First Contact and a few doubts

2010-11-07 Thread Magnus Holm
' // Magnus Holm On Sun, Nov 7, 2010 at 14:16, Marcos Ricardo marc_...@hotmail.com wrote: Hi Folks, This is my first contact, and I have a few doubts. 1 - I was looking for a specific subject (see below), but couldn't find a way to search the list by topic. Does this list have a search function

Re: Forcing a Response Status-Code of 40x

2010-10-03 Thread Magnus Holm
@status = 404 // Magnus Holm On Sun, Oct 3, 2010 at 18:09, Raimon Fernandez co...@montx.com wrote: 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

Re: Forcing a Response Status-Code of 40x

2010-10-03 Thread Magnus Holm
There's some info about the request/response here: http://camping.rubyforge.org/api.html#class-Camping-Controllers // 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

Re: making create environmentally aware

2010-08-24 Thread Magnus Holm
Why don't add this? def App.create(env = :development) end And in production, you can call App.create(:production) yourself. // Magnus Holm On Tue, Aug 24, 2010 at 15:36, David Susco dsu...@gmail.com wrote: Not talking about having it recycle (I assume all Camping apps have a small

Re: making create environmentally aware

2010-08-24 Thread Magnus Holm
What about this: def App.create(env = (ENV['CAMPING_ENV'] || :development)) end Then you can simply set ENV['CAMPING_ENV'] = test before loading any tests. // Magnus Holm On Tue, Aug 24, 2010 at 16:21, David Susco dsu...@gmail.com wrote: Ya, that's what I'm doing. Just wondering

Re: Oh, whywentcamping.com!

2010-08-24 Thread Magnus Holm
), and somehow tag them as Ruby for whywentcamping.com We should probably update the RDoc template at camping.rubyforge.org, but I'm also open for re-thinking the reference section all-together. Is it really useful in its current form? // Magnus Holm On Tue, Aug 24, 2010 at 15:31, Jenna Fox

Re: FireFox fix for the camping.js file on the http://camping.rubyforge.org/api.html page

2010-08-22 Thread Magnus Holm
http://github.com/camping/camping/blob/master/extras/rdoc/generator/template/flipbook/js/camping.js Feel free to push directly to camping/camping :-) // Magnus Holm On Sun, Aug 22, 2010 at 17:24, Philippe Monnet r...@monnet-usa.com wrote: The API page does not work in terms of display

Re: two security questions

2010-08-12 Thread Magnus Holm
Rack::Csrf.csrf_token(@env) end end end Notice that you'll have to reverse the `use`-lines. Maybe we should file that as a bug? Since it works the other way both in Rackup files and Sinatra? // Magnus Holm On Wed, Aug 11, 2010 at 21:33, David Susco dsu...@gmail.com wrote

Re: two security questions

2010-08-10 Thread Magnus Holm
Great; sorry for the delay, but I've been here in the last days :-) http://upload.wikimedia.org/wikipedia/commons/b/bd/Preikestolen_Norge.jpg // Magnus Holm On Tue, Aug 10, 2010 at 22:50, David Susco dsu...@gmail.com wrote: Thanks, that did the trick. Got to comb through my templates now

Re: Reloading in a standard config.ru rack app (Camping 2.0)

2010-08-01 Thread Magnus Holm
! // Magnus Holm 2010/8/1 Omar Gómez omar.go...@gmail.com: Dear Camping ninjas, I've been using Camping via bin/camping and reloading works as expected OK. What I have not been able to do is to correctly setup a Camping app with reloading support in a standard config.ru rack app. Thanks

Multiple inserts in ActiveRecord

2010-07-31 Thread Magnus Holm
].compact.map(:full_messages).flatten render :errors else redirect Login end But I'm wondering if there's a better way to solve this? // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: Camping on StackOverflow

2010-07-25 Thread Magnus Holm
I've asked some of them (even though they are several months olds) and have also subscribed to the camping-tag. I'll try to automatically forward them to the camping-list :-) // Magnus Holm On Sun, Jul 25, 2010 at 12:53, Dave Everitt dever...@innotts.co.uk wrote: Camping has a new user

API documentation good enough?

2010-07-08 Thread Magnus Holm
://www.sinatrarb.com/intro.html // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Wiki vs homepage

2010-07-08 Thread Magnus Holm
doesn't need to be more than a single page. What'd ya think? // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Camping 2.1 and whywentcamping.com

2010-06-30 Thread Magnus Holm
own too. // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Access to github.com/camping

2010-06-30 Thread Magnus Holm
you would like to host under github.com/camping, just ask on the mailing list and we'll create a repo for you. (This should be added to the wiki in the near future) // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http

Re: Camping 2.1 and whywentcamping.com

2010-06-30 Thread Magnus Holm
Awesome domain name! And as long as you include the image, it probably makes sense for new people too. You know, the password to the camping github account was actually littlewheels :-) // Magnus Holm On Wed, Jun 30, 2010 at 15:03, Sean Busbey s...@manvsbeard.com wrote: kylekyle and I have

Re: versioning alternatives

2010-06-29 Thread Magnus Holm
This seems to be the migration that vestal_versions generates: http://github.com/laserlemon/vestal_versions/blob/master/generators/vestal_versions/templates/migration.rb. I assume you can just copy that into your app (just replace ActiveRecord::Migration with V 1.1). // Magnus Holm On Tue, Jun

Re: Speed issue

2010-06-21 Thread Magnus Holm
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... On Monday, June 21, 2010, Raimon Fernandez co...@montx.com wrote: On 21jun, 2010, at 12:56 , Magnus Holm wrote: What if you

Re: First time on Camping

2010-06-19 Thread Magnus Holm
I think the problem is that Builder don't know that you're using UTF-8, so it's just doing the safest thing and just escapes everything. But this shouldn't really be a problem, since the parser should handle it and treat every #225; as á. // Magnus Holm On Sat, Jun 19, 2010 at 15:53, Raimon

Re: First time on Camping

2010-06-18 Thread Magnus Holm
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 to generate XML with Camping. You still need to create a model to store/retrieve the data. Before we can

Re: First time on Camping

2010-06-18 Thread Magnus Holm
. You would probably want to render some XML # so the client knows something went wrong. There was an exception in #{klass}.#{method}: #{exception} end end // Magnus Holm On Fri, Jun 18, 2010 at 13:23, Raimon Fernandez co...@montx.com wrote: buf, now I'm lost ... :-)) no, really

  1   2   >