Re: Feature: Simple controllers?

2011-10-02 Thread Magnus Holm
2011/9/24 Bartosz Dziewoński : > 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

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 http://rubyforge.org/mailman/listinfo/

Re: Feature: Simple controllers?

2011-08-25 Thread John Beppu
Being able to name controllers definitely makes it more valuable. If I had to criticize Sinatra and its clones, I would criticize their lack of named controllers. It's difficult to write URL generation functions without them. I've only seen one Sinatra clone (Slim in php) that allows controllers

Re: Feature: Simple controllers?

2011-08-25 Thread Jenna Fox
I vote revert. This is just sinatra - I feel it's important camping maintains the cleanliness and clarity of functionality given to us by using simple classes. It's something we have which AFAIK no other ruby web framework does - you know exactly how it works, because it's just a class. On 26/

Re: Feature: Simple controllers?

2011-08-25 Thread Magnus Holm
On Aug 25, 2011 10:54 PM, "John Beppu" wrote: > > If I wanted that notation, I'd just use Sinatra. ;) > > Like Bartosz, I like having named controllers so that I can pass them to R() when generating links. Does it make it better that you can name them too? Index = get "/" do ... end Se

Re: Feature: Simple controllers?

2011-08-25 Thread Magnus Holm
On Thu, Aug 25, 2011 at 21:28, David Susco wrote: > Would you have to write the RE for every declaration? > > ie... > >  module App::Controllers >   get '/(.*)' do |name| >     "Hello #{name}" >   end > >   put '/(.*)' do |name| >     "Hello #{name}" >   end >  end That wouldn't work. Camping wou

Re: Feature: Simple controllers?

2011-08-25 Thread John Beppu
If I wanted that notation, I'd just use Sinatra. ;) Like Bartosz, I like having named controllers so that I can pass them to R() when generating links. On Thu, Aug 25, 2011 at 10:20 AM, Magnus Holm wrote: > I just pushed a new feature to Camping: Simple controllers. > > module App::Controller

Re: Feature: Simple controllers?

2011-08-25 Thread David Susco
Would you have to write the RE for every declaration? ie... module App::Controllers get '/(.*)' do |name| "Hello #{name}" end put '/(.*)' do |name| "Hello #{name}" end end Dave On Thu, Aug 25, 2011 at 1:20 PM, Magnus Holm wrote: > I just pushed a new feature to Camping

Re: Feature: Simple controllers?

2011-08-25 Thread Bartosz Dziewoński
Personally I probably won't be using it, I like having class names around and being able to link to them with R(). (I change my paths often.) Certainly won't hurt to have it, for really small apps. -- Matma Rex ___ Camping-list mailing list Camping-list@

Feature: Simple controllers?

2011-08-25 Thread Magnus Holm
I just pushed a new feature to Camping: Simple controllers. module App::Controllers get '/(.*)' do |name| "Hello #{name}" end end What do you think? Useful? Or should I revert it? It currently costs us 87 bytes. // Magnus Holm ___ Cam