Re: Easy deployment on DreamHost with Phusion Passenger

2009-07-20 Thread Eric Mill
Please add it to the Camping on Shared Hosting wiki page - on both the Camping Github wiki, and the Dreamhost wiki. I wrote the Dreamhost section of the former, and the entirety of the latter, after much agony making FastCGI work, and I'd love to see a simpler way documented. -- Eric On Mon,

Re: Easy deployment on DreamHost with Phusion Passenger

2009-07-20 Thread Eric Mill
Here's the link to the page on the Dreamhost wiki: http://wiki.dreamhost.com/Camping -- Eric On Mon, Jul 20, 2009 at 2:55 PM, Eric Millkproject...@gmail.com wrote: Please add it to the Camping on Shared Hosting wiki page - on both the Camping Github wiki, and the Dreamhost wiki.  I wrote the

Re: sqlite3 connection problem

2009-06-09 Thread Eric Mill
Are the permissions on the file set right? What happens if you try to access the file with rhe sqlite3 command line tool and run the query yourself? -- Eric On Tue, Jun 9, 2009 at 6:35 AM, Dave Everittdever...@innotts.co.uk wrote: Any feedback appreciated on the following. My most recent

Re: hi all! i don't know that javascript into the ruby variable

2009-05-22 Thread Eric Mill
That actually is not going to be possible, the way you're doing it. ERB can't evaluate the JavaScript like that. What you might want to do is to write the @people hash out onto the page somewhere else first, as a JavaScript hash, and then have your function look up [name] in the JS hash. -- Eric

Re: using ActiveRecord::Validations::ClassMethods

2009-05-22 Thread Eric Mill
,  :name = input.name,  ... ) Can I use it in a camping app relatively easily? Dave On Wed, May 20, 2009 at 5:27 PM, Eric Mill kproject...@gmail.com wrote: In my create actions, I customarily do like @user = User.new params[:user if @user.save  ... else  ... end

Re: using ActiveRecord::Validations::ClassMethods

2009-05-21 Thread Eric Mill
, Eric Mill kproject...@gmail.com wrote: In my create actions, I customarily do like @user = User.new params[:user if @user.save  ... else  ... end But update_attributes should also return true or false, I believe. On Wed, May 20, 2009 at 4:42 PM, David Susco dsu...@gmail.com wrote: So

Re: using ActiveRecord::Validations::ClassMethods

2009-05-20 Thread Eric Mill
Yeah, but in practice, you'd call @user.save, which internally calls #valid?, and returns true or false on whether the object was saved or not. If the object wasn't saved, @user.errors is populated with the error messages. -- Eric On Wed, May 20, 2009 at 4:03 PM, Magnus Holm judo...@gmail.com

Re: using ActiveRecord::Validations::ClassMethods

2009-05-20 Thread Eric Mill
calls to save instead of create and update_attributes? As those just return the object, and not true of false based on my validations. Dave On Wed, May 20, 2009 at 4:30 PM, Eric Mill kproject...@gmail.com wrote: Yeah, but in practice, you'd call @user.save, which internally calls #valid

Re: how i can that connect some controller by div?

2009-04-23 Thread Eric Mill
Yeah, what Jenna said. Also, can you show us the error you're getting? -- Eric On Thu, Apr 23, 2009 at 7:16 AM, Jenna Fox bluebe...@creativepony.com wrote: Why are you using the 'p' function in your controller? this is strange. You give it a string containing ruby code... maybe closer to what

Re: how i can that connect some controller by div?

2009-04-23 Thread Eric Mill
! and some action from post function in 'Newsctrl' controller. some action is save(sqlite3) that 2 inputbox's input i thing not connect that views and controller thank you for reading my article... 2009년 4월 23일 (목) 오후 9:34, Eric Mill kproject...@gmail.com님의 말: Yeah, what Jenna said. Also

Re: Release?

2009-02-12 Thread Eric Mill
I don't genuinely enjoy using any issue/bug trackers (who does?), but Lighthouse is my least among evils. It's a lot nicer than Trac, anyway. What do you guys think? On Thu, Feb 12, 2009 at 11:40 AM, Magnus Holm judo...@gmail.com wrote: Okay, let's roll! I did some testing with `git checkout`

Re: I CAN HAZ 3K FRAIMWURK?

2009-01-24 Thread Eric Mill
You are the Duke of Camping. That is awesome work, Magnus. On Fri, Jan 23, 2009 at 2:09 PM, Magnus Holm judo...@gmail.com wrote: Hey, campers! I've been messin' with camping.rb again :-) * http://github.com/judofyr/camping/commit/cbbfe41 I've ported the flipbook template to RDoc 2 (RDoc 1 has

Re: H with indifferent access

2009-01-24 Thread Eric Mill
I'm pretty indifferent about access. On Sat, Jan 24, 2009 at 3:15 PM, Jenna Fox bluebe...@creativepony.com wrote: Yes! give me indifferent access! :D On 25/01/2009, at 7:35 AM, Magnus Holm wrote: Doh, the snippet I wrote was actually really stupid. Forgot we can safely call super without

Re: Hum... What's wrong with me ?

2008-11-13 Thread Eric Mill
Oh, geez, I glanced at an app where I overwrote render to work with Haml instead of Markaby. Sorry for the confusion. On Nov 13, 2008 7:39 AM, julik [EMAIL PROTECTED] wrote: On Nov 12, 2008, at 6:29 PM, Eric Mill wrote: def get render :index, :hello = Hello World!... since when

Re: Let's get this done, please :-)

2008-10-30 Thread Eric Mill
I've deployed a couple Camping apps in a FastCGI environment on shared hosting, and written wiki pages on it. I feel like this must be a pretty common scenario, since shared hosting itself is a common scenario. -- Eric On Thu, Oct 30, 2008 at 11:01 AM, _why [EMAIL PROTECTED] wrote: On Mon, Oct

Re: [TIP] optional multi-pane layout

2008-08-28 Thread Eric Mill
That's an awesome tip for Markaby. I'll remember that! On Thu, Aug 28, 2008 at 7:57 AM, John Beppu [EMAIL PROTECTED] wrote: 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

Re: Resolved: Apache + CGI/FastCGI + mod_rewrite

2008-08-03 Thread Eric Mill
True to my word, I have created a page for using Camping 2.0 on shared hosts: http://github.com/why/camping/wikis/camping-on-shared-hosting Thanks to Magnus and Jenna especially for helping figure it all out. -- Eric On Sat, Jul 19, 2008 at 11:50 PM, Eric Mill [EMAIL PROTECTED] wrote: Ah, hot

Re: @state not being saved

2008-07-29 Thread Eric Mill
having problems, and reverting back to 2.0.2 got session support working again. On the command line: $ gem install --version '=2.0.2' activerecord In Camping: gem 'activerecord', '=2.0.2' Alpha On Mon, Jul 28, 2008 at 9:15 PM, Eric Mill [EMAIL PROTECTED] wrote: Is this with Camping 1.5

Re: Preview: Camping Explained

2008-07-20 Thread Eric Mill
I like it. The self-eval is stuff that was there when I jumped in at 1.5, so I knew how it worked, but it remains fascinating. Suggested future topics: How a class can inherit from something that takes arguments (Index R '/'), and what it takes to override #service for middleware. I don't

Re: Preview: Camping Explained

2008-07-20 Thread Eric Mill
I get that R is a method which returns the class; but it also uses a lesser-known Ruby callback called Class#inherited (http://www.ruby-doc.org/core/classes/Class.html#M000454) that blows my mind and could use talking about. The reason talking about #service would be cool is because it's not an

Re: Resolved: Apache + CGI/FastCGI + mod_rewrite

2008-07-19 Thread Eric Mill
Ah, hot damn, Magnus, you really took this problem to heart. As the creator of the Camping on Dreamhost wiki pages on the Camping and Dreamhost wikis, I will be updating both with your work (and testing it verbatim on Dreamhost). You rule! -- Eric On Sat, Jul 19, 2008 at 2:52 PM, Magnus Holm

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-16 Thread Eric Mill
on both 1.5 and 2.0): http://pastie.org/235078. It would be great if you could test it on different setups and see which requires special treatment. Check out the Rack-spec for how the variables should be set: http://rack.rubyforge.org/doc/files/SPEC.html On Wed, Jul 16, 2008 at 5:07 PM, Eric

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-16 Thread Eric Mill
at 5:31 PM, Magnus Holm [EMAIL PROTECTED] wrote: Simply replace Testing with TestingFixed in dispatch.cgi:11 and dispatch.fcgi:13 to see the diffenrence :-) On Wed, Jul 16, 2008 at 11:28 PM, Eric Mill [EMAIL PROTECTED] wrote: Magnus, this is terrific information, thank you for looking

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-16 Thread Eric Mill
Also worth noting is that PATH_INFO isn't emptied - it's set to / or /login, the correct request path. -- Eric On Wed, Jul 16, 2008 at 5:40 PM, Eric Mill [EMAIL PROTECTED] wrote: Unfortunately this isn't working. I'm checking my ENV and REDIRECT_SCRIPT_NAME isn't set to anything. I'm using

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-16 Thread Eric Mill
The 500-handling I'm used to appears to be gone. What's the best approach here? -- Eric On Wed, Jul 16, 2008 at 6:08 PM, Eric Mill [EMAIL PROTECTED] wrote: I think I've got it working, with this as the 'fixer' call: def call(env) env['SCRIPT_NAME'] = '/' env['PATH_INFO'] = env

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-16 Thread Eric Mill
at 5:51 PM, Eric Mill [EMAIL PROTECTED] wrote: Also worth noting is that PATH_INFO isn't emptied - it's set to / or /login, the correct request path. -- Eric On Wed, Jul 16, 2008 at 5:40 PM, Eric Mill [EMAIL PROTECTED] wrote: Unfortunately this isn't working. I'm checking my ENV

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-14 Thread Eric Mill
::CGI.run(App) On Fri, Jul 11, 2008 at 7:33 AM, Eric Mill [EMAIL PROTECTED] wrote: Some progress: I put most of the code from dispatch.cgi into a config.ru, and dispatch.cgi now uses backticks to literally call '/usr/bin/env rackup'. This works, yet now calls to / redirect to /dispatch.cgi

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-14 Thread Eric Mill
I'm not able to get this working, I can't seem to affect the environment, either using the SetEnv approach, or by including that at the end of RewriteRule. How does Camping use the env in forming its understanding of its base URI? Forming URLs using the R method does not pre-pend /dispatch.cgi/,

Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-10 Thread Eric Mill
Specifically, Dreamhost. I'm trying to figure out how to get this to work the standard dispatch.cgi or dispatch.fcgi setup. I've been using the instructions that Magnus sent out when he first announced his plan for Camping 2.0, but they either no longer apply, or I'm an edge case. I've been

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-10 Thread Eric Mill
` And now I am definitely giving up for the night and sleeping. Any ideas? Thanks, Eric On Fri, Jul 11, 2008 at 1:06 AM, Eric Mill [EMAIL PROTECTED] wrote: Specifically, Dreamhost. I'm trying to figure out how to get this to work the standard dispatch.cgi or dispatch.fcgi setup. I've been using

Re: obfuscation Re: Rack, Camping 2.0++

2008-05-23 Thread Eric Mill
How is camping.rb created from camping-unabridged.rb? By hand? If that's the case, you can't expect the compressed camping.rb to be maintained once more than _why and zimbatm start wanting to contribute, you know? If it can be done by script, then by all means let's do that and include that

Re: An issue for consideration

2008-05-23 Thread Eric Mill
You at least want to allow what's in the HTTP spec -- that's HEAD, TRACE, OPTIONS, and CONNECT, on top of the GET/POST/PUT/DELETE. -- Eric On Fri, May 23, 2008 at 7:21 PM, Brendan Taylor [EMAIL PROTECTED] wrote: On Fri, May 23, 2008 at 04:20:21PM +1000, Bluebie, Jenna wrote: This should help.

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

2008-05-05 Thread Eric Mill
PHP, mostly. Some Perl, and some Java (but not since college), but yeah, mostly PHP. I'm better off now. -- Eric On Mon, May 5, 2008 at 2:13 AM, Trevor Johns [EMAIL PROTECTED] wrote: On May 4, 2008, at 9:14 PM, John Beppu wrote: - What was your primary language before you started coding

Re: no camping required deployment?

2007-02-11 Thread Eric Mill
You can just include the camping library alongside the app. Put camping.rb (and maybe the folder 'camping' that has some helper scripts for sessions, webrick, etc.) in the same directory as your main .rb file. In your script, when you say require 'camping' it will load Camping from there,

Re: Camping and DBI

2007-01-28 Thread Eric Mill
Running a full-featured client/server SQL database engine for applications that have only a handful of users is often overkill. Agreed -- I think this is one of the reasons why pushes SQLite so much and makes it the default DB engine for Camping. I've started hearing things about Kirbybase

Re: Postamble vs campingrc

2007-01-22 Thread Eric Mill
This may be obvious, but are you also adding on the extra parameters Mysql needs, like :username, :password, :database? -- Eric On 1/22/07, James Earl [EMAIL PROTECTED] wrote: Hi, Should I be able to use the Webrick postamble instead of using .campingrc, to tell Camping I want to use mysql?