That's weird…
First of all, could you update Rack to 1.1 and try with that version?
If it's still broken, I think this monkey-patch should do it:
class Rack::Request
def params
self.GET.update(self.POST)
rescue EOFError, Errno::ESPIPE = e
self.GET
end
end
// Magnus Holm
On Thu,
Hi, all
my server spec is ..
camping -1.5.180
mongrel-1.1.5
4~5 times a day i will see the log .
But , i don't know this message's mean .
The following is the log.
Sun Jan 17 18:25:19 +0900 2010: HTTP parse error, malformed request
(125.230.144.181): #Mongrel::HttpParserError: Invalid HTTP
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
Thanks beppu :)
2010/1/19 John Beppu john.be...@gmail.com
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.comwrote:
Hi, all
my
Wouldn't it be possible to simply use
http://pastie.textmate.org/private/8bnszgdfkkgdlorzncgnww?
//Magnus Holm
On Thu, Dec 31, 2009 at 03:32, Philippe Monnet r...@monnet-usa.com wrote:
After a bit over a day of both looking at the way NewRelic implemented their
plugin for Rack and Sinatra,
Excellent, I'll definitely check it out when I come home (writing this
on a crappy Sony Ericsson while it's -20C outside).
Yes, there are more cool things about Camping then the 4k (or 3k at
the moment). Hit me up at #camping @ irc.freenode.net if there still
is something that's unclear. I think
After a bit over a day of both looking at the way NewRelic implemented
their plugin for Rack and Sinatra, as well as digging deep in the core
Camping code of the service and M methods, I managed to get something
working. See
I use Freebase in one of my web apps and I noticed that the Camping
topic needed a bit of love to keep things accurate. I just made the
edits at:
http://www.freebase.com/edit/topic/guid/9202a8c04000641f84731038
___
Camping-list mailing list
Agreed about waiting until 2.0. And the ASAP.
With this in mind, I've just gathered all the previous threads I can
find discussing documentation, 'the book' etc. into a single text
file to collate and re-post when I next have a few days.
To save time looking, can anyone please point out
You're now added as a contributor.
Feel free to push/commit at will, but if it involves any larger
refactorings/changes, I think it's better if you fork off so we can
discuss it a bit. If you're not quite sure where to push though, just
push it to camping/camping. We can always revert it later if
I also added the link to the Ruby On Rails podcast episode on Camping.
Dave Everitt wrote:
Hi all
I found the Camping page on Wikipedia in need of some serious TLC, so
I updated it, added some newer links and removed the 'stub' status:
Hi all
I found the Camping page on Wikipedia in need of some serious TLC, so
I updated it, added some newer links and removed the 'stub' status:
http://en.wikipedia.org/wiki/Camping_%28microframework%29
I also pointed people to the Github repo for version 1.9.
Please take a look and
Camping on the RAA is frozen at 1.4: http://raa.ruby-lang.org/project/
camping/
If no-one has access I could contact raa-ad...@ruby-lang.org and send
updated info, but (at present for the 'To install' part) that could
mean sending out source http://gems.judofyr.net; (Magnus?)
- Dave
true, but I think Philippe is using 'rubycamping.com' as a generic
term for 'the Camping website' - DaveE
I thought we settled on whywentcamping?
___
Camping-list mailing list
Camping-list@rubyforge.org
Very silly me. Forgot about 'Index':
- class Pages R '/'
+ class Index
have corrected the Pastie: http://pastie.org/679826
Dave Everitt
Only one (in my setup) - on 'Wrapping it up', in the Controllers:
class Pages
needs the explicit
class Pages R '/'
Thanks for bringing this up again! I've pushed out what I have so far,
but not your latest suggestions (you had some more in an earlier mail,
right?)
If you have a Github account I can give you (and anyone else who wants
to contribute) push-access. I'm a little busy at the moment, but I'll
try to
Magnus - I did make some earlier suggestions/edits and would be happy
to implement them. I'm a sad and rather newbie (still working through
the O'Reilly Git book) GitHub lurker (with no repos yet: http://
github.com/DaveEveritt) so let me know when you're ready and I'll
start work - Dave E.
I think this should do it:
Camping.goes :Nuts
Nuts::Mab.set(:indent, 2)
You should probably only use it in development, because I think it's
pretty slow.
//Magnus Holm
On Mon, Nov 2, 2009 at 18:57, David Susco dsu...@gmail.com wrote:
Hi all,
Instead of having the following:
def
Yes, it can be a bugbear.
It's a bit 'non-lazy' but I just tend to add newlines with Markaby's
'text':
def index
h1 'My Site'
text(\n\n)
p 'Welcome to my site!'
end
- DaveE
Is there anyway that I can configure Markaby to add line breaks
between block elements so I'd get something
Ace - cheers!
On Mon, Nov 2, 2009 at 3:13 PM, Magnus Holm judo...@gmail.com wrote:
Okay, I think we're actually fine by setting :path = / by default.
If you want anything different, you should use use
Rack::Session::Cookie yourself.
//Magnus Holm
On Mon, Oct 19, 2009 at 19:14, Jonathan
Magnus
for quick fixing (since these links are on the wiki), thought you'd
like to know where the bad links are in your current README 'Camping,
the Reference' at: http://stuff.judofyr.net/camping-docs/api.html
'code' (top right menu):
- http://github.com/why/camping
+
okay - which of the proposed domains works best for you? - Dave
Or better, get good search engine results without gaming the
system, and just get people to link to it -- go talk it up, blog it
up, and write some awesome stuff and post it! I'll certainly be
linking to it from my blog.
we have this wonderful tight knit little community at the moment
which would be utterly obliterated by fame. See rubyonrails for
details about why fame sucks.
LOL! Good point!
Magnus - great cartoon! More!!
Okay, we don't need SEO :-)
What motivation is there to be widely popular?
In
On Tue, Oct 20, 2009 at 3:59 AM, Dave Everitt dever...@innotts.co.uk wrote:
Okay, we don't need SEO :-)
Regardless, it's not my impression that the domain name plays much
role at all in Google's algorithm. After all, domain squatters nearly
never show up on the first page of results, despite
Okay, we don't need SEO :-)
Regardless, it's not my impression that the domain name plays much
role at all in Google's algorithm. After all, domain squatters
nearly never show up on the first page of results, despite that
most of the squatted domains are seen as valuable keyword wise. To
On Tue, Oct 20, 2009 at 9:45 AM, Dave Everitt dever...@innotts.co.uk wrote:
keywords in the domain do help - I'm pretty sure spam is filtered by other
means too - like hiding text, too much repetition, 'spam-like' terms. As
well as inbound links (which I reckon won't be a problem), in my
My partnership has VPS Dallas (Ubuntu) and London (Debian) servers
from Rimuhosting. We're about to replace the former with a more
updated system, so that could be an option, depending on where the
most visitors are likely to come from. The London server has faster
access for UK/European
I really doubt we need something of that scale. A shared hosting
account with passenger support would be fine and dandy for now.
On 21/10/2009, at 8:08 AM, Dave Everitt wrote:
My partnership has VPS Dallas (Ubuntu) and London (Debian) servers
from Rimuhosting. We're about to replace the
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 :-).
I reckon: 2 domains, one obviously SEO-optimised (containing 'ruby,
camping, framework'), forwarding to another memorable one we all like
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 :-).
Registering domains in Russia is a bit risky IMO.
--
Julik Tarkhanov
m...@julik.nl
Hi,
I'd be inclined to agree with the middleware approach too, especially
if it's pre 2.0 release and that change can be made along side other
1.5 - 2.0 changes
Jon
On Sun, Oct 18, 2009 at 9:31 PM, Magnus Holm judo...@gmail.com wrote:
Wow, great catch! This is definitely a bug. I guess this
On Oct 19, 2009, at 6:27 AM, 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 :-).
I reckon: 2 domains, one obviously SEO-optimised (containing 'ruby,
camping,
Yeah, and besides, camping is not a business, it is an open source
project of much niftiness. We do not need SEO, it does in fact not
especially effect us how many people use our framework, except that we
have this wonderful tight knit little community at the moment which
would be utterly
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
:-).
On Mon, Oct 19, 2009 at 5:06 PM, John Beppu john.be...@gmail.com wrote:
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
Regarding SEO, isn't it enough to have some links from the ruby
community pointing to the camping homepage to have it on top-10 of
ruby camping search results ?
___
Camping-list mailing list
Camping-list@rubyforge.org
In any case, I just secured whywentcamping.com. For now it redirects
to camping.rubyforge.com
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
Agreed, but ideally it would be great to have it updated as the dead
links (redhanded.hobix.com, code.whytheluckystiff.net etc.) give the
impression that Camping is neglected (also with the CHANGELOG frozen
at 1.5 in 2006), and that's a bit sad for such a nice little
framework! Perhaps the
On 18 Oct 2009, at 12:03, Dave Everitt wrote:
Perhaps the community could list and collate the necessary changes/
updates on each page, then updating could be shared (I'd be more
than willing to do updates)?
A new site shared over githubz would be nice.
--
Julik Tarkhanov
m...@julik.nl
I like the idea of updating the rubyforge site, but having a main
site to publicize Camping would be a nice addition and would have
the benefit of being easier for people to find or remember (especially
if they are new to Ruby). I really like:
* rubycamping.com
*
I like the domain whywentcamping.com .
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
@Philippe:
Agreed - if Camping is going to get any mindshare it does need a
portal one-stop site.
BTW rubyoncamping - ROC (as in 'solid as a...' :-? )
So... .com/org/net(all?) domain options (bearing in mind SEO-
friendliness and availability) - [ ] = add a score out of 10:
rubycamping.com
Hi all,
Not sure where best to raise this (github issues?) but I'm seeing an
issue with the cookie sessions in camping 2.0 using rack. If I mount
an app such as the example blog or the sessions test app at any url
that is not the root session information is lost in some cases. Same
thing
+1 for whywentcamping.com
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
I need to know if _why is OK, I need a sign?
2009/10/18 zimbatm zimb...@oree.ch:
+1 for whywentcamping.com
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
Another for whywentcamping.com
We shouldn't try and make ourselves look like ROR, Camping is it's own crazy
system.
Christian Carter
612.327.5292
On Sun, Oct 18, 2009 at 3:53 PM, zimbatm zimb...@oree.ch wrote:
+1 for whywentcamping.com
___
Wow, great catch! This is definitely a bug. I guess this should go to
GitHub issues, yes.
This is actually an issue where Camping and Rack::Session::Cookie fight:
At the first request, sessions.state is set in ::Cookie after Camping
has done its magic.
At the second request, Camping loads
Magnus
hope you don't mind but for now, I took the liberty of adding most of
these links to the wiki. BTW I use the mail archive pages at mail-
archive.com - easier to browse than the standard interface.
Anything you don't want on the wiki right now, please just remove.
But otherwise, it
2009/9/13 Dave Everitt dever...@innotts.co.uk:
or could they be elsewhere? And which of the many, many finds out there when
you search e.g. 'Camping Ruby' are 1.9/2.0 relevant? Etc. Ummm [thinks]...
rubycamping.com, campingruby.com, campingframework.com or (my favourite)
camping3k.com/org/net
Nice alternative... all that's needed is a chosen domain, a friendly
host and to share out the webmastering :-)
With a little commitment from a couple of people, I'd provide the
hosting and domain.
or could they be elsewhere? And which of the many, many finds out
there when
you search
I'm new to Camping (played around with some small apps, but nothing
impressive), but I'd be more than happy to be webmaster. If I could
get someone to work with, that'd be even better, of course.
On Thu, Oct 15, 2009 at 7:48 AM, Dave Everitt dever...@innotts.co.uk wrote:
Nice alternative... all
Hi Matt - great, that's a start. One more person and we're there! - Dave
I'm new to Camping (played around with some small apps, but nothing
impressive), but I'd be more than happy to be webmaster. If I could
get someone to work with, that'd be even better, of course.
Nice alternative... all
Hi Jon
just the kind of tutorial that's needed!
Presume this blog is the result (good to show it off, too):
http://radiant-sunset-95.heroku.com/
?
Once I'm rid of some annoying paid work I'll give it a try with my
own adapted blog.
If anyone comes across any out of date Camping guides,
Hi all,
I've been lurking about for a while, but thought it's time I added something!
I had a go with Heroku (which I'm pretty impressed with - thanks
Dave). As a bit of a play with it I made the guide below on how to
use camping 2.0 on it. Let me know if you think it's handy (one for
the wiki
Hi all,
My Environment is..
camping 1.5.180
sqlite3 1.2.4
I tried just print about 'post title' record
post title's data is not double-byte character set.
so, i will show you my some html source.
lia href=/board/obnotice/1Ob notice/a/lilia href=/board/old/1
Ob board/a/li/ulh1Service/h1ul
Just in case anyone comes to visit and doesn't realise Camping has
it's own repo at Github (the chosen option in this thread, thanks to
Magnus) here's the URL:
http://github.com/camping/camping/
To promote Camping (e.g. I just mailed ruby-toolbox.com to suggest
adding it), I usually point
+1 for camping/camping at github . Also, why not use the github pages
to host the camping website
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
I'm for this option:
camping/camping - Create a new user.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
I'm for this option:
camping/camping - Create a new user.
Yup I like that option, too.
--Jeremy
--
http://jeremymcanally.com/
http://entp.com/
http://omgbloglol.com
My books:
http://manning.com/mcanally/
http://humblelittlerubybook.com/ (FREE!)
ROFL! - DaveE
If they weren't then, they are now:
http://xkcd.com/624/
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
What is this url(http://xkcd.com/624/ http://xkcd.com/624/)?
2009/8/17 Dave Everitt dever...@innotts.co.uk
ROFL! - DaveE
If they weren't then, they are now:
http://xkcd.com/624/
___
Camping-list mailing list
Camping-list@rubyforge.org
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?
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,
You can get it in Camping 1.9.x by doing @request.url – it gives you a
String. If you want a URI object do URI.parse(@request.url) and then
you can change the components easier than using a String#gsub. :)
If you're using camping 1.5, you probably have to scavenge the various
parts of the
Thanks Jonathan - that's done the trick.
(BTW my previous fumble was an attempt to pinpoint my problem by
connecting without Camping.)
With the idea of using this as the simplest possible 'Camping with
SQLite' example for beginners (or testing new setups), I've adjusted
and pastied it:
If 1.5.180 is more stable would it be best to replace 1.5 with
1.5.180 as the 'official' pre-2.0 release for those requiring
backward compatibility? If there are 'plenty of bug fixes in the
repo', which ones aren't yet incorporated '1.5.180 from _why's gem
server which fixes some of them'?
Totally right :-)
It's released now...
//Magnus Holm
On Thu, Jun 11, 2009 at 01:12, Julik Tarkhanov
julian.tarkha...@gmail.comwrote:
On 10 Jun 2009, at 23:49, Magnus Holm wrote:
Oh, sorry. I totally forgot about this.
Are we absolutely sure that 1.5.180 is stable enough to be pushed out
Scratch that, got everything working with 1.8.7-p173 and selinux
disabled. I have to say, rack apps are pretty easy to deploy with
passenger once you get the thing installed and working :P.
@Jonathan - Re: your apache conf, I actually didn't need the directory
directive and the execcgi option to
On Tue, Jun 09, 2009 at 11:35:26AM +0100, Dave Everitt wrote:
Any feedback appreciated on the following. My most recent attempt to
identify the issue is a minimal Ruby/SQLite/ActiveRecord script, Pastied
here: http://pastie.textmate.org/492514 which brings up the following
when run from the
hiya
chiming in a little late.
but i think many people would be attracted to a basic cms, as often as
it's been done. possibly without all the role and permissions fuss but
a basic page hierarchy and editable pages so people can make their
scrap books, photo albums and so on. make it very
I'm trying to get passenger working presently, once I do I'll let you
know how the rest of it goes.
When I try to load the module in the apache conf I get the following error:
Cannot load
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so
into server:
hi ,all
i used camping1.5.180, but i thing camping is dead.
When camping 2.0 coming?
this url(http://camping.rubyforge.org/files/README.html) is no more update?
this url(http://github.com/why/camping/tree/master) is main repository?
right?
why main repository's changelog is stop in ver1.6
Oh, sorry. I totally forgot about this.
Are we absolutely sure that 1.5.180 is stable enough to be pushed out to
Rubyforge?
//Magnus Holm
On Tue, Feb 10, 2009 at 19:24, Julik Tarkhanov
julian.tarkha...@gmail.comwrote:
On Feb 10, 2009, at 8:41 AM, Magnus Holm wrote:
Yes, we should release
On 10 Jun 2009, at 23:49, Magnus Holm wrote:
Oh, sorry. I totally forgot about this.
Are we absolutely sure that 1.5.180 is stable enough to be pushed
out to Rubyforge?
For about a year I think, and if not it can be followed by 1.5.181
right?
--
Julik Tarkhanov
m...@julik.nl
OK, good to know. What the latest version I can use?
Dave
On Wed, Jun 10, 2009 at 5:46 PM, Magnus Holmjudo...@gmail.com wrote:
Unfornately, Camping doesn't (yet) work on Ruby 1.9.1. Unless someone else want to try
now, I'm going to have a look at it *after* 2.0 is released.
//Magnus Holm
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
2. Stable version
The current version is 1.5 and is available from RubyForge. This is
however a *really* old release, and there have been plenty of bug fixes in
the repo. There's a 1.5.180 from _why's gem server which fixes some of them.
The 1.9-version I have at gems.judofyr.net is just a rake
Oh, yes. Let's (once again) try to clean the documentation up a bit :-)
I have no facts behind me, but I assume there would be two kinds of people
who would like to browse camping.rubyforge.org:
1. Beginners who want to know what it's all about, how to get started and
how to get help.
2. Campers
Oh, that would be very nice!
Right now there is an example at camping.rubyforge.org showing a blog
skeleton (with controllers, models and views). It might be better to rather
have a tiny, fully functional one (to get the feel of Camping), and a link
to blog.rb (which should be simplified even
Hi David,
On Wed, Jun 03, 2009 at 10:24:01AM -0400, David Susco wrote:
I have a few camping apps I'd like to start automatically if my server
ever restarts. There's an init.d file that comes with mongrel_cluster
that you can use for rails apps, is there anything out there for
camping apps
Maybe have a look at http://code.google.com/p/camping-picnic/
http://code.google.com/p/camping-picnic/Among other functionality, Picnic
gives you a myapp-ctl wrapper script around your camping app that takes care
of starting and stopping mongrel. Writing an init.d script around the
myapp-ctl
Thanks guys,
That helped get rid of a lot of code.
Dave
On Thu, May 21, 2009 at 10:22 AM, Magnus Holm judo...@gmail.com wrote:
params is simply Rails' version of @input.
If you name your keys user[id] and user[name] in the HTML, then
@input.user should contain a Hash like { 'id' = ...,
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
Awesome! The only thing more fun than writing code is deleting code.
On Fri, May 22, 2009 at 9:09 AM, David Susco dsu...@gmail.com wrote:
Thanks guys,
That helped get rid of a lot of code.
Dave
On Thu, May 21, 2009 at 10:22 AM, Magnus Holm judo...@gmail.com wrote:
params is simply Rails'
Thanks, I've gotten it to work.
On this part though: @user = User.new params[:user
Is the closing bracket missing? Is params something from Rails that
allows you to create the user instance variable all in one line
instead of doing something like this:
@user = User.new(
:id = input.id,
Hah, yeah, the bracket is missing. And in Camping, the equivalent of
Rails' params is @input.
-- Eric
On Thu, May 21, 2009 at 9:50 AM, David Susco dsu...@gmail.com wrote:
Thanks, I've gotten it to work.
On this part though: @user = User.new params[:user
Is the closing bracket missing? Is
I ended up overwriting the redirect method with this:
def redirect *a
r(302, '', 'Location' = 'my_vhost.net/my_app/' + R(*a).to_s)
end
Thoughts?
Dave
On Tue, May 19, 2009 at 11:05 AM, David Susco dsu...@gmail.com wrote:
Within an apache vhost I'm rewriting like this:
IfModule
I'm a little rusty on AR at the moment, but I think it looks something like
this:
In the controller:
if @user.valid?
# everything is fine
else
# ops! @user.errors contains the errors
end
//Magnus Holm
On Wed, May 20, 2009 at 19:43, David Susco dsu...@gmail.com wrote:
Can
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
So, in my crud controllers, should I be using 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
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, in my crud controllers, should I be using
In order to create the necessary tables you'll have to run
Blogtiny::Models.create_schema.
The prefered way is define a create-method like this:
def Blogtiny.create
Blogtiny::Models.create_schema
end
All servers or setups using Camping should then call Blogtiny.create on
startup after the app
Within an apache vhost I'm rewriting like this:
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ http://127.0.0.1:5000/$1 [P,QSA,L]
/IfModule
I haven't gotten to deployment yet, so I'm not sure if this is
That sounds like a good idea. I've figured out one way to do cookies, but
still need to find a way to handle sessions. Pushing later when I've come up
with something :-)
//Magnus Holm
On Wed, May 6, 2009 at 22:28, Mikkel Refsgaard Bech mik...@refsgaardbech.dk
wrote:
On 05/05/2009, at 22.49,
hi! all!
my camping version is . 1.5.180
mongrel is 1.1.5
Finally, my web site is almost complete.
thank you! camper!
but, i has one little problem.
i know that how connect 'some page' and 'some controller'.
In this case, how i can connect 'div ' and 'some controller'
Sample code has a
On 05/05/2009, at 22.49, Magnus Holm wrote:
Oh crap. Did that get commited? I was just testing if the memory-
database had anything to do with it and forgot to change it back
later. Pushing a fix tomorrow :-)
Sweet.
One other thing, I can't figure out how to input some @state before I
thank you! Magnus Holm
the problem has been resolved.
finally , i can sleep :)
have a nice day~
2009/5/7 Magnus Holm judo...@gmail.com:
Let me see if I understand your problem correctly:
On every page you want to include news, which should go through the
News-controller?
Here's one
I've pushed out a fix now. Could you verify it?
//Magnus Holm
On Sat, May 2, 2009 at 22:04, Mikkel Refsgaard Bech mik...@refsgaardbech.dk
wrote:
Hi
Trying to use camping-test with my camping app but I get an error:
undefined method `fixtures'
The error can be reproduced by using this
Hi
Trying to use camping-test with my camping app but I get an error:
undefined method `fixtures'
The error can be reproduced by using this empty app (your_app.rb):
require 'camping'
Camping.goes :YourApp
module Steps
module Models
end
module Controllers
end
module Views
end
end
On Thursday I tried to get the camping blog.rb example working with
rack/passenger/apache.
The config.ru (below) resulted in Camping Problem!
/ not found
require 'rubygems'
require 'rack'
require 'camping'
Camping.goes :Blog
Blog::Models::Base.establish_connection :adapter = sqlite3,
:database
801 - 900 of 1200 matches
Mail list logo