Re: setting controllers etc

2011-12-19 Thread icepapih
Okay sure, you can make it simpler, but you still have to type a bunch of stuff when you are making a controller. And now that we have 'set :views' I think it comes with to add the other stuff because you immediately think, oh well then I can set controllers to right? But you can't. That was

Re: Markaby license issue

2011-12-19 Thread Magnus Holm
On Mon, Dec 19, 2011 at 19:10, Dave Everitt dever...@innotts.co.uk wrote: Magnus: this commit implements a tiny and fast Markaby-alternative (called Mab) ... it's completely inline in camping/mab.rb, but it should be fairy easy to create another Rubygem where we could implement for advanced

Plan for 2.2

2011-12-19 Thread Magnus Holm
- I've been rewriting the Reloader/Server code a bit to support rackup-files too. I want to merge that. - Resolve the Markaby-thingie. - Figure out how to deal with static files (see other thread). - Figure out how to handle extensions to Camping (see other thread). Anything else? // Magnus Holm

Camping Server: automatically serve static files from public/

2011-12-19 Thread Magnus Holm
I've been thinking about adding static files support for the Camping Server, but I'm wondering how it should work. Alternative 1: app.rb public public/style.css # example Alternative 2: app.rb app/public app/public/style.css # example And secondly, how would it work if you have

Re: Mab: The tiny Markaby-alternative

2011-12-19 Thread David Susco
Stick with the way we're doing it. I only use markaby when it's easier/prettier to use then HAML (quick one-line helpers and the like). Dave On Mon, Dec 19, 2011 at 4:26 PM, Magnus Holm judo...@gmail.com wrote: On Mon, Dec 19, 2011 at 21:34, Isak Andersson icepa...@lavabit.com wrote: My

Re: Camping Server: automatically serve static files from public/

2011-12-19 Thread Philippe Monnet
Plus people familiar with - or switching from ;-) - Rails and other frameworks would also feel at home. On 12/19/2011 3:46 PM, Jenna Fox wrote: Mmm that's true. Lets stick with that. --- Jenna Fox On Tuesday, 20 December 2011 at 9:37 AM, Magnus Holm wrote: On Mon, Dec 19, 2011 at 23:26,

Re: Markaby license issue

2011-12-19 Thread Jenna Fox
XHTML5 is a fancy name for the way the HTML5 spec grudgingly allows the use of XML-like syntax, allowing for XML Builders like current markaby to be technically allowable as valid HTML. It's not 'real' in that they don't provide validators for it and browsers aren't supposed to parse it as XML

Re: Mab: The tiny Markaby-alternative

2011-12-19 Thread David Susco
So then I'd have to remember it's the opposite of the way it's been? :P Dave On Mon, Dec 19, 2011 at 5:53 PM, Jenna Fox a...@creativepony.com wrote: If no hard dependancies, can we switch it around so core camping is in a camping-seedling gem, and the regular camping gem is actually the one

Re: Mab: The tiny Markaby-alternative

2011-12-19 Thread Jenna Fox
Nah I'd still just think I want camping! I'll install camping! but then it'd just work :P — Jenna Fox On Tuesday, 20 December 2011 at 1:15 PM, David Susco wrote: So then I'd have to remember it's the opposite of the way it's been? :P Dave On Mon, Dec 19, 2011 at 5:53 PM, Jenna Fox

Re: Markaby license issue

2011-12-19 Thread Steve Klabnik
Yep! Granted, if you serve it with an XML MIME type, it must be able to be parsed with an XML parser, so none of that p bthis iis/b insane/i stuff! But still... I actually like XML. There are some of us in Ruby... ___ Camping-list mailing list

Re: Markaby license issue

2011-12-19 Thread Jenna Fox
I tried to use that crazy stuff recently and it just doesn't work, in webkit at least. — Jenna On 20/12/2011, at 4:34 PM, Steve Klabnik st...@steveklabnik.com wrote: Yep! Granted, if you serve it with an XML MIME type, it must be able to be parsed with an XML parser, so none of that p

Re: Markaby license issue

2011-12-18 Thread Magnus Holm
On Sun, Dec 18, 2011 at 02:47, Steve Klabnik st...@steveklabnik.com wrote: A wild project appears: http://krainboltgreene.github.com/dapper-dan/ Some problems: * It doesn't support CSS proxy (div.wrapper! { … ] == div(:id = 'wrapper') { … }) * It doesn't escape stuff * It doesn't specify its

Re: Markaby license issue

2011-12-18 Thread Jenna Fox
Aw.. That is rather disappointing. But still, I see this problem as a chance to be reborn anew. Fresh and clean of the bad lessons learnt by Markaby. We did learn some lessons, didn't we? — Jenna Fox On Sunday, 18 December 2011 at 7:27 PM, Magnus Holm wrote: On Sun, Dec 18, 2011 at

Re: Markaby license issue

2011-12-18 Thread Isak Andersson
Not really sure to be honest. It looks very nice and is basically markaby. But I think we should either create our own, or fork it so we could have our own cool stuff, like the AJAX things someone mentioned. Also, it would be cool if you could also write JS in ruby easily with camping out of

Re: Markaby license issue

2011-12-18 Thread Bartosz Dziewoński
You can't really write Javascript in Ruby due to the way it (and its libraries like jQuery) handle functions. Sure, it could be done, but the code would be ugly. 2011/12/18, Isak Andersson icepa...@lavabit.com: Not really sure to be honest. It looks very nice and is basically markaby. But I

Re: Markaby license issue

2011-12-18 Thread Christian Neukirchen
Jenna Fox a...@creativepony.com writes: the same way linux apps interface with an X11 server today. Hey, we've been there, 15 years ago: http://ftp.x.org/pub/X11R6.8.2/doc/libxrx.1.html -- Christian Neukirchen chneukirc...@gmail.com http://chneukirchen.org

Re: Markaby license issue

2011-12-18 Thread Philippe Monnet
Rumble seems like a good start. So what else would need to be done? On 12/18/2011 1:27 AM, Magnus Holm wrote: On Sun, Dec 18, 2011 at 02:47, Steve Klabnikst...@steveklabnik.com wrote: A wild project appears: http://krainboltgreene.github.com/dapper-dan/ Some problems: * It doesn't support

setting controllers etc

2011-12-18 Thread icepapih
Hey, a few days ago I was having a hard time splitting up my controllers in to different folders. With views you can just do: set :views, *path* in the module App I think it would be nice if we could do the same thing for controllers, models and helpers and whatever. like: set :controllers,

Mab: The tiny Markaby-alternative

2011-12-18 Thread Magnus Holm
https://github.com/camping/camping/pull/50 Right now it's completely inline in camping/mab.rb, but it should be fairy easy to create another Rubygem where we could implement for advanced features (indentation, AJAX-stuff, whatever). // Magnus Holm ___

Re: setting controllers etc

2011-12-18 Thread Bartosz Dziewoński
I don't think I understand the problem - can't you just `require` all the files with controllers? -- Matma Rex ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Mab: The tiny Markaby-alternative

2011-12-18 Thread Bartosz Dziewoński
I don't have time to look thru now, but it doesn't seem to support boolean attributes (e.g. `input checked:true` should render input checked=checked /)? I was very much missing this feature in old Markaby, and finally even wrote a patch, as you might remember[1]. It'd probably be quite easy to

Re: setting controllers etc

2011-12-18 Thread icepapih
What I am doing now is basically the same as requiring. If I do require with all the files, they don't become a part of the controllers module. The problem is that having to require (or in my case 'add') ever controller is *not* a very good way to work. It would be much better to be able to just

Re: setting controllers etc

2011-12-18 Thread icepapih
Sure, but say that you want to have lots and lots of controllers, I don't think anyone wants to sit there and write a module for each one to be honest. And with that way of thinking we shouldn't even be able to set :views. We would have to write a module App::Views for every view. set :views is

Re: setting controllers etc

2011-12-18 Thread Jenna Fox
sit there and write a module for each one? You mean, type 'MyApp::Controllers::'? You could make it simpler by adding a C = MyApp::Controllers line before your controller requires, then you could write 'class C::Whatever R('/url')' sort of stuff. I really don't like the magic of set :views

Re: Camping.use Before, Rack::File.new('public')

2011-12-17 Thread Magnus Holm
2011/12/16 Bartosz Dziewoński matma@gmail.com: I usually just use Rack::Static: module App  use Rack::Static, :urls = ['/static'] end This would serve ./static/jquery.js at localhost:3301/static/jquery.js, though - with the directory included in URL - but will also serve files from

Markaby license issue

2011-12-17 Thread Magnus Holm
Okay, we might have a slight problem: It doesn't seem that Markaby ever had a specific license. This means that it's currently Copyright © _why and we might not have the right to re-distribute (or contribute to) it. So first of all: if you've ever seen a LICENSE/COPYING-file (or something else

Re: Markaby license issue

2011-12-17 Thread Jenna Fox
Nice! Lets just all use this thing! What say you, everyone? — Jenna Fox On Sunday, 18 December 2011 at 12:47 PM, Steve Klabnik wrote: A wild project appears: http://krainboltgreene.github.com/dapper-dan/ ___ Camping-list mailing list

Camping.use Before, Rack::File.new('public')

2011-12-16 Thread Magnus Holm
Here's one useful snippet: def (Before=).new(a,*o)Rack::Cascade.new(oa)end This means that this app: module App use Before, Rack::File.new('public') end Will pass all requests through Rack::File.new('public') first, and only proceed to App if that returns 404. This can be very useful

Re: Camping.use Before, Rack::File.new('public')

2011-12-16 Thread David Susco
I think that's immensely useful. It'll allow me to keep JS/CSS/HTML separate from the app files but still packaged with the app. Dave On Fri, Dec 16, 2011 at 3:13 PM, Magnus Holm judo...@gmail.com wrote: Here's one useful snippet:  def (Before=).new(a,*o)Rack::Cascade.new(oa)end This means

Riak on Camping

2011-12-06 Thread Isak Andersson
Good day, does anyone here have a clue on how to make use of the NoSQL database Riak with Camping? I am building my website and Riak seems like pretty much the ultimate database! This would probably ruin every little feature in ActiveRecord, I don't think I'd be able to do any has_many's

Re: Riak on Camping

2011-12-06 Thread Jenna Fox
You can't use ActiveRecord with map-reduce databases anyhow, without loosing a bunch of performance and features. It's best to use a specialised adaptor just for Riak. It looks a bit similar to CouchDB, so you might also like to have a look at that if you can't find any good rubygems for riak.

Re: Riak on Camping

2011-12-06 Thread Jenna Fox
I can deploy that update to whywentcamping later. — Jenna On 07/12/2011, at 10:09 AM, Isak Andersson wrote: Nah, that's what I imagined. CouchDB indeed seems a lot like Riak but I think I'm gonna stick to Riak as it is attractive somehow! There seems to be some rubygems one that is only

Re: Camping goes heroku. Hopefully.

2011-11-18 Thread Anthony Durity
Thanks for the great instructions Phillippe. Are you French? Or perhaps Canadian? On Sun, Nov 13, 2011 at 6:20 PM, Philippe Monnet r...@monnet-usa.comwrote: Here is my recipe: 1. Setup up up your Gems prerequisites: create a .gems file in the root folder and list each gem version on a

Re: Markaby + HTML5

2011-11-18 Thread Anthony Durity
No, I guess not. The changes need tests and some more love. They work for me. On Sat, Nov 12, 2011 at 10:36 AM, Dave Everitt dever...@innotts.co.ukwrote: Anthony - that's great. I think I mentioned your fork in an earlier response - have those changes been been pulled into

Re: Camping goes heroku. Hopefully.

2011-11-14 Thread Steve Klabnik
Just remember that the free version of Heroku doesn't include database support. Whaaa? Since when? http://www.heroku.com/pricing#0-0 says you get 5MB for $0. Also, I'm pretty sure .gems is deprecated, and you have to use Bundler soon. ___

Re: Camping goes heroku. Hopefully.

2011-11-14 Thread Magnus Holm
On Mon, Nov 14, 2011 at 19:44, Steve Klabnik st...@steveklabnik.com wrote: Just remember that the free version of Heroku doesn't include database support. Whaaa? Since when? http://www.heroku.com/pricing#0-0 says you get 5MB for $0. Hm… Really? It seems I got the wrong impression after their

Re: Camping goes heroku. Hopefully.

2011-11-13 Thread Piotr S
Well yeah. I know about the gems and configu.ru. It's the magic part of switching between databases that really gives me the mental workout. I'm looking for some working solutions to a problem that I'd imagine most of the Camping hackers face because where else could we possibly deploy our apps if

Re: Markaby + HTML5

2011-11-05 Thread Dave Everitt
Hi Nokan for current efforts in this direction, see here: https://github.com/markaby/markaby/issues/18 and here: https://github.com/markaby/markaby/pull/26 and note: https://github.com/igravious/markaby/commit/8be76d138228a32500f96140afca79bf95751e40 Or even: https://github.com/zimbatm/miniby

Re: Markaby + HTML5

2011-11-05 Thread Jenna Fox
If you add the line '@auto_validation = false' to the beginning of your layout, markaby aught to stop minding if you use things unspecified in xhtml. I'm not too sure if that will let you use unknown tags, or just unknown attributes. If you have any trouble getting unknown tags to work, try

Re: Passenger, Rack and __END__ error

2011-10-14 Thread Matthias Wächter
On 13.10.2011 22:54, Magnus Holm wrote: 2011/10/13 Matthias Wächtermatth...@waechter.wiz.at: On 13.10.2011 20:02, Magnus Holm wrote: I don't think rackup-files can have __END__. https://github.com/rack/rack/blob/master/test/builder/end.ru – Matthias It's broken:

Re: Passenger, Rack and __END__ error

2011-10-14 Thread Magnus Holm
right. This will probably never work, though: [http://pastie.org/2693243] – Matthias Woah, I never realized that __END__ was valid on its own line inside a heredoc/string… ___ Camping-list mailing list Camping-list@rubyforge.org

Re: Passenger, Rack and __END__ error

2011-10-14 Thread Matthias Wächter
On 14.10.2011 09:20, Magnus Holm wrote: right. This will probably never work, though: [http://pastie.org/2693243] – Matthias Woah, I never realized that __END__ was valid on its own line inside a heredoc/string… and it’s valid within a multiline comment, too: =begin … __END__ … =end and

Re: which view am I inside?

2011-10-14 Thread Magnus Holm
On Thu, Oct 13, 2011 at 23:36, Nokan Emiro uzleep...@gmail.com wrote: My question was about the layout.  Suppose that Alfa and Beta are menu items in the layout, and I want to mark the current menu item with different appearance: module App::Views   def layout     case .  #--- Which

Re: Passenger, Rack and __END__ error

2011-10-14 Thread Matthias Wächter
On 14.10.2011 08:55, Matthias Wächter wrote: This will probably never work, though: [http://pastie.org/2693243] I filed that as a Rack bug. Maybe it gets fixed someday. https://github.com/rack/rack/issues/254 – Matthias ___ Camping-list mailing

Re: Camping into production

2011-10-13 Thread Magnus Holm
On Wed, Oct 12, 2011 at 22:20, Nokan Emiro uzleep...@gmail.com wrote: It seems to me that PATH_INFO is still not properly handled, but that it's always empty. You are right, PATH_INFO is always empty.  If I fill it with the $SCRIPT_NAME value, controllers can be accessed again.  But links

Passenger, Rack and __END__ error

2011-10-13 Thread Dave Everitt
I might be missing something stupid.. but Passenger doesn't like __END__ http://pastie.org/2689517 Same code (omitting requires) fine in Camping server, not with Passenger/Rack: compile error config.ru:33: syntax error, unexpected $end, expecting ')' __END__ ^ Works fine under Passenger

Re: Camping into production

2011-10-13 Thread Nokan Emiro
SCRIPT_NAME is the mount-path. PATH_INFO is the internal app-path. So if you want your application available at xxx.com/my_app/, then the request xxx.com/my_app/add will look like this: SCRIPT_NAME=/my_app PATH_INFO=/add If it's available at xxx.com/, then xxx.com/add will look like

how to catch 404s?

2011-10-13 Thread Nokan Emiro
How can I hide/catch the Camping problem! /xxx not found pages? It would be great to define my own handler instead, or simply redirect to the root of my app. ___ Camping-list mailing list Camping-list@rubyforge.org

Re: Passenger, Rack and __END__ error

2011-10-13 Thread Matthias Wächter
On 13.10.2011 20:02, Magnus Holm wrote: I don't think rackup-files can have __END__. https://github.com/rack/rack/blob/master/test/builder/end.ru – Matthias ___ Camping-list mailing list Camping-list@rubyforge.org

Re: Camping into production

2011-10-13 Thread Magnus Holm
On Thu, Oct 13, 2011 at 21:16, Nokan Emiro uzleep...@gmail.com wrote: SCRIPT_NAME is the mount-path. PATH_INFO is the internal app-path. So if you want your application available at xxx.com/my_app/, then the request xxx.com/my_app/add will look like this:  SCRIPT_NAME=/my_app  

Re: how to catch 404s?

2011-10-13 Thread Magnus Holm
module MyApp def r404(path) 404: #{path} # or you can render a template: render :four_oh_four end end There's also r500(klass,method,exception) which gets called when an exception happens, and r501(method) which gets called when a route is found, but the controller doesn't have the

Re: run my Camping app as a Rack app

2011-10-12 Thread Magnus Holm
On Tue, Oct 11, 2011 at 18:21, Nokan Emiro uzleep...@gmail.com wrote: Thanks for the explanation. I have had the create method in my application, it calls Models::create_scheme, because I have migrations too. (Everything encapsulated, that's what I like about Camping.) Actually the problem

Re: Camping into production

2011-10-12 Thread Magnus Holm
On Wed, Oct 12, 2011 at 21:07, Nokan Emiro uzleep...@gmail.com wrote: Thanks!   I had to hack a bit in camping-2.1.469.gemspec, but now it works. I'm sorry to say this but it still does not work.  :(    I was incautious. After the redirect it shows the right URL in the browser.  That's

Re: Camping into production

2011-10-12 Thread Nokan Emiro
It seems to me that PATH_INFO is still not properly handled, but that it's always empty. You are right, PATH_INFO is always empty. If I fill it with the $SCRIPT_NAME value, controllers can be accessed again. But links generated by R() are still wrong: a 'Add', :href = R(Add) on a page

Camping into production

2011-10-11 Thread Nokan Emiro
Hi, As you already know I'm working on turning my Camping app into production. Unfortunatelly I find lots of problems on my way. The next one is here: My Camping app does something dirty on the 'redirect CtrllerName' lines. The webserver serves https requests, and before I placed

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 09:02, Nokan Emiro uzleep...@gmail.com wrote: Hi, As you already know I'm working on turning my Camping app into production.  Unfortunatelly I find lots of problems on my way. The next one is here: My Camping app does something dirty on the 'redirect CtrllerName'

Re: run my Camping app as a Rack app

2011-10-11 Thread Magnus Holm
On Sun, Oct 9, 2011 at 15:43, Nokan Emiro uzleep...@gmail.com wrote: Hi, Could you please show me the preferred/nicest way to run my Camping application as a Rack all?  I like doing my work in Rack because it's easy to run my app in a standalone webserver, or mount it to a path in my

Re: run my Camping app as a Rack app

2011-10-11 Thread Nokan Emiro
Thanks for the explanation. I have had the create method in my application, it calls Models::create_scheme, because I have migrations too. (Everything encapsulated, that's what I like about Camping.) Actually the problem with X.create was that my fastcgi-camping-server did not initialize any

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 18:00, Nokan Emiro uzleep...@gmail.com wrote: Sensiteve parts are masked with ***. http://pastie.org/2676396 u. Thanks. This is a bug in Camping which has been fixed in 5423c7a0. You can install the latest development version of Camping by running: gem

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 20:46, Nokan Emiro uzleep...@gmail.com wrote: Thanks!   I had to hack a bit in camping-2.1.469.gemspec, but now it works. :) u Damn, I hate these issues with YAML and gemspecs :/ I uploaded a new version that hopefully will install nicely on 1.8 too. Could you try to

Re: Camping into production

2011-10-11 Thread Nokan Emiro
It has still the same 4 problematic lines: s.date = %q{2011-10-11 00:00:00.0Z} ... s.add_development_dependency(%qrake, [#YAML::Syck::DefaultKey:0xb67fdb98 0.8.7]) ... s.add_dependency(%qrake, [#YAML::Syck::DefaultKey:0xb67fdb98 0.8.7]) ... s.add_dependency(%qrake,

Re: run my Camping app as a Rack app

2011-10-10 Thread Anthony Durity
Hi all, What I do is check the ENV variable ... and I use Passenger Phusion to run my Rack apps So ... like this ... install Apache and Passenger Phusion and point passenger at a rack_apps dir (under the web server root) Now I have /var/www/localhost/htdocs - web server doc root

Re: run my Camping app as a Rack app

2011-10-09 Thread Bartosz Dziewoński
I'm not sure what are you trying to accomplish. Can't you just create a config.ru file like this: require './yourapp.rb' run YourApp And then use `rackup` to start the app? config.ru files are widely understood, the same thing works for example with mod_passenger or Heroku. -- Matma Rex

Re: run my Camping app as a Rack app

2011-10-09 Thread Nokan Emiro
Yes, You are right, that works in this way. But this is a bit different what I want to do. rackup runs my Rack application in a webserver (webrick or mongrel), and I can't use orher handlers than these. I prefer to use Rack in a bit lower level. Suppose that in a standard Ruby script the

Re: run my Camping app as a Rack app

2011-10-09 Thread Bartosz Dziewoński
The app itself implements Rack protocol. (That is, if you do Camping.goes :App, then your obj variable would be App - it implements .call, I think it's all that's needed?) -- Matma Rex ___ Camping-list mailing list Camping-list@rubyforge.org

Re: run my Camping app as a Rack app

2011-10-09 Thread Nokan Emiro
The app itself implements Rack protocol. Yes, that's what I've already tried. It is the case when my app stops whenever the first fastcgi request arrives: /usr/lib/ruby/1.8/rack/utils.rb:23:in `unescape': undefined method `tr' for nil:NilClass (NoMethodError) from (eval):33:in

Re: run my Camping app as a Rack app

2011-10-09 Thread Bartosz Dziewoński
Does it work the regular way? (via rackup) Does it work your way, but with a different handler? Which version of rack you're using? I can't find any usage of tr method in 1.3.4's rack/utils.rb, and line 37 of rack/session/cookie.rb is a comment. -- Matma Rex

Re: run my Camping app as a Rack app

2011-10-09 Thread Nokan Emiro
Are you running Apache? No, the webserver is nginx, and I use fastcgi to attach my apps into it. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: run my Camping app as a Rack app

2011-10-09 Thread Nokan Emiro
Does it work the regular way? (via rackup) Yes, rackup makes my app run. In this case an other probleme occures, that is more Camping specific. The ActiveRecord cannot connect to any database. I think Camping makes some initialization before starting up my app, that is missing in this case.

Re: run my Camping app as a Rack app

2011-10-09 Thread Jenna Fox
It looks as if your application is getting a FastCGI request without the 'PATH_INFO' environment variable. I'm not too sure what to make of that. Can you try a rackup which runs this app? require 'rack' require 'pp' App = lambda do |env| body = '' PP.pp env, body [200,

Re: Feature: Inline templates?

2011-10-07 Thread Dave Everitt
On Fri, Aug 26, 2011 at 16:14, Dave Everitt dever...@innotts.co.uk wrote: Since no-one has replied, for what it's worth (as a very amateur camper), I've always been happy with simple regular Markaby views and the v2.1 options for external templates. Also, my modest one-file apps have their

Re: Simplest easiest rss feeds?

2011-10-05 Thread Magnus Holm
On Wed, Oct 5, 2011 at 02:20, Jenna Fox a...@creativepony.com wrote: I'm looking to make rss feeds of some of my controller data - what's the simplest way to render some? Is there some way I can feed a json-like arrays of hashes type of structure in to some gem and get out an xml feed? Would it

Re: Simplest easiest rss feeds?

2011-10-05 Thread Jonathan Groll
On Wed, 5 Oct 2011 11:20:31 +1100, Jenna Fox a...@creativepony.com wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; windows-1252 (quoted-printable)] [1.2 text/html; windows-1252 (quoted-printable)] I'm looking to make rss feeds of some of my controller data - what's the simplest

Re: Helpers and R() routes

2011-10-05 Thread Magnus Holm
I've added a failing test: https://github.com/camping/camping/commit/7aa0e1fa934806f964ad120c1b4bb21783c7e008 Will look into it later :-) // Magnus Holm On Wed, Oct 5, 2011 at 03:34, Jenna Fox a...@creativepony.com wrote: It'd be cool if in the next version of camping, you could use

Re: Simplest easiest rss feeds?

2011-10-05 Thread Bartosz Dziewoński
I was only once generating an RSS feed, and I just did it with Markaby. You can see live example here: http://warlightrss.heroku.com/general - and the source code: (RSS generation is at the very bottom) http://warlightrss.heroku.com/source/web.rb Also, don't judge, this is old (still just works,

Simplest easiest rss feeds?

2011-10-04 Thread Jenna Fox
I'm looking to make rss feeds of some of my controller data - what's the simplest way to render some? Is there some way I can feed a json-like arrays of hashes type of structure in to some gem and get out an xml feed? Would it be more of a builder sort of operation? — Jenna

Re: Simplest easiest rss feeds?

2011-10-04 Thread Jenna Fox
So there is! Thanks Steve! — Jenna On 05/10/2011, at 12:48 PM, Steve Klabnik wrote: There's an RSS generator in the standard library. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Maintenance release of 2.1

2011-10-03 Thread Magnus Holm
On Sun, Oct 2, 2011 at 14:26, Jenna Fox a...@creativepony.com wrote: I wouldn't bother with reducing the revision number. If anything having weirdly high ones makes the project seem more alive and active. Is the minor number even functionally useful here? Maybe we should ditch that and just

Re: Maintenance release of 2.1

2011-10-03 Thread Jenna Fox
True that. Meanwhile, have you guys seen http://twitter.github.com/bootstrap/ ? It looks pretty nice, and I imagine something like that could be pretty powerful if deeply integrated with a version of markaby, as a 'ui toolkit for the web' sort of thing - a nice sensible clean default style for

Re: Maintenance release of 2.1

2011-10-03 Thread Bartosz Dziewoński
Personally I hate it. It's like table border=2 and font size=7 once again, except this time camouflaged as CSS classes. The only good things in there are either styled pretty much the same way by default (like, say, headers), or require a line of code (@basefont, layouts). -- Matma Rex

Re: Maintenance release of 2.1

2011-10-03 Thread Jenna Fox
Oh right, but you can use that LESS thing I think to compile the bootstrap properties in to your regular CSS, so you keep using good quality selectors, and bootstrap essentially augments your CSS with useful macros. Another way to do it is to define markaby helpers for each kind of thing, so you

Re: Feature: Simple controllers?

2011-10-02 Thread Magnus Holm
2011/9/24 Bartosz Dziewoński matma@gmail.com: So, are we reverting it? It's still in the latest GitHub commit. I've reverted it. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Maintenance release of 2.1

2011-10-02 Thread Magnus Holm
I'm thinking of releasing 2.1.458 which includes a few more features (better cookie support, inline templates etc), but mainly to fix some incompatibility issues with Rack. I'm not going to document the new features yet, so consider them experimental in this patch-release. As for the version,

Re: Feature: Inline templates?

2011-10-02 Thread Magnus Holm
2011/9/24 Bartosz Dziewoński matma@gmail.com: A comment after some time: I'd appreciate it more if I could just have one external file with all the templates, and one with the Camping code, and I could link in the templates to parse using this mechanism. This works, although it's kinda

Re: failing test

2011-10-02 Thread Paul van Tilburg
On Sat, Sep 24, 2011 at 11:01:42PM +0200, Magnus Holm wrote: Pretty sure this is related to incompatability with the latest Rack (which suddenly slightly broke the Session-API). It's fixed in latest master. Maybe we should just do a release soon. Alright. I will follow with packaging once

Re: Since we're talking about couch

2011-09-30 Thread Daniel Bryan
i like it your library is nice n' neat On Saturday, 1 October 2011 at 10:37 AM, Jenna Fox wrote: Here's mine: https://github.com/Bluebie/chill Fairly short and simple, like couchdb. — Jenna ___ Camping-list mailing

Re: failing test

2011-09-24 Thread Magnus Holm
Pretty sure this is related to incompatability with the latest Rack (which suddenly slightly broke the Session-API). It's fixed in latest master. Maybe we should just do a release soon. // Magnus Holm On Sat, Sep 24, 2011 at 22:22, Paul van Tilburg p...@luon.net wrote: Hi! I am in the

Re: Feature: Simple controllers?

2011-09-24 Thread Bartosz Dziewoński
So, are we reverting it? It's still in the latest GitHub commit. (If it was unclear, I agree with Jenna - while certainly neat, this should go.) -- Matma Rex ___ Camping-list mailing list Camping-list@rubyforge.org

Re: What is the Best Way to Install Camping in 2011?

2011-09-07 Thread Ed Heil
Thanks, that worked! On the downside, all my gems *except* camping now emit invalid gemspec messages whenever I require rubygems... But I assume at this point the issue is nothing to do with Camping and will see if I can google me up an answer. (I wonder if it's OK to just delete all those

Re: What is the Best Way to Install Camping in 2011?

2011-09-07 Thread Ed Heil
And that turned out to be fixable with a global search and replace of 00:00:00.0Z to in my gemspecs. Rock. :) On 9/7/11 8:39 AM, Ed Heil wrote: Thanks, that worked! On the downside, all my gems *except* camping now emit invalid gemspec messages whenever I require rubygems... But

Re: What is the Best Way to Install Camping in 2011?

2011-09-07 Thread Magnus Holm
On Wed, Sep 7, 2011 at 16:00, Ed Heil edh...@fastmail.fm wrote: And that turned out to be fixable with a global search and replace of 00:00:00.0Z to in my gemspecs.  Rock. :) Great! Feel free to bother us more if you encounter more problems :)

Re: What is the Best Way to Install Camping in 2011?

2011-09-06 Thread Ed Heil
Oh, this is on OS X -- Snow Leopard, using the built-in Ruby. On 8/30/11 3:18 AM, Magnus Holm wrote: We definitely need to put out a new release. Try this in the meantime: gem install camping --source http://gems.judofyr.net/ (I've just updated the DNS record, so it might take an hour or

Re: Teaching

2011-09-01 Thread Anonymous Waffles
I don't think I know enough to contribute anything, but I'll see if I could perhaps write up something from what I learn here, perhaps making it more user-friendly. -Waffles On Wed, Aug 31, 2011 at 6:11 PM, Jenna Fox a...@creativepony.com wrote: Would you like to write some content for it

Re: Teaching

2011-09-01 Thread Jenna Fox
Great! If you'd like help with anything you know where to come. :D On 02/09/2011, at 9:17 AM, Anonymous Waffles wrote: I don't think I know enough to contribute anything, but I'll see if I could perhaps write up something from what I learn here, perhaps making it more user-friendly.

Re: Teaching

2011-08-31 Thread Dave Everitt
I think there's nothing more fun than finding noobs and teaching them how to make awesome hacks! I know some of you guys think like I do, and I want to know which ones of you that is? I'm one of those. I've a project in mind, and it's going to take some doing. I could do it myself, but

Re: Teaching

2011-08-31 Thread Jenna Fox
Everyday is WhyDay. You should know this! :D I'll email you directly with infos later. — Jenna On 31/08/2011, at 9:38 PM, Dave Everitt wrote: I think there's nothing more fun than finding noobs and teaching them how to make awesome hacks! I know some of you guys think like I do, and I want

Re: A question about the ecosystem.

2011-08-31 Thread David Susco
I had to tie into an LDAP db so I just used net/ldap and a class I wrote. I had problems getting will_paginate to work. I eventually just hacked together something else. It doesn't really amount to much more than what I was having to do with will_paginate, so it works for me. :P Dave On Tue,

Re: Teaching

2011-08-31 Thread Dave Everitt
Everyday is WhyDay. You should know this! :D oh yeh - I forgot :-) I'll email you directly with infos later. k ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Teaching

2011-08-31 Thread Anonymous Waffles
I would personally like to see the Camping book expanded on more, but I can't wait to see some more projects for spreading Camping. -Waffles On Wed, Aug 31, 2011 at 10:02 AM, Dave Everitt dever...@innotts.co.ukwrote: Everyday is WhyDay. You should know this! :D oh yeh - I forgot :-) I'll

Re: Teaching

2011-08-31 Thread Jenna Fox
Would you like to write some content for it Waffles? The version at http://whywentcamping.com/The-Camping-Book is a wiki - you can edit it by clicking the pencil, though you need a github account as it's a mirror of the camping/camping github wiki On 01/09/2011, at 9:21 AM, Anonymous Waffles

<    1   2   3   4   5   6   7   8   9   10   >