Displaying 11 results from an estimated 11 matches for "tepe".
Did you mean:
type
2006 Aug 13
3
+ migrations in camping
Camping apps are supposed to be little independent apps, often contained in a
single file, which create the database tables and manage them without hassle.
These days it''s common to see in a Camping app:
module Tepee::Models
def self.schema(&block)
@@schema = block if block_given?
@@schema
end
end
Tepee::Models.schema do
create_table :tepee_pages, :force => true do |t|
t.column :title, :string, :limit => 255
t.column :body, :text
end
Tepee::Models::Pag...
2007 Feb 14
0
Linking between Camping apps?
...quot;Small Apps, Many Mounts" idea makes sense, and
interacting with other apps'' models (using the full class name) works
just as it should.
But what is the best way to include links to other mounted applications?
As a toy example, I''m trying to add links to the pages in the Tepee example
to the index page of the Blog example. I''ve got this code:
class Index < R ''/''
def get
@posts = Post.find :all
@pages = Tepee::Models::Page.find :all
render :index
end
end
in Blog::Controllers, and...
2006 May 16
0
! camping 1.4.1.96
...gem install camping --source code.whytheluckystiff.net
The biggest recent change is that the Camping commandline tool now
allows mounting of several apps. I''ve eliminated examples/serve and am
encouraging use of the camping tool. Instead, use:
camping examples/blog/blog.rb examples/tepee/tepee.rb
(or)
camping examples/**/*.rb
This will mount blog.rb at /blog and tepee.rb at /tepee.
Usage: camping app1.rb, app2.rb...
camping, the microframework ON-button for ruby 1.8.4 (2006-05-07)
[i386-freebsd6.0]
Specific options:
-h, --host HOSTNAME Host for web s...
2006 Nov 25
3
[PATCH] HTTP accept filter support for FreeBSD
This small patch extends configure_socket_options to support FreeBSD''s
accf_http(9), which defers accept() until there''s a full HTTP request
to read.
Seems to work fine on 6.1-STABLE. DragonflyBSD should work too provided
the /freebsd/ line is modified to match it.
accf_http(9): http://www.freebsd.org/cgi/man.cgi?query=accf_http&sektion=9
--
Thomas
2006 Mar 26
4
select information from sqlite_master error
Hi,
I''m having fun playing around with Camping...I am slowly working on extending tepee to a personal e-notebook sort of tool (never lose my papers/revisions....hehe).
I''ve given tepee an oswd css design, and am currently adding a admin page that I want to show the ruby version, sqlite version and db size and db stats information.
I tried running:
@db_stats = ZenDesk::Mod...
2007 Aug 10
0
Reloader, Mounts, FastCGI
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
Tried a bunch of different variations of the Reloader including trying
to use the find_app method with no luck. In most variations I don''t get
any errors, but the reloader doesn''t kick in when I modify files. Anyone...
2006 May 18
0
+ Camping::FastCGI
...:Blog ... this goes in your postamble ...
require ''camping/fastcgi''
Camping::FastCGI.start(Blog)
== Mounting Several Apps
require ''camping/fastcgi''
server = Camping::FastCGI.new
server.mount("/blog", Blog)
server.mount("/tepee", Tepee)
server.mount("/", Index)
server.start
For a suitable lighttpd.conf, see the wiki:
http://code.whytheluckystiff.net/camping/wiki/PostAmbles
_why
2007 Sep 25
16
putting away HashWithIndifferentAccess
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,
Mongrel setup that''s in the history books.
Metaid can be removed and
2006 Jul 06
0
+ camping 1.4.120
...whytheluckystiff.net
A bunch of great stuff.
* Camping::Apps stores constants for all loaded apps.
* bin/camping can be given a directory. [1]
Like: camping examples/
* Console mode -- thank zimbatm.
Use: camping -C yourapp.rb
* Call controllers with Camping.method_missing.
Tepee.get(:Index) #=> (Response)
Blog.post(:Delete, id) #=> (Response)
(This is experimental, will probably change.)
* Using \r\n instead of \n on output.
FastCGI has these needs.
_why
[1] http://code.whytheluckystiff.net/camping/wiki/TheCampingServer
2006 Oct 03
4
! camping 1.5 + markaby 0.5
...a complete changelog:
== Camping 1.5
* Camping::Apps stores an array of classes for all loaded apps.
* bin/camping can be given a directory. Like: <tt>camping examples/</tt>
* Console mode -- thank zimbatm. Use: camping -C yourapp.rb
* Call controllers with Camping.method_missing.
Tepee.get(:Index) #=> (Response)
Blog.post(:Delete, id) #=> (Response)
Blog.post(:Login, :input => {''username'' => ''admin'', ''password'' =>
''camping''})
#=> #<Blog::Controllers::Login @user=... >...
2006 Nov 14
11
RESTful mixin, mixin repo?
Hi,
I just put together a little mixin to provide pseudo-RESTful services
in camping apps. Basically, it looks for a hidden _verb field in form
posts, and sets the @method to the supplied value (e.g. put or delete
- which browsers don''t support). This lets you define put and delete
methods in your controllers. Groovy.
Code:
http://pastie.caboo.se/22613
Is there any permanent repo of