[Rails-core] [3795] render_component doesn't work with modules?
Trevor Squires
trevor at protocool.com
Fri Feb 10 15:23:53 GMT 2006
Hi Nathaniel,
I'm using a version of edge (not the most recent, but after module
namespace support was improved) and I use render_component into a
module namespace quite extensively with no problems.
I know you said you "nailed it down to having a '/' in the
controller" but are you sure it's not simply the *leading* slash
character that's giving you problems?
Regards,
Trevor
On 10-Feb-06, at 6:35 AM, Nathaniel S. H. Brown wrote:
> Just nailed it down to having a "/" in the controller.
>
> If you even trying:
>
> render_component :controller => "/blog", :action => "list"
>
> It will produce an error saying it cant find ::Blog
>
> -Nb
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Nathaniel S. H. Brown http://nshb.net
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>> -----Original Message-----
>> From: rails-core-bounces at lists.rubyonrails.org
>> [mailto:rails-core-bounces at lists.rubyonrails.org] On Behalf
>> Of Nathaniel S. H. Brown
>> Sent: February 10, 2006 6:09 AM
>> To: rails-core at lists.rubyonrails.org
>> Subject: [Rails-core] [3795] render_component doesn't work
>> with modules?
>>
>> I just submitted a bug report for the render_component not
>> being able to properly find the modules.
>>
>> I did a pretty detailed search, and wasn't able to find
>> anything in the tracker. Is this something you guys are
>> already aware of ?
>>
>> http://dev.rubyonrails.org/ticket/3795
>>
>> -Nb
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Nathaniel S. H. Brown http://nshb.net
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> _______________________________________________
>> Rails-core mailing list
>> Rails-core at lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails-core
>>
>
> _______________________________________________
> Rails-core mailing list
> Rails-core at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-core
--
Trevor Squires
http://somethinglearned.com
More information about the Rails-core
mailing list