Re: Help with Controllers

2011-08-29 Thread John Beppu
On Mon, Aug 29, 2011 at 8:47 PM, Anonymous Waffles theonetruewaff...@gmail.com wrote: Hello guys, I'm new to the Ruby, and especially to Camping. I've been having some difficulty because there aren't that many tutorials about Camping compared to other larger frameworks. I've been building

Re: Feature: Inline templates?

2011-08-26 Thread John Beppu
I was fine with Markaby. On Thu, Aug 25, 2011 at 11:04 AM, Magnus Holm judo...@gmail.com wrote: Another feature! Inline templates: module App::Controllers get '/' do @title = My Perfect App render :index end end __END__ @@ index.erb Welcome to %= @title %

Re: Feature: Simple controllers?

2011-08-25 Thread John Beppu
If I wanted that notation, I'd just use Sinatra. ;) Like Bartosz, I like having named controllers so that I can pass them to R() when generating links. On Thu, Aug 25, 2011 at 10:20 AM, Magnus Holm judo...@gmail.com wrote: I just pushed a new feature to Camping: Simple controllers. module

Re: Feature: Simple controllers?

2011-08-25 Thread John Beppu
controllers to be named. On Thu, Aug 25, 2011 at 2:21 PM, Magnus Holm judo...@gmail.com wrote: On Aug 25, 2011 10:54 PM, John Beppu john.be...@gmail.com wrote: If I wanted that notation, I'd just use Sinatra. ;) Like Bartosz, I like having named controllers so that I can pass them to R() when

Re: sending a post request from a controller

2011-07-04 Thread John Beppu
instead of client-side. Dave On Sun, Jul 3, 2011 at 9:35 PM, John Beppu john.be...@gmail.com wrote: Does Sallie Mae provide a payment processing API? I searched for it, but I couldn't find anything. On Sun, Jul 3, 2011 at 4:46 AM, David Susco dsu...@gmail.com wrote: None of those, I'm

Re: sending a post request from a controller

2011-07-02 Thread John Beppu
Can you tell us what payment processing system you're trying to work with? Is it PayPal or Google Checkout? Bitcoin? ;-) On Thu, Jun 30, 2011 at 6:48 AM, David Susco dsu...@gmail.com wrote: Ideally I'd like a user to be able to submit a form to the camping app, having camping do all the

Re: Changing render semantics?

2010-04-25 Thread John Beppu
On Sat, Apr 24, 2010 at 3:39 PM, Magnus Holm judo...@gmail.com wrote: I guess the question is: Does anybody actually use `render` with multiple arguments (render :index, 1, 2)? If not, I guess we can easily switch to this new `render` without breaking code. I do not use the multi-argument

Re: [ANN] Camping 2.0 - minature rails for stay-at-home moms

2010-04-09 Thread John Beppu
Good job. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: what is this log mean?

2010-01-18 Thread John Beppu
It means that someone sent you an invalid HTTP request, and this is Mongrel's noisy way of rejecting it. Don't worry. It's harmless. --beppu On Mon, Jan 18, 2010 at 12:27 AM, in-seok hwang his20...@gmail.com wrote: Hi, all my server spec is .. camping -1.5.180 mongrel-1.1.5 4~5 times a

Re: What now?

2009-10-19 Thread John Beppu
On Mon, Oct 19, 2009 at 11:03 AM, Julik Tarkhanov julian.tarkha...@gmail.com wrote: On 19 Oct 2009, at 14:27, Dave Everitt wrote: nice idea with the .ru = Ruby, although still doubtful that 'why' and 'went' are good for SEO (BTW you did mean 'camping', not 'caping' didn't you :-).

Re: What now?

2009-10-18 Thread John Beppu
I like the domain whywentcamping.com . ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: hi all! can't open github!!

2009-08-16 Thread John Beppu
It's a little slow over at github, but the page loads for me (sometimes). They must be experiencing a lot of traffic. --beppu On Sun, Aug 16, 2009 at 6:59 PM, in-seok hwang his20...@gmail.com wrote: hi all! can't open github (http://github.com/why/camping/tree/master) What's going on?

Re: hi! plz teach me! about file upload

2009-04-20 Thread John Beppu
Something like this should work for the old version of Camping: class Upload R '/upload' def get render :upload end def post upload = @input.upload filename = File.basename(upload.filename) puts @input.upload[:tempfile].path puts filename

Re: images in db

2009-02-03 Thread John Beppu
Roland just showed you how to inline it. Here's a little article on the technique he's using: http://jimbojw.com/wiki/index.php?title=Data_URIs_and_Inline_Images However, as Jenna said, this technique doesn't work in IE. Her first suggestion is probably the path of least resistance. --beppu

Re: My Camping clone has broken the 4K barrier. ;-)

2008-12-04 Thread John Beppu
thought Perl would do better... //Magnus On 4. des.. 2008, at 10.37, John Beppu [EMAIL PROTECTED] wrote: Behold! http://gist.github.com/31363http://gist.github.com/31363 4004 bytes! The non-obfuscated version can be found at: http://github.com/beppu/squatting/tree/master http://github.com

Re: My Camping clone has broken the 4K barrier. ;-)

2008-12-04 Thread John Beppu
I think I could easily trim 20-30 bytes from the obfuscated version, but 3K seems so far away. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: [TIP] optional multi-pane layout

2008-08-28 Thread John Beppu
That's pretty damned cool. Good technique! --beppu On Thu, Aug 28, 2008 at 3:46 AM, zimbatm [EMAIL PROTECTED] wrote: This is a nice little trick to defer some block execution in a multi-pane layout module Views def layout html do #... body do div.main { yield }

Re: Camping-list Digest, Vol 23, Issue 8

2008-05-23 Thread John Beppu
What pains me is that my Perl clone is weighing in at a bloated 6.6k after I run it through: cat `find -name '*.pm' -print` | perltidy -npro -dac -dws -i 0 | sed '/^\s*$/d' | perl -pe 's/ +/ /g' | wc . I was never an expert golfer http://perlgolf.sourceforge.net/, but still *sigh* --beppu

Re: Squatting

2008-05-15 Thread John Beppu
On 5/15/08, zimbatm [EMAIL PROTECTED] wrote: Haha, well done :) Small rectification: Camping also allows multiple views per controller Really? How do you set up multiple views for a Camping app? ___ Camping-list mailing list

Re: query strings built by R method can't handle multiple values from checkbox selections

2008-05-08 Thread John Beppu
As an side, I'm writing a Camping-like framework in Perl, and R() is still on my to-do list. I'm glad you posted this, because I probably would've ended up duplicating that bug in my translation to Perl. --beppu On Thu, May 8, 2008 at 7:58 AM, Ronald Evangelista [EMAIL PROTECTED] wrote: query

[poll] What was your primary language before you started coding in Ruby?

2008-05-04 Thread John Beppu
This is an informal poll. If you are primarily a Ruby programmer, - What was your primary language before you started coding in Ruby? Else, - What's your current programming language of choice? I'll start: Perl ___ Camping-list mailing list

Camping is a winner at SXSW-i

2008-03-10 Thread John Beppu
Last night, a little Camping application I wrote called MetaNoteshttp://www.metanotes.com/won the Experimental division in the SXSW Web Awardshttp://2008.sxsw.com/interactive/web_awards/finalists/ . MetaNotes is a site that lets you (and many other people) simultaneously place colorful post-it

Re: css image url's and :img problem

2007-11-17 Thread John Beppu
On Nov 17, 2007 8:10 PM, pedro mg [EMAIL PROTECTED] wrote: background: #33 url(img01.gif) repeat-x; url(/static/img01.gif) ? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Camping and ruby2ruby

2007-09-27 Thread John Beppu
On 9/27/07, Jonas Pfenniger [EMAIL PROTECTED] wrote: 2007/9/27, Gregor Schmidt [EMAIL PROTECTED]: Defining NilClass#method_missing for nothing is not too clever, for a large scale libary IMO. I'm not sure you understood, it is ruby2ruby who defined nil.method_missing. We can't start to