Dear zimbatm,
you should drop your session table once. Camping::H now inherits from
Hash but your sessions data still use HashWithIndifferentAccess.
problem solved... Thanks!
Greetings, Bence
--
Nagy Bence
- Tipográl | www.tipogral.hu
- Tipokert | www.tipokert.hu
- Dekk | www.dekk.hu
-
On Wed, Oct 10, 2007 at 10:09:46AM -0600, Aria Stewart wrote:
Keep camping light, move sessions as far out of the core as possible!
I'd be okay leaving sessions out. I think zimbatm's Hash is great,
because it's peewee and it gets the basic methods across for
everyone else to override. If
I am using a slightly different session modul with a small and dirty
Camping hack for implemeting the Remember me function (used on
http://dekk.hu/).
@headers[Set-Cookie[EMAIL
PROTECTED]|k,v|#{k}=#{k=~/_sid$/?v:C.escape(v)};#{max-age=0;if
!v}path=#{self/'/'}if [EMAIL PROTECTED];
Camping
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jonas Pfenniger
Sent: Monday, October 08, 2007 12:23 PM
To: camping-list@rubyforge.org
Subject: Re: Session handling busted on Oracle
2007/10/8, Berger, Daniel [EMAIL PROTECTED]:
Was there
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Berger, Daniel
Sent: Tuesday, October 09, 2007 11:15 AM
To: camping-list@rubyforge.org
Subject: RE: Session handling busted on Oracle
-Original Message-
From: [EMAIL PROTECTED]
after a bit of fuss ... i fully shipped off EES at 8am today to Jason
at Bren.
I'm dabbling in drupal at the moment in some core themeing
components. I know that I will need at least 2 other things to do
this week besides IDs site ...
Sakai themeing or ASP-PHP are others items i'm aware
On Oct 9, 2007, at 7:57 PM, Berger, Daniel wrote:
So far, so good
I know it's a minority concern, but maybe it is a good idea to make
that ID field present and use it accordingly.
--
Julian 'Julik' Tarkhanov
please send all personal mail to [EMAIL PROTECTED]
On 10-okt-2007, at 0:09, Jonas Pfenniger wrote:
ActiveRecord doesn't seem to handle
hashid as an identifier, plus it doesn't seem to be fully consistent
across the various RDBMS.
Only if you want to totally insist and not give it an ID then yes, it
becomes a kind of a nuisance (your
UNSUBSCRIBE
On Oct 5, 2007, at 1:27 PM, [EMAIL PROTECTED] wrote:
Send Camping-list mailing list submissions to
camping-list@rubyforge.org
To subscribe or unsubscribe via the World Wide Web, visit
http://rubyforge.org/mailman/listinfo/camping-list
or, via email, send a message
2007/10/8, Berger, Daniel [EMAIL PROTECTED]:
Was there something else I should have used?
Well technically, the id field is not necessary anymore. I don't know
how AR will react if it is set. Also, are you sure that you are using
camping from trunk ?
Btw, here is the schema I have on sqlite :
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jonas Pfenniger
Sent: Monday, October 08, 2007 12:23 PM
To: camping-list@rubyforge.org
Subject: Re: Session handling busted on Oracle
2007/10/8, Berger, Daniel [EMAIL PROTECTED]:
Was there
2007/10/5, why the lucky stiff [EMAIL PROTECTED]:
On Fri, Oct 05, 2007 at 06:08:12PM +0200, Jonas Pfenniger wrote:
I like the idea pretty much. What do you think of simply using a
Camping::H that is process-persistent ?
Sure, and maybe it doesn't really need to be process-persistent.
How
Weird, the ivars field should have been defined in the generate
function. Did you drop the session schema on beforehand ?
--
Cheers,
zimbatm
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
On 7-okt-2007, at 18:55, Jonas Pfenniger wrote:
2007/10/5, why the lucky stiff [EMAIL PROTECTED]:
On Fri, Oct 05, 2007 at 06:08:12PM +0200, Jonas Pfenniger wrote:
I like the idea pretty much. What do you think of simply using a
Camping::H that is process-persistent ?
Sure, and maybe it
Personally I'm all for different session drivers - some kind of
agreement what a session should and sould not do perhaps?
Then you can plug session/cookies, session/files or session/db at
your heart's content. The thing of note is that
I think it should be configurable per app (because some
Hi,
Ruby 1.8.6 (one-click)
Camping 1.5
I'd submit this as a bug, but the tracker says I'm forbidden, so here
you go.
The first problem is that the sql to create the sessions table is
broken. This is what it tried to send:
CREATE TABLE sessions (
id NUMBER(38) NOT NULL PRIMARY KEY (38), --
Sure, and maybe it doesn't really need to be process-persistent.
Wouldn't that limit you to non-load-balanced apps, since you could
only have one simultaneous process if you want session consistency?
Evan
On 10/5/07, why the lucky stiff [EMAIL PROTECTED] wrote:
On Fri, Oct 05, 2007 at
On Oct 5, 2007, at 3:54 PM, Evan Weaver wrote:
Sure, and maybe it doesn't really need to be process-persistent.
Wouldn't that limit you to non-load-balanced apps, since you could
only have one simultaneous process if you want session consistency?
Evan
Can always make it easy and
Okay, I'll remove the test then.
--
Cheers,
zimbatm
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
The @method == post test is a vestige of when Camping just parsed
anything that was POSTed. I didn't really think about it when I
submitted the patch to test the Content-Type.
AFAIK there's no reason not to remove the method test altogether; use
those bytes for something more useful.
2007/9/28, MenTaLguY [EMAIL PROTECTED]:
Perhaps condensing ?
Yes, with a little touch of artistic sense added :)
Cheers,
zimbatm
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
On 9/28/07, Lennon Day-Reynolds [EMAIL PROTECTED] wrote:
I honestly wouldn't expect PUT (or any other HTTP actions other than
GET, POST, and HEAD) to pass the input through a normal
form-decoding step -- most of the time, the payload for a PUT is
going to be XML, JSON, or even raw binary.
On Fri, 2007-09-28 at 22:50 +0200, Jonas Pfenniger wrote:
2007/9/28, Nathaniel Talbott [EMAIL PROTECTED]:
As far as I can tell, sending an actual HTTP PUT request to a Camping
app will never parse the params out of the request body - or am I
going nuts?
No you aren't at all. Actually,
2007/9/27, why the lucky stiff [EMAIL PROTECTED]:
Well, case-sensitiveness would be a prob with 1.5 as well. Since
@env.HTTP_HOST will work and @env.http_host will not.
True. So what do you think of the attached patch ? It removes roughly
50 octets to camping.rb and seems to work pretty well,
On Fri, Sep 28, 2007 at 03:22:23PM -0400, Nathaniel Talbott wrote:
As far as I can tell, sending an actual HTTP PUT request to a Camping
app will never parse the params out of the request body - or am I
going nuts? This code seems to say only POST's will parse the request
body:
elsif
2007/9/27, Ernest Prabhakar [EMAIL PROTECTED]:
I was looking at the test cases on the changeset:
http://code.whytheluckystiff.net/camping/browser/trunk/test?rev=227
However, I didn't see anything about testing with different web
browsers; which is a concern since there was a nasty WEBrick
On Sep 27, 2007, at 10:44, Jonas Pfenniger wrote:
P.S. I mean to file the bug, but got into a fight with the trac
system. ;-(
Patch uploads seem to be broken, so maybe _why can have a look-see?
Manfred
___
Camping-list mailing list
Hi everybody,
I would like to use ruby2ruby in a caming project, but there seems to
be an incompatibility with camping, ruby2ruby and markaby.
Unfortunately I receive strange Markaby::InvalidXhtmlErrors.
To demonstrate, that only combination of all three components causes
the problem I added the
Hi Gregor,
I wasn't able to track the error on Camping side, but it comes from
r2r that defines nil.error_missing.
2007/9/27, Gregor Schmidt [EMAIL PROTECTED]:
require rubygems
require ruby2ruby
# It works in this case but probably breaks r2r on a larger scale.
class NilClass
undef
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 support each and every hack a
library will add to the Ruby
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
On Sep 27, 2007, at 7:35 PM, John Beppu wrote:
^for this reason, you can't really use ruby2ruby in anything
serious. nil.method_missing prevents a lot of exceptions from
being thrown, and there's a lot of code out their that legitimately
needs those exceptions to be thrown for correct
Sorry, if I was misunderstood with saying
Defining NilClass#method_missing for nothing is not too clever, for a
large scale libary IMO.
I was insulting ruby2ruby and not camping. So everthing is okay on this side.
I solved my particular problem with the combination of caming and
ruby2ruby and
2007/9/26, why the lucky stiff [EMAIL PROTECTED]:
Hey, campineros. And many good handshakes to zimbatm for getting
some patches applied.
You're welcome !
Markaby's going to take much more work. Part of the issue is: how
does an app tell Camping that it needs to use Markaby without
On Sep 26, 2007, at 4:24 AM, Evan Weaver wrote:
As far as I can tell, sym_tbl is just a regular st_table, so it's an
expanding array similar to the Ruby heap.
Oddly enough, this:
c = 0
loop { c += 1; puts two_symbols_sitting_in_a_tree_#{c}.to_sym }
was a total crasher on 1.8.5 but works on
On Sep 26, 2007, at 12:35 AM, Julian 'Julik' Tarkhanov wrote:
class H (HashWithIndifferentAccess rescue Hash)
To be clear, I'm really for the hash also because I use the obj =
@items.delete paradigm to signify
take this item out because we'll work with it). But you can
optionally
On Wed, Sep 26, 2007 at 11:33:42AM +0200, Jonas Pfenniger wrote:
I suggest that H is a child of Hash. Extensions can extend it to
provide method_missing goodness or anything else. The only concern I
have is about case-sensitiveness. I am not sure if the http headers
are normalized on input or
Minimal HWIA removal patch attached. So far, the examples, file
upload, sessions, all work under mongrel with the patch applied.
_why, is it something like that that you want ?
I'm not even sure if HWIA extension is useful. The method_missing
shortcut is even shorter than the one with :symbols.
Hi all,
I was looking at the test cases on the changeset:
http://code.whytheluckystiff.net/camping/browser/trunk/test?rev=227
However, I didn't see anything about testing with different web
browsers; which is a concern since there was a nasty WEBrick bug in
the last version. Is there test
On Sep 25, 2007, at 12:40 AM, Geoffrey Grosenbach wrote:
Thanks to contributions by new team member Julian 'Julik' Tarkhanov!
I was just going to remark that some changelog items have a very
distinct Julian style to them. Thanks for the great work guys.
Manfred
2007/9/25, Michael Maltese [EMAIL PROTECTED]:
That makes sense.
An extension, do you mean like camping/session?
Yes, and the gem dependency would only be added to camping-omnibus.
But first, let's release Camping 1.6
--
Cheers,
zimbatm
___
On Sep 25, 2007, at 10:50 PM, Jonas Pfenniger wrote:
can you try the attached patch applied to camping-trunk ?
camping-session.diff
Will try. Cannot find the SVN URL on the site - only the trac is
showing.
As of exceptions - in this case I catch the exception myself and
return from
On Sep 25, 2007, at 11:20 PM, Jonas Pfenniger wrote:
2007/9/25, Julian 'Julik' Tarkhanov [EMAIL PROTECTED]:
Cannot find the SVN URL on the site - only the trac is showing.
`svn co http://code.whytheluckystiff.net/svn/camping/trunk`
Thx. Checked that. No the issue isn't fixed. I suspect
Hey, campineros. And many good handshakes to zimbatm for getting
some patches applied.
So, yeah, I'd really like to get rid of any serious dependancies with
this 1.6 release. Anything that's not in stdlib has to go. Of course,
camping-omnibus will still assume the whole ActiveRecord, Markaby,
On Sep 26, 2007, at 12:26 AM, why the lucky stiff wrote:
class H OpenStruct
How about
class H (HashWithIndifferentAccess rescue Hash)
for the lesser among us (who always include and require)?
--
Julian 'Julik' Tarkhanov
please send all personal mail to [EMAIL PROTECTED]
Regular hashes are good. Would need to make a decision whether to
prefer string or symbol keys.
String is easier to support; Symbol looks prettier in your editor.
Evan
On 9/25/07, Julian 'Julik' Tarkhanov [EMAIL PROTECTED] wrote:
On Sep 26, 2007, at 12:26 AM, why the lucky stiff wrote:
On Sep 26, 2007, at 2:05 AM, MenTaLguY wrote:
behind the
scenes, every uniquely named method introduces a symbol.
yep. but then it's _you_ who calls that accessor, not some John Doe
who sends you a POST :-)
--
Julian 'Julik' Tarkhanov
please send all personal mail to [EMAIL PROTECTED]
On 9/25/07, Julian 'Julik' Tarkhanov [EMAIL PROTECTED] wrote:
this might already be a server crasher. you know how many unique to_syms you
can do before the table is full?
As far as I can tell, sym_tbl is just a regular st_table, so it's an
expanding array similar to the Ruby heap. So there's
2007/9/25, Michael Maltese [EMAIL PROTECTED]:
Remove Markaby? How will that work?
Only as a direct dependency. It will probably kept as an extension.
Basically, you can return a string containing html from your
controller methods even if it's a bit rough.
--
Cheers,
zimbatm
Dear camping users,
having been contacted by Julian Tarkhanov, I am willing to prepare the
next camping release. _why has given me his friendly approval, with
the reserve that camping.rb should be lower than 4k. He also told me
that he wanted to remove the ActiveSupport and Markaby dependencies.
it would be really cool do remove the apache scriptAlias directive so
camping would run everywhere
On 9/23/07, Manfred Stienstra [EMAIL PROTECTED] wrote:
This will result in a short-term release with not too much changes,
used for code stabilization.
When this is done, I will embark on
2007/9/23, Manfred Stienstra [EMAIL PROTECTED]:
This will result in a short-term release with not too much changes,
used for code stabilization.
When this is done, I will embark on 2.0 for bigger changes like
Markaby and AR removal.
Cool, I'm currently trying to get my apps working
CodeHaus has a great introduction of jruby running camping. looks really
nice to have this kind of integration
http://jruby.codehaus.org/The+JRuby+Tutorial+Part+2+-+Going+Camping
--
André G. Cardozo
___
Camping-list mailing list
Dear Campers,
I have created a small social network site using Camping, it is located
at http://dekk.hu/ (it is in hungarian).
The authentication part of the application is written so as I saw in
other applications (@state.user_id = @user.id; redirect Index) But some
user has problem with the
I'm trying to figure out how to get the Reloader to work with this kind
of a setup:
(from http://camping.rubyforge.org/classes/Camping/FastCGI.html)
---
require 'camping/fastcgi'
fast = Camping::FastCGI.new
fast.mount(/blog, Blog)
fast.mount(/tepee, Tepee)
fast.mount(/, Index)
fast.start
Rubyforge is having some mirroring problem with the gem. For now,
download it from here:
http://blog.evanweaver.com/files/rv-3.gem
Thanks
Evan
On 8/8/07, Evan Weaver [EMAIL PROTECTED] wrote:
Hey Campers,
Ditch that pup-tent for Camping deployment. Maybe. Either way, drive
around in Rv 3,
On Mon Aug 06, 2007 at 11:43:06PM +0100, Francisco Cabrita wrote:
Hi all
Is there another gem to manage logins beyound Equipment (basic
login/security) to use under Camping?
not a gem, but check Peglist, for an example of an OpenID consumer:
http://opus.winelibrary.com/peglist/trunk/
To answer my own question, it seems that the requirement to restart
after each change is only the case for fast-cgi.
Also lighttpd behaves very unpredictable to me, so I am now using a
Mongrel/Camping + Apache/ProxyReverse combination which seems to work
much better.
Erik Terpstra wrote:
Hi,
On Aug 1, 2007, at 11:42, Erik Terpstra wrote:
Mongrel/Camping + Apache/ProxyReverse combination which seems to work
much better.
You can also use mongrel directly in development, that way you don't
have to go through Apache. Just camping myapp.rb and hit http://
localhost:3301/.
Manfred
I found the Camping development process with FastCGI to be painful and
frustrating. Error messages were vague or nonexistent (500 Server Error).
Again, I strongly recommend that you find another solution.
On 7/31/07, Brian Corrigan [EMAIL PROTECTED] wrote:
Eli,
This is interesting. I enabled
Thanks for the reply Tim.
I'm using the 1.5 version installed on the dreamhost servers, since I didn't
figure out yet out to use a gem from my local account. Maybe I have to set
the gems path somewhere. I also didn't figure out where did you set the
'path = req.env['REQUEST_URI']' you mention on
Hi Tim,
On Jul 11, 2007, at 3:34 PM, Tim Fletcher wrote:
My opinion would be to keep it seperate so that in can be
usedelsewhere, but provide a hook into Markaby. So something along the
lines of this (completely untested):
Thanks! That's exactly what I needed. The whole implementation
On 7/11/07, Tim Fletcher [EMAIL PROTECTED] wrote:
Any Markaby experts here who can help me figure out the best way to
integrate SVG support into Markaby?
I worked on a project started by Scott Barron to do something similar
for CSS. I'm using SASS now, but here it is for reference:
On 6/27/07, Joshua Schairbaum [EMAIL PROTECTED] wrote:
I can't get fixtures to load correctly in a Mosquito test. The first
fixture loads in the unit test, but the rest don't load at all.
I actually ran into a similar problem, although none of my fixtures were
loaded at all. On running the
On 6/27/07, Joshua Schairbaum [EMAIL PROTECTED] wrote:
I can't get fixtures to load correctly in a Mosquito test. The first
fixture loads in the unit test, but the rest don't load at all.
I haven't touched Mosquito in a while. I've actually hacked out a
simple BDD library for Camping using
On Fri Jun 22, 2007 at 04:51:37PM +0200, Gregor Schmidt wrote:
Hello,
I'm not yet a camping guru nor a RESTafarian, but I try.
Currently I'm trying to build a rest-style web app with sleeping
bag/camping and I may successfully access the index, show, new, create
and edit methods, that are
One more thing: How would I preselect a certain entry like this?
select name=character
option value=marvin selectedMarvin the paranoid
Android/option
option value=arthurArthur Dent/option
option value=zaphodZaphod Beeblebrox/option
/select
Thanks,
Thomas
I unfortunately won't be able to make it if you guys do have something
on the 16th. Plane tickets were a lot more expensive on the 16th
rather than the 17th (for some reason), so the wife veto'd that idea.
;)
The 17th is just tutorial day anyhow; if you could do it that day I'd
be happy to
On 5/4/07, Geoffrey Grosenbach [EMAIL PROTECTED] wrote:
Campers --
In a few weeks there will be a bunch of people in Portland, OR, for a
conference. A long time ago some campers mentioned that might be a
good time for us to get together and hold a mini CampingConf for a few
hours. Is anyone
There should be an abridged conference, that everyone gets by default,
and an unabridged conference that you have to hunt around in the woods
to find.
-M
On 5/4/07, Eric Mill [EMAIL PROTECTED] wrote:
My coworker raises a good point, saying that in the spirit of
CampingConf, it will have to
On Fri, May 04, 2007 at 11:39:01AM -0400, Eric Mill wrote:
My coworker raises a good point, saying that in the spirit of
CampingConf, it will have to take only 5 minutes, and we'll all give
our talks at once, using one single run on sentence.
With a deep breath every 80th character.
You know,
Jonathan - I may be blowing smoke, but what about taking advantage of
CGI's escape and unescape methods?
irb(main):009:0 CGI.escape ruby+talk
= ruby%2Btalk
irb(main):010:0 CGI.unescape ruby%2Btalk
= ruby+talk
Would that do the trick? Just run CGI.unescape on your paramaters?
On 4/29/07,
Well, this is more of an apache question, but...
I'm running a nice little 'cluster' of camping apps and I've recently
started proxying them through apache with mod_proxy, since I found I
was forwarding a lot of ports via ssh otherwise. But anyway, enough of
that.
One of the apps I use to view
On 28-Apr-07, at 1:39 PM, Bil Kleb wrote:
Someone asked:
Are you looking for a REST tutorial, or are you already familiar with
REST and just want to know how to use it with Camping?
I am barely familiar with both REST and Camping, and I'd like
to explore some RESTful Camping as a way to
gem install --source http://code.whytheluckystiff.net camping
Need to update 3 gems from http://code.whytheluckystiff.net
...
complete
ERROR: While executing gem ... (TypeError)
gem install camping-omnibus --source http://code.whytheluckystiff.net
Install required dependency camping? [Yn] y
HI Andre,
I haven't looked at the apache redirect stuff yet, but if you're using
the DH install of ruby and camping, i've figured out the following:
1) DH installed camping with all dependencies EXCEPT markaby, so at
the very least you'll need to install markaby in your own directory
(i'd
On Tue, Mar 27, 2007 at 09:52:49PM -0500, Mark Fredrickson wrote:
I'm unclear on any next steps, but if you like the idea and/or the
patch, please comment on the issue:
http://code.whytheluckystiff.net/camping/ticket/117
The next step is for me to accept it and I accept it. You can go
ahead
carmen - I'm not sure _how_ much this will really help you, but I
recently explored a similar issue with an internal Camping app.
In summary, I needed to make sure that all calls to a specific
controller were always executed serially. i.e. - if two calls came in
at approximately the same time,
On 3/12/07, Jonas Pfenniger [EMAIL PROTECTED] wrote:
Sweet ! I like the concept but your parasite looks to kind :D
Perhaps I should rename it Cute Cuddly Bug or something. Don't blame
me - nobody uploaded a scary looking bug or worm to openclipart.org
:-)
-M
hello all. ive come to the point where im thinking about deploying my 'rails on
rails' app-development solution built in camping.
mainly, im wondering what the barriers to thread-safety are.
for db, i use redland, and afaik it spawns a single db connection for each
find, and keeps a pool
Announcing the the 0.2.0 release of parasite and the camping_generator.
Parasite (from the project page -- http://parasite.rubyforge.org/):
Camping app developers no longer have any reason to envy their Ruby on
Rails friends: Parasite brings generators, environments, and other
Rails-y goodness
On Thu Mar 08, 2007 at 01:28:37AM +, Andrew Ullmann wrote:
Dan Gottlieb [EMAIL PROTECTED] writes:
Hi Folks,
I've been trying to get camping up and running on dreamhost for the
past six hours, but have had no success. I'd really appreciate any
suggestions!
Were you
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,
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
On 1/26/07, Lennon Day-Reynolds [EMAIL PROTECTED] wrote:
That way, your connection will only be established once per model
class, and will stay open between requests. Alternately, you could set
@@dbh instead of @dbh, which would open just one connection for all
your model classes, but you
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?
On 1/19/07, James Earl [EMAIL PROTECTED] wrote:
Hi, I thought it would be fun to try to write a render method that
uses erb for rending. I'm not much of a programmer, but I still like
to try:
module Test
require 'erb'
def render(m)
On Fri, Jan 19, 2007 at 11:02:37AM -0700, James Earl wrote:
Replying to myself... this works, instead of using yield. Not very
pretty I know :)
module Test
require 'erb'
def render(m)
content=ERB.new(IO.read(templates/#{m}.html)).result(binding)
On 1/19/07, why the lucky stiff [EMAIL PROTECTED] wrote:
On Fri, Jan 19, 2007 at 11:02:37AM -0700, James Earl wrote:
Replying to myself... this works, instead of using yield. Not very
pretty I know :)
module Test
require 'erb'
def render(m)
On Tue, Jan 09, 2007 at 02:28:17PM -0500, Michael Gorsuch wrote:
I am doing things right, I just need to render a template instead of
output everything in the controller.
Curious. It should let ya. Can you pass on the software versions
you're using and i'll ticketize.
_why
Hi, Just wondering if ActiveSupport is actually used heavily by
Camping when ActiveRecord is not used? I see ActiveSupport is a
dependency of ActiveRecord, but Camping still wants it even when
ActiveRecord isn't used.
___
Camping-list mailing list
On Sat Jan 06, 2007 at 01:37:56AM -0600, why the lucky stiff wrote:
So would you like this:
$ wget http://rubyforge.org/gems/junebug-0.0.18.gem
$ camping junebug-0.0.18.gem
Or should it be:
$ gem install junebug
$ touch junebug.gemcamp
$ camping junebug.gemcamp
is
$ gem
On Sat, Jan 06, 2007 at 01:37:56AM -0600, why the lucky stiff wrote:
So would you like this:
$ wget http://rubyforge.org/gems/junebug-0.0.18.gem
$ camping junebug-0.0.18.gem
I like that way. Being able to copy a packaged app whole would be very useful
and would make it easy to deploy
Just a few minor changes released before I add gem support.
* R() now accepts a Hash in its arguments which can be used to build a query
string.
R(Topic, @topic.id, :page = 24) #= /topic/14?page=24
* Base#to_a, discussed here.[1] Can be used to forward requests.
Both the camping
On 1/6/07, Geoffrey Grosenbach [EMAIL PROTECTED] wrote:
I'm putting together an episode of the Rails podcast that will be dedicated
to Camping.
I already have the first interview recorded. I'd like to get 3 or 4 more
short interviews (short...maybe 4.096 minutes each).
If you'd like
So would you like this:
$ wget http://rubyforge.org/gems/junebug-0.0.18.gem
$ camping junebug-0.0.18.gem
Or should it be:
$ gem install junebug
$ touch junebug.gemcamp
$ camping junebug.gemcamp
_why
___
Camping-list mailing list
I just picked up Camping and I'm currently reviewing every little
tidbit of information I can find out about it.
I really liked the simplicity of RubyOnRails, but sometimes you want
something fast and everything is relative. After looking at Camping,
RubyOnRails seems like a lot of work if you
why has mentioned this before, but I wrote a small test framework for Camping
and it is now available as a gem.
sudo gem install mosquito
If you'd like to write unit or functional test for your Camping app, check it
out:
On Mon, Nov 27, 2006 at 08:20:00AM -0600, Mark Fredrickson wrote:
I'd like to see the logic in the camping server wrapped into a class.
This would allow other uses. Right now, there is no easy way to pass
in database, url, and port parameters. It would be helpful to have an
API like:
On Sat, Nov 25, 2006 at 02:01:55PM +0100, Manfred Stienstra wrote:
I think this problem was solved just after Camping 1.5 was released.
That's true, this little problem bothered me a lot and maybe it's time for 1.6.
Our milestones: are loading apps straight from a Gem and daemon mode[1].
1101 - 1200 of 1200 matches
Mail list logo