Re: using Tilt requires full controller reference

2010-07-23 Thread Magnus Holm
You'll have to agree that "include X" sounds so much better than
"include Controllers"? :-)

Could you test one more thing for me? Without a Tilt patch, can you
add `require 'camping/templates'` right after `require 'camping'` and
check if it still works?

Here you go: `gem install camping --source http://gems.judofyr.net/`

// Magnus Holm



On Fri, Jul 23, 2010 at 21:48, David Susco  wrote:
> lol, at first I thought you were messing with me. X is the apps
> Controllers module, correct?
>
> Will I always have to do this when using Tilt? Or only until this
> patch makes it into a gem?
>
> Dave
>
> On Fri, Jul 23, 2010 at 3:09 PM, Magnus Holm  wrote:
>> Wait, forget about that Tilt patch. Try this instead:
>>
>>  module App
>>    include X
>>  end
>>
>> // Magnus Holm
>>
>>
>>
>> On Fri, Jul 23, 2010 at 18:01, David Susco  wrote:
>>> Hey Magnus, I patched the files and it's still the same thing. Here's
>>> the backtrace, let me know if you want browser dump as well.
>>>
>>> 127.0.0.1 - - [23/Jul/2010 11:48:39] "GET /Home HTTP/1.1" 500 95353 0.3607
>>> ArgumentError: Anonymous modules have no name to be referenced by
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:585:in
>>> `to_constant_name'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:391:in
>>> `qualified_name_for'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:104:in
>>> `const_missing'
>>>        /var/www/apps/crud/riki/views/layout.haml:23:in `evaluate_source'
>>>        /usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:195:in 
>>> `evaluate'
>>>        /usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:560:in 
>>> `evaluate'
>>>        /usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:128:in 
>>> `render'
>>>        (eval):15:in `render'
>>>        (eval):15:in `render'
>>>        ./riki/controllers.rb:85:in `get'
>>>        (eval):27:in `send'
>>>        (eval):27:in `service'
>>>        (eval):27:in `catch'
>>>        (eval):27:in `service'
>>>        (eval):38:in `call'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in
>>> `call'
>>>        (eval):42:in `call'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in
>>> `call'
>>>        /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in 
>>> `_call'
>>>        /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in 
>>> `call'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in
>>> `call'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in
>>> `call'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:242:in
>>> `call'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in
>>> `call'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in
>>> `service'
>>>        /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
>>>        /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
>>>        /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
>>>        /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
>>>        /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
>>>        /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
>>>        /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
>>>        /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
>>>        /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
>>>        /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:14:in
>>> `run'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:155:in 
>>> `start'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:144:in
>>> `start'
>>>        
>>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:83:in 
>>> `start'
>>>        /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/camping:9
>>>        /usr/local/bin/camping:19:in `load'
>>>        /usr/local/bin/camping:19
>>>
>>>
>>> On Wed, Jul 21, 2010 at 5:26 PM, Magnus Holm  wrote:
 A reference to a controller is also a constant. Everything which
 starts with an uppercase letter is in fact a constant.

 Hm. Could you give me a backtrace? It seems like it's ActiveSupport's
 const_missing or something like that.

 You don't really need to read/understand all those comments in the
 patch. It's all related to the fact that Tilt defines the template as
 a method under the Tilt::CompileSite (which is included in each
 request in Camping) so when you call #render it actually c

Re: using Tilt requires full controller reference

2010-07-23 Thread David Susco
lol, at first I thought you were messing with me. X is the apps
Controllers module, correct?

Will I always have to do this when using Tilt? Or only until this
patch makes it into a gem?

Dave

On Fri, Jul 23, 2010 at 3:09 PM, Magnus Holm  wrote:
> Wait, forget about that Tilt patch. Try this instead:
>
>  module App
>    include X
>  end
>
> // Magnus Holm
>
>
>
> On Fri, Jul 23, 2010 at 18:01, David Susco  wrote:
>> Hey Magnus, I patched the files and it's still the same thing. Here's
>> the backtrace, let me know if you want browser dump as well.
>>
>> 127.0.0.1 - - [23/Jul/2010 11:48:39] "GET /Home HTTP/1.1" 500 95353 0.3607
>> ArgumentError: Anonymous modules have no name to be referenced by
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:585:in
>> `to_constant_name'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:391:in
>> `qualified_name_for'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:104:in
>> `const_missing'
>>        /var/www/apps/crud/riki/views/layout.haml:23:in `evaluate_source'
>>        /usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:195:in 
>> `evaluate'
>>        /usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:560:in 
>> `evaluate'
>>        /usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:128:in 
>> `render'
>>        (eval):15:in `render'
>>        (eval):15:in `render'
>>        ./riki/controllers.rb:85:in `get'
>>        (eval):27:in `send'
>>        (eval):27:in `service'
>>        (eval):27:in `catch'
>>        (eval):27:in `service'
>>        (eval):38:in `call'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in
>> `call'
>>        (eval):42:in `call'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in
>> `call'
>>        /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in 
>> `_call'
>>        /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in 
>> `call'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in
>> `call'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in
>> `call'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:242:in
>> `call'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in
>> `call'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in
>> `service'
>>        /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
>>        /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
>>        /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
>>        /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
>>        /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
>>        /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
>>        /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
>>        /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
>>        /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
>>        /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:14:in
>> `run'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:155:in 
>> `start'
>>        
>> /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:144:in
>> `start'
>>        /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:83:in 
>> `start'
>>        /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/camping:9
>>        /usr/local/bin/camping:19:in `load'
>>        /usr/local/bin/camping:19
>>
>>
>> On Wed, Jul 21, 2010 at 5:26 PM, Magnus Holm  wrote:
>>> A reference to a controller is also a constant. Everything which
>>> starts with an uppercase letter is in fact a constant.
>>>
>>> Hm. Could you give me a backtrace? It seems like it's ActiveSupport's
>>> const_missing or something like that.
>>>
>>> You don't really need to read/understand all those comments in the
>>> patch. It's all related to the fact that Tilt defines the template as
>>> a method under the Tilt::CompileSite (which is included in each
>>> request in Camping) so when you call #render it actually calls a
>>> method called #_tilt_ajdbakjasjdbakjsbdk in the background. Calling a
>>> method is way faster than instance_eval, so this gives a significant
>>> speed improvement. The problem by defining the method under
>>> Tilt::CompileSite is that constant lookup is now relative to
>>> Tilt::CompileSite instead of your request. This is what the patch
>>> fixes.
>>>
>>> // Magnus Holm
>>>
>>>
>>>
>>> On Wed, Jul 21, 2010 at 22:53, David Susco  wrote:
 Thanks Magnus,

 I gave that a shot but I'm still ge

Re: using Tilt requires full controller reference

2010-07-23 Thread Magnus Holm
Wait, forget about that Tilt patch. Try this instead:

  module App
include X
  end

// Magnus Holm



On Fri, Jul 23, 2010 at 18:01, David Susco  wrote:
> Hey Magnus, I patched the files and it's still the same thing. Here's
> the backtrace, let me know if you want browser dump as well.
>
> 127.0.0.1 - - [23/Jul/2010 11:48:39] "GET /Home HTTP/1.1" 500 95353 0.3607
> ArgumentError: Anonymous modules have no name to be referenced by
>        
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:585:in
> `to_constant_name'
>        
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:391:in
> `qualified_name_for'
>        
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:104:in
> `const_missing'
>        /var/www/apps/crud/riki/views/layout.haml:23:in `evaluate_source'
>        /usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:195:in 
> `evaluate'
>        /usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:560:in 
> `evaluate'
>        /usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:128:in 
> `render'
>        (eval):15:in `render'
>        (eval):15:in `render'
>        ./riki/controllers.rb:85:in `get'
>        (eval):27:in `send'
>        (eval):27:in `service'
>        (eval):27:in `catch'
>        (eval):27:in `service'
>        (eval):38:in `call'
>        
> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in
> `call'
>        (eval):42:in `call'
>        
> /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in
> `call'
>        /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in 
> `_call'
>        /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in 
> `call'
>        
> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in
> `call'
>        
> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in
> `call'
>        
> /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:242:in
> `call'
>        
> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in
> `call'
>        
> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in
> `service'
>        /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
>        /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
>        /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
>        /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
>        /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
>        /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
>        /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
>        /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
>        /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
>        /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
>        
> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:14:in
> `run'
>        /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:155:in 
> `start'
>        
> /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:144:in
> `start'
>        /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:83:in 
> `start'
>        /usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/camping:9
>        /usr/local/bin/camping:19:in `load'
>        /usr/local/bin/camping:19
>
>
> On Wed, Jul 21, 2010 at 5:26 PM, Magnus Holm  wrote:
>> A reference to a controller is also a constant. Everything which
>> starts with an uppercase letter is in fact a constant.
>>
>> Hm. Could you give me a backtrace? It seems like it's ActiveSupport's
>> const_missing or something like that.
>>
>> You don't really need to read/understand all those comments in the
>> patch. It's all related to the fact that Tilt defines the template as
>> a method under the Tilt::CompileSite (which is included in each
>> request in Camping) so when you call #render it actually calls a
>> method called #_tilt_ajdbakjasjdbakjsbdk in the background. Calling a
>> method is way faster than instance_eval, so this gives a significant
>> speed improvement. The problem by defining the method under
>> Tilt::CompileSite is that constant lookup is now relative to
>> Tilt::CompileSite instead of your request. This is what the patch
>> fixes.
>>
>> // Magnus Holm
>>
>>
>>
>> On Wed, Jul 21, 2010 at 22:53, David Susco  wrote:
>>> Thanks Magnus,
>>>
>>> I gave that a shot but I'm still getting an argument error:
>>>
>>> Anonymous modules have no name to be referenced by
>>>
>>> I'm trying to wrap my mind around what this patch is doing, but I
>>> don't see the connection between constants and a reference to a
>>> controller.
>>>
>>> Dave
>>>
>>> On Wed, Jul 21, 2010 at 3:29 PM, Magnus Holm  wrote:
 This is a well-known bug in Tilt:
 http://grou

Re: Wiki vs homepage

2010-07-23 Thread Dave Everitt
May not be attractive, but if it's already a ruby-related meme, worth  
considering - Dave E


On 23 Jul 2010, at 17:38, Philippe Monnet wrote:

My preference would be to have Ruby explicitly mentioned in the  
name and a clear easy-to-read url. This makes it a bit more SEO  
friendly too which is important for a promo site. IMHO suffixing  
with rb is not very visually attractive.


On 7/23/2010 9:39 AM, Steve Klabnik wrote:


I don't know if it's available or not, but why not campingrb.com  
rather than ruby-camping.com? Many of the other small web  
frameworks follow this url scheme (sinatrarb and padrinorb).




___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Wiki vs homepage

2010-07-23 Thread Dave Everitt

Anyone know who did this:
http://camping.tumblr.com/
?

Dave E

Jenna: I suggest a tumblr, because it doesn't cost anything, can  
have group committers, all the features we need, and it too is  
connected to the rich heritage of _why :)

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Wiki vs homepage

2010-07-23 Thread Philippe Monnet
My preference would be to have Ruby explicitly mentioned in the name and 
a clear easy-to-read url. This makes it a bit more SEO friendly too 
which is important for a promo site. IMHO suffixing with rb is not very 
visually attractive.


On 7/23/2010 9:39 AM, Steve Klabnik wrote:
I don't know if it's available or not, but why not campingrb.com 
 rather than ruby-camping.com 
? Many of the other small web frameworks 
follow this url scheme (sinatrarb and padrinorb).


Or maybe not. I just think it's an interesting url for Ruby projects.


___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: using Tilt requires full controller reference

2010-07-23 Thread David Susco
Hey Magnus, I patched the files and it's still the same thing. Here's
the backtrace, let me know if you want browser dump as well.

127.0.0.1 - - [23/Jul/2010 11:48:39] "GET /Home HTTP/1.1" 500 95353 0.3607
ArgumentError: Anonymous modules have no name to be referenced by

/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:585:in
`to_constant_name'

/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:391:in
`qualified_name_for'

/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:104:in
`const_missing'
/var/www/apps/crud/riki/views/layout.haml:23:in `evaluate_source'
/usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:195:in 
`evaluate'
/usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:560:in 
`evaluate'
/usr/local/lib/ruby/gems/1.8/gems/tilt-1.0.1/lib/tilt.rb:128:in `render'
(eval):15:in `render'
(eval):15:in `render'
./riki/controllers.rb:85:in `get'
(eval):27:in `send'
(eval):27:in `service'
(eval):27:in `catch'
(eval):27:in `service'
(eval):38:in `call'

/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in
`call'
(eval):42:in `call'

/usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in
`call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in 
`_call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in 
`call'

/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in
`call'

/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in
`call'

/usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:242:in
`call'

/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in
`call'

/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in
`service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'

/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:14:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:155:in 
`start'

/usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:144:in
`start'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:83:in 
`start'
/usr/local/lib/ruby/gems/1.8/gems/camping-2.0.392/bin/camping:9
/usr/local/bin/camping:19:in `load'
/usr/local/bin/camping:19


On Wed, Jul 21, 2010 at 5:26 PM, Magnus Holm  wrote:
> A reference to a controller is also a constant. Everything which
> starts with an uppercase letter is in fact a constant.
>
> Hm. Could you give me a backtrace? It seems like it's ActiveSupport's
> const_missing or something like that.
>
> You don't really need to read/understand all those comments in the
> patch. It's all related to the fact that Tilt defines the template as
> a method under the Tilt::CompileSite (which is included in each
> request in Camping) so when you call #render it actually calls a
> method called #_tilt_ajdbakjasjdbakjsbdk in the background. Calling a
> method is way faster than instance_eval, so this gives a significant
> speed improvement. The problem by defining the method under
> Tilt::CompileSite is that constant lookup is now relative to
> Tilt::CompileSite instead of your request. This is what the patch
> fixes.
>
> // Magnus Holm
>
>
>
> On Wed, Jul 21, 2010 at 22:53, David Susco  wrote:
>> Thanks Magnus,
>>
>> I gave that a shot but I'm still getting an argument error:
>>
>> Anonymous modules have no name to be referenced by
>>
>> I'm trying to wrap my mind around what this patch is doing, but I
>> don't see the connection between constants and a reference to a
>> controller.
>>
>> Dave
>>
>> On Wed, Jul 21, 2010 at 3:29 PM, Magnus Holm  wrote:
>>> This is a well-known bug in Tilt:
>>> http://groups.google.com/group/tiltrb/browse_thread/thread/19fef5370c4d417f
>>>
>>> The thread includes a quite simple patch for 1.8, and a larger, very
>>> hackish patch for 1.8+1.9.
>>>
>>>
>>> // Magnus Holm
>>>
>>>
>>>
>>> On Wed, Jul 21, 2010 at 21:05, David Susco  wrote:
 When using Tilt for views I need to compl

Re: Wiki vs homepage

2010-07-23 Thread Dave Everitt
Hi Steve - I really like that idea. Of course, someone (us) is going  
to have to actually purchase the domain at some point :-) - Dave E


I don't know if it's available or not, but why not campingrb.com  
rather than ruby-camping.com? Many of the other small web  
frameworks follow this url scheme (sinatrarb and padrinorb).


___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Wiki vs homepage

2010-07-23 Thread Steve Klabnik
I don't know if it's available or not, but why not campingrb.com rather than
ruby-camping.com? Many of the other small web frameworks follow this url
scheme (sinatrarb and padrinorb).

Or maybe not. I just think it's an interesting url for Ruby projects.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Wiki vs homepage

2010-07-23 Thread Philippe Monnet
Ok I would really like to get the promo site going so that we have 
something up and running before Why Day (Aug 19th per 
http://whyday.org/). I propose the following:


  1. I can go ahead and buy the ruby-camping.com domain - should 
someone also buy the .org equivalent? I think the promo site has to have 
a straightforward name related to ruby and camping (similar to 
ruby-lang) to make it easy for people to remember the site or search for 
it. (We can use whywentcamping.com for something else like either the 
doc site or the site focusing on learning and hosting simple apps - see 
Jenna's ideas on this)


  2. Until we know what other things we want to do with 
ruby-camping.com in terms of showcasing apps and all, I can either host 
the site:
 a) at my host (1&1 - ok for now with straight content only - 
the downside is I will be the bottleneck for updates
b) or deploy it on Heroku - we can have multiple collaborators 
to push content via git. This would also give us more flexibility in the 
long run (like diff versions of Ruby, db, plugins, etc - and maybe we 
can get sponsored


  3. For the time being I will leave the site as straight HTML and 
Javascript (we can switch it to Camping+Tilt later)


  4. I will create a ruby-camping.com project under camping in GitHub 
and upload the content. This way anyone can contribute to the design - 
wink wink uh-hmm Jenna/Dave/Matt/... ;-)


Let me know if you're ok with this or provide alternatives.
I'd like to get this done this week-end.

Philippe (@techarch)

On 7/8/2010 1:55 PM, Magnus Holm wrote:

Hey guys,

Philippe had some interesting points about the website:

1. Keep the home page simple with all content fitting within 1280 x 1024
2. Use a catchy design (need some help here)
3. Accentuate that Camping is about Ruby (maybe also include the ruby
logo somewhere)
4. Have a brief note about the connection to _why and a link to a page
explaining the history of Camping with further links to _why's other
sites
5. Encourage people to try it by capitalizing on some of Camping's strengths:
- Fast to learn - requires only basic Ruby skills
- Much simpler than Rails but more structure than Sinatra/Padrino
- Lightning fast and memory efficient allowing fast and efficient sites
- Can evolve from simple file to organized directory structure
- Can layer in more features later using persistence and choice of view engines
6. How about using some kind of an animated (auto advancing) slideshow
to highlight some of the benefits? See an example at:
http://blog.monnet-usa.com/?p=276
7. How about a page on learning with a link to the book as well as a
list of links for other tutorials or short explanations on key topics
(e.g. how to do migrations, how to use include/extend, how to use
different view engines, etc.)?
8. How about a page about plugins with some brief description of their intent?
9. I would love for us to include _why's cartoons in some of the sub pages ;-)

Now, the more I look at this list (and my own thoughts about the new
camping site) I realize that we're talking about two different things:

* A site to attract new users
* A site to inform regular users

It looks like my attempt (http://whywentcamping.judofyr.net/) tries to
target the latter, while Philippe targeted the former
(http://rubycamping.monnet-usa.com/). Both sites serves a purpose and
I believe both are equally important.

--

Here's what I propose: We split the site into two parts. We turn what
I've created into a wiki. Everyone are welcome to edit and add their
own content.

Then we take Philippe's ideas/design/site and turn it into
ruby-camping.com or whywentcamping.com or whatnot. It probably doesn't
need to be more than a single page.

What'd ya think?

// Magnus Holm
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

   


___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list