From apotonick at gmail.com Tue Sep 2 12:34:13 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Tue, 2 Sep 2008 18:34:13 +0200 Subject: [Cells-talk] can't find view In-Reply-To: <826051.61244.qm@web27702.mail.ukl.yahoo.com> References: <826051.61244.qm@web27702.mail.ukl.yahoo.com> Message-ID: On Sun, Aug 31, 2008 at 10:29 AM, cat aurel wrote: > Hi ! > > I've just installed cells, and i have this error : > > Couldn't find template file for categories/index in > "/mnt/home/userapps/23984/app/views" > > Extracted source (around line #175): > > 172: > 173: > 174:
> 175: <%= render_cell :categories, :index %> > 176:
> 177: > 178:
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:312:in > `render_file' > vendor/plugins/cells/lib/cell.rb:173 > vendor/plugins/cells/lib/cell.rb:153 > vendor/plugins/cells/lib/action_view_extensions.rb:37 > app/views/layouts/application.html.erb:175 > /home/userapps_plugins/preload/request_timeout/lib/request_timeout.rb:9 > /home/userapps_plugins/preload/request_timeout/lib/request_timeout.rb:8 > /home/heroku_rack/lib/toolbar.rb:16 > /usr/bin/thin:19:in `load' > /usr/bin/thin:19 > > the views are in /app/cells/categories, why cells search in /app/views ? > > the cells version is http://cells.rubyforge.org/svn/cells_plugin/trunk and I > use rails 2.0.2 on heroku. > hi! sorry to say that, but cells doesn?t support rails 2.0 out of the box. i will have a look at your problem when i?m back home at the weekend. cheers, nick > Thanks for your answers ! > > ________________________________ > Envoy? avec Yahoo! Mail. > Une boite mail plus intelligente. > _______________________________________________ > Cells-talk mailing list > Cells-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/cells-talk > > From blake at near-time.com Sat Sep 20 01:52:19 2008 From: blake at near-time.com (Blake Watters) Date: Sat, 20 Sep 2008 01:52:19 -0400 Subject: [Cells-talk] Rails 2.0 Support? Message-ID: What specific features from 2.1 are required for Cells to run? I have a large application I am interested in leveraging Cells in, but we're on 2.0.2 at the moment (and for the immediately foreseeable future). Are you interested in patches for 2.0 support? -------------- next part -------------- An HTML attachment was scrubbed... URL: From apotonick at gmail.com Sat Sep 20 08:25:41 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Sat, 20 Sep 2008 14:25:41 +0200 Subject: [Cells-talk] Rails 2.0 Support? In-Reply-To: References: Message-ID: hey blake, > What specific features from 2.1 are required for Cells to run? I have a > good point ;-) the problem is- rails 2.0.x is a hybrid thing between rails 1.2.x and rails 2.1. peter and i tried to get cells running with it, but at some point we decided it's too much effort for a "deprecated" version of rails. e.g. there is no TemplateFinder class as in rails 2.1. > large application I am interested in leveraging Cells in, but we're on 2.0.2 > at the moment (and for the immediately foreseeable future). Are you > interested in patches for 2.0 support? > sure! if you get cells running with rails 2.0.x we will release a cells version for it! i bet there are some people out there who would appreciate that as well. let's discuss that...! cheers, nick From blake at near-time.com Sat Sep 20 17:26:44 2008 From: blake at near-time.com (Blake Watters) Date: Sat, 20 Sep 2008 17:26:44 -0400 Subject: [Cells-talk] Rails 2.0 Support? In-Reply-To: References: Message-ID: Hi Nick - I am drilling into the port on a Github fork. I'll keep the list posted as I make progress. Best, Blake On Sat, Sep 20, 2008 at 8:25 AM, Nick Sutterer wrote: > hey blake, > > > What specific features from 2.1 are required for Cells to run? I have a > > > good point ;-) the problem is- rails 2.0.x is a hybrid thing between > rails 1.2.x and rails 2.1. peter and i tried to get cells running with > it, but at some point we decided it's too much effort for a > "deprecated" version of rails. e.g. there is no TemplateFinder class > as in rails 2.1. > > > large application I am interested in leveraging Cells in, but we're on > 2.0.2 > > at the moment (and for the immediately foreseeable future). Are you > > interested in patches for 2.0 support? > > > sure! if you get cells running with rails 2.0.x we will release a > cells version for it! i bet there are some people out there who would > appreciate that as well. > let's discuss that...! > > cheers, > nick > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blake at near-time.com Sat Sep 20 18:30:22 2008 From: blake at near-time.com (Blake Watters) Date: Sat, 20 Sep 2008 18:30:22 -0400 Subject: [Cells-talk] Rails 2.0 Support? In-Reply-To: References: Message-ID: I have a simple Rails 2.0.2 test app rendering Cells via text and .html.erb templates. The code isn't the prettiest atm, but it should let me move forward with my project. Incremental improvements will come as I move forward, I am about to drop the plugin into a large existing project. Trial by fire time :-) Blake On Sat, Sep 20, 2008 at 5:26 PM, Blake Watters wrote: > Hi Nick - > > I am drilling into the port on a Github fork. I'll keep the list posted as > I make progress. > > Best, > Blake > > > On Sat, Sep 20, 2008 at 8:25 AM, Nick Sutterer wrote: > >> hey blake, >> >> > What specific features from 2.1 are required for Cells to run? I have a >> > >> good point ;-) the problem is- rails 2.0.x is a hybrid thing between >> rails 1.2.x and rails 2.1. peter and i tried to get cells running with >> it, but at some point we decided it's too much effort for a >> "deprecated" version of rails. e.g. there is no TemplateFinder class >> as in rails 2.1. >> >> > large application I am interested in leveraging Cells in, but we're on >> 2.0.2 >> > at the moment (and for the immediately foreseeable future). Are you >> > interested in patches for 2.0 support? >> > >> sure! if you get cells running with rails 2.0.x we will release a >> cells version for it! i bet there are some people out there who would >> appreciate that as well. >> let's discuss that...! >> >> cheers, >> nick >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blake at near-time.com Sat Sep 20 21:47:34 2008 From: blake at near-time.com (Blake Watters) Date: Sat, 20 Sep 2008 21:47:34 -0400 Subject: [Cells-talk] State of Testing/Specing Cells? Message-ID: There doesn't look to be a lot of test/spec harness support for Cells currently. Am I missing something? My team is RSpec infected, so I am likely to add spec infrastructure in my fork. I have already added a (basic) Cell & spec generator. -------------- next part -------------- An HTML attachment was scrubbed... URL: From blake at near-time.com Mon Sep 22 09:47:50 2008 From: blake at near-time.com (Blake Watters) Date: Mon, 22 Sep 2008 09:47:50 -0400 Subject: [Cells-talk] Booting via environment.rb Message-ID: Why does Cells require booting via environment.rb as opposed to leveraging init.rb? -------------- next part -------------- An HTML attachment was scrubbed... URL: From apotonick at gmail.com Mon Sep 22 10:44:10 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Mon, 22 Sep 2008 16:44:10 +0200 Subject: [Cells-talk] Booting via environment.rb In-Reply-To: References: Message-ID: hi blake! > Why does Cells require booting via environment.rb as opposed to leveraging > init.rb? > the reason for that is that we need to inject the cells class load path into Dependencies _before_ some things happen inside Rails::Initializer. we tried numerous work-arounds to prevent a seperate boot file, but had to fall back. maybe this will change in a later rails version. cheers, nick From apotonick at gmail.com Mon Sep 22 10:55:29 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Mon, 22 Sep 2008 16:55:29 +0200 Subject: [Cells-talk] State of Testing/Specing Cells? In-Reply-To: References: Message-ID: > There doesn't look to be a lot of test/spec harness support for Cells > currently. Am I missing something? > currently we have an unspecified load of test cases targeting old bugs and new requirements. there really is the need for a strong, elaborate test plan. i'm very happy to hear that you are about to start that! i will follow this process on github. looks like i have to dive into RSpec now :-) > My team is RSpec infected, so I am likely to add spec infrastructure in my > fork. I have already added a (basic) Cell & spec generator. > cool! don't miss to check http://github.com/vbdjames/cells/ - vbdjames already did some coding on generators. we have to merge that. nick From blake at near-time.com Mon Sep 22 11:16:35 2008 From: blake at near-time.com (Blake Watters) Date: Mon, 22 Sep 2008 11:16:35 -0400 Subject: [Cells-talk] Booting via environment.rb In-Reply-To: References: Message-ID: Hrm, interesting. I was having trouble with Cells wanting to include ApplicationHelper *before* my app had fully initialized. I worked around this by adding this to init.rb: ActionController::Dispatcher.to_prepare :cells do Cell::Base.send(:helper, ApplicationHelper) end I currently boot Cells as the _very_ last thing in my environment.rb file, well after the Initializer block has run. But I also am not fooling with Engines non-sense, maybe that's the enabler. On Mon, Sep 22, 2008 at 10:44 AM, Nick Sutterer wrote: > hi blake! > > > Why does Cells require booting via environment.rb as opposed to > leveraging > > init.rb? > > > the reason for that is that we need to inject the cells class load > path into Dependencies _before_ some things happen inside > Rails::Initializer. we tried numerous work-arounds to prevent a > seperate boot file, but had to fall back. > maybe this will change in a later rails version. > > cheers, > > nick > _______________________________________________ > Cells-talk mailing list > Cells-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/cells-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blake at near-time.com Mon Sep 22 11:21:58 2008 From: blake at near-time.com (Blake Watters) Date: Mon, 22 Sep 2008 11:21:58 -0400 Subject: [Cells-talk] State of Testing/Specing Cells? In-Reply-To: References: Message-ID: I am about halfway done implementing an ExampleGroup for Cell specs. It's sort of a hybrid between a helper and a functional spec: - You have your Cell available via the 'cell' method - You have @opts available for injecting state into the Cell - You can set expectations on the cell and invoke its methods directly (test business logic) - You can call render_state to actually get the template to render (currently failing, but I will have it working some time today). - You have assigns() available for accessing the instance variables inside the Cell. (working on this now) - We want to be able to spec out the Cell views directly leveraging RSpec's built in View spec'ing support. This may or may not become too cumbersome for me to get done today -- I need to actually use this stuff to write code for my iteration at some point today :-) I'll push it to the fork once it finishes marinating. On Mon, Sep 22, 2008 at 10:55 AM, Nick Sutterer wrote: > > There doesn't look to be a lot of test/spec harness support for Cells > > currently. Am I missing something? > > > currently we have an unspecified load of test cases targeting old bugs > and new requirements. there really is the need for a strong, elaborate > test plan. > i'm very happy to hear that you are about to start that! i will follow > this process on github. > > looks like i have to dive into RSpec now :-) > > > My team is RSpec infected, so I am likely to add spec infrastructure in > my > > fork. I have already added a (basic) Cell & spec generator. > > > cool! > don't miss to check http://github.com/vbdjames/cells/ - vbdjames > already did some coding on generators. we have to merge that. > > > nick > _______________________________________________ > Cells-talk mailing list > Cells-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/cells-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.pence at gmail.com Mon Sep 22 18:26:01 2008 From: mike.pence at gmail.com (Mike Pence) Date: Mon, 22 Sep 2008 18:26:01 -0400 Subject: [Cells-talk] State of Testing/Specing Cells? In-Reply-To: References: Message-ID: I move that we start tracking these various efforts on lighthouseapp.com. On Mon, Sep 22, 2008 at 11:21 AM, Blake Watters wrote: > I am about halfway done implementing an ExampleGroup for Cell specs. It's > sort of a hybrid between a helper and a functional spec: > > - You have your Cell available via the 'cell' method > - You have @opts available for injecting state into the Cell > - You can set expectations on the cell and invoke its methods directly (test > business logic) > - You can call render_state to actually get the template to render > (currently failing, but I will have it working some time today). > - You have assigns() available for accessing the instance variables inside > the Cell. (working on this now) > - We want to be able to spec out the Cell views directly leveraging RSpec's > built in View spec'ing support. This may or may not become too cumbersome > for me to get done today -- I need to actually use this stuff to write code > for my iteration at some point today :-) > > I'll push it to the fork once it finishes marinating. > > On Mon, Sep 22, 2008 at 10:55 AM, Nick Sutterer wrote: >> >> > There doesn't look to be a lot of test/spec harness support for Cells >> > currently. Am I missing something? >> > >> currently we have an unspecified load of test cases targeting old bugs >> and new requirements. there really is the need for a strong, elaborate >> test plan. >> i'm very happy to hear that you are about to start that! i will follow >> this process on github. >> >> looks like i have to dive into RSpec now :-) >> >> > My team is RSpec infected, so I am likely to add spec infrastructure in >> > my >> > fork. I have already added a (basic) Cell & spec generator. >> > >> cool! >> don't miss to check http://github.com/vbdjames/cells/ - vbdjames >> already did some coding on generators. we have to merge that. >> >> >> nick >> _______________________________________________ >> Cells-talk mailing list >> Cells-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cells-talk > > > _______________________________________________ > Cells-talk mailing list > Cells-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/cells-talk > >