From apotonick at gmail.com Wed Aug 6 15:31:40 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Wed, 6 Aug 2008 21:31:40 +0200 Subject: [Cells-talk] cells on github Message-ID: hey folks, the rails-2.1 version of cells is now on github. mike pence set me under pressure, i had to yield to him. http://github.com/apotonick/cells/tree/master i will tag the cells 1.1 version soon, so people know which version runs with rails-2.1 / rails-2.2. will also update the docs. will do, will do. cheers, nick From cyberf at cyberf.org Thu Aug 7 12:33:04 2008 From: cyberf at cyberf.org (=?ISO-8859-1?Q?Fran_Pe=F1a?=) Date: Thu, 07 Aug 2008 18:33:04 +0200 Subject: [Cells-talk] 2.1 helpers bug? Message-ID: <489B23C0.2090307@cyberf.org> Hello. I need some help regarding... errrr helpers. I am on Rails 2.1 and on the Cells rails-2.1 branch It seems that I can't use the helpers from application_helper.rb within the cell views. Is this a bug? From apotonick at gmail.com Thu Aug 7 15:38:28 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Thu, 7 Aug 2008 21:38:28 +0200 Subject: [Cells-talk] 2.1 helpers bug? In-Reply-To: <489B23C0.2090307@cyberf.org> References: <489B23C0.2090307@cyberf.org> Message-ID: hey fran, On Thu, Aug 7, 2008 at 6:33 PM, Fran Pe?a wrote: > Hello. > I need some help regarding... errrr helpers. > I am on Rails 2.1 and on the Cells rails-2.1 branch > It seems that I can't use the helpers from application_helper.rb within the > cell views. > Is this a bug? > this is funny- i encountered the same "behaviour" a couple of days ago. i guess the application_helper is overwritten when you include another helper. will fix this. and remember: please use the cells from github. thanks, and cheers, nick > _______________________________________________ > Cells-talk mailing list > Cells-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/cells-talk > From apotonick at gmail.com Thu Aug 7 18:14:12 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Fri, 8 Aug 2008 00:14:12 +0200 Subject: [Cells-talk] 2.1 helpers bug? In-Reply-To: References: <489B23C0.2090307@cyberf.org> Message-ID: On Thu, Aug 7, 2008 at 9:38 PM, Nick Sutterer wrote: > hey fran, > > On Thu, Aug 7, 2008 at 6:33 PM, Fran Pe?a wrote: >> Hello. >> I need some help regarding... errrr helpers. >> I am on Rails 2.1 and on the Cells rails-2.1 branch >> It seems that I can't use the helpers from application_helper.rb within the >> cell views. >> Is this a bug? >> > this is funny- i encountered the same "behaviour" a couple of days > ago. i guess the application_helper is overwritten when you include > another helper. will fix this. and remember: please use the cells from > github. > should be fixed, ON GITHUB. ;-) nick > thanks, and cheers, > > nick > >> _______________________________________________ >> Cells-talk mailing list >> Cells-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cells-talk >> > From cyberf at cyberf.org Fri Aug 8 04:22:20 2008 From: cyberf at cyberf.org (=?ISO-8859-1?Q?Fran_Pe=F1a?=) Date: Fri, 08 Aug 2008 10:22:20 +0200 Subject: [Cells-talk] 2.1 helpers bug? In-Reply-To: References: <489B23C0.2090307@cyberf.org> Message-ID: <489C023C.1030107@cyberf.org> Nick Sutterer wrote: > On Thu, Aug 7, 2008 at 9:38 PM, Nick Sutterer wrote: > >> hey fran, >> >> On Thu, Aug 7, 2008 at 6:33 PM, Fran Pe?a wrote: >> >>> Hello. >>> I need some help regarding... errrr helpers. >>> I am on Rails 2.1 and on the Cells rails-2.1 branch >>> It seems that I can't use the helpers from application_helper.rb within the >>> cell views. >>> Is this a bug? >>> >>> >> this is funny- i encountered the same "behaviour" a couple of days >> ago. i guess the application_helper is overwritten when you include >> another helper. will fix this. and remember: please use the cells from >> github. >> >> > should be fixed, ON GITHUB. > > ;-) > > > nick > > Hello nick! Thanks, that was fast! I updated my cells plugin to the one in github. It seems to be working now, but I have to explicitly add this to the top of my cell: helper :application to be able to use the helpers from application_helper in my cells view. Thanks again! From apotonick at gmail.com Fri Aug 8 04:33:00 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Fri, 8 Aug 2008 10:33:00 +0200 Subject: [Cells-talk] 2.1 helpers bug? In-Reply-To: <489C023C.1030107@cyberf.org> References: <489B23C0.2090307@cyberf.org> <489C023C.1030107@cyberf.org> Message-ID: > Hello nick! Thanks, that was fast! > i do my best ;-) > I updated my cells plugin to the one in github. > It seems to be working now, but I have to explicitly add this to the top of > my cell: > helper :application > to be able to use the helpers from application_helper in my cells view. > Thanks again! > that's strange, since the ApplicationHelper module is explicitly included in Cell::Base. in my setup, i added a method to app/helpers/application_helper.rb which was instantly available in any cell state view. can you double-check that in your case and report? please also run vendor/plugins/cells$ rake test since i added a test for that. gracias, adios y hasta luego, nick From cyberf at cyberf.org Fri Aug 8 05:20:22 2008 From: cyberf at cyberf.org (=?ISO-8859-1?Q?Fran_Pe=F1a?=) Date: Fri, 08 Aug 2008 11:20:22 +0200 Subject: [Cells-talk] 2.1 helpers bug? In-Reply-To: References: <489B23C0.2090307@cyberf.org> <489C023C.1030107@cyberf.org> Message-ID: <489C0FD6.9050804@cyberf.org> > >> Hello nick! Thanks, that was fast! >> >> > i do my best ;-) > > >> I updated my cells plugin to the one in github. >> It seems to be working now, but I have to explicitly add this to the top of >> my cell: >> helper :application >> to be able to use the helpers from application_helper in my cells view. >> Thanks again! >> >> > that's strange, since the ApplicationHelper module is explicitly > included in Cell::Base. in my setup, i added a method to > app/helpers/application_helper.rb which was instantly available in any > cell state view. can you double-check that in your case and report? > please also run > vendor/plugins/cells$ rake test > since i added a test for that. > > gracias, adios y hasta luego, > > > nick > > Hola! Oops! Ok, my mistake, I left a cells.old folder on my plugins folder with the new cells folder. It works like a charm now. Thanks very mucho nick! From cyberf at cyberf.org Sat Aug 9 14:23:20 2008 From: cyberf at cyberf.org (Fran Pena) Date: Sat, 09 Aug 2008 20:23:20 +0200 Subject: [Cells-talk] Fix(?) to my problem with gettext Message-ID: <489DE098.7090704@cyberf.org> Hello nick, evrybody. I got in an exchange of emails with Masao Mutoh, the gettext developer, to figure out if it was gettext gem fault's the problem I described to you on the IRC chat (I got a nasty undefined method `file_exists?' for # when I added gettext to my app). He came up with this and it works: > Hi, > > OK, Finally I could reproduce your problem. > > In Cell plugin, > Cell::TemplateFinder replaces ActionView::TemplateFinder. > But it doesn't have complete API of ActionView::TemplateFinder. > In this case, file_exists? is not implemented, so this error is occured. > > IMO, Cell:TemplateFinder should have all of API of > ActionView::TemplateFinder. > The easiest answer is to inherit ActionView::TemplateFinder. > > Replace the line 2 like as follows: > In: vendor/plugins/cells/lib/cell/template_finder.rb. > > --- template_finder.rb.org 2008-08-10 03:02:12.000000000 +0900 > +++ template_finder.rb 2008-08-10 03:02:16.000000000 +0900 > @@ -1,5 +1,5 @@ > module Cell > - class TemplateFinder > + class TemplateFinder < ActionView::TemplateFinder > > attr_accessor :view_paths Will this be the permanent solution? If so, will you add it to the git repo? Thanks! From cyberf at cyberf.org Sat Aug 9 16:14:29 2008 From: cyberf at cyberf.org (Fran Pena) Date: Sat, 09 Aug 2008 22:14:29 +0200 Subject: [Cells-talk] Fix(?) to my problem with gettext In-Reply-To: <489DE098.7090704@cyberf.org> References: <489DE098.7090704@cyberf.org> Message-ID: <489DFAA5.3090904@cyberf.org> ...and another similar suggestion from Matt on the gettext development list: No, it's not gettext; it is a problem with Cells. This is the last I will post about this on this mailing list, but I'll put it here for the archives. I reproduced the error by installing Cells and gettext into a fresh Rails 2.1 application, creating a simple "Hello world" cell, and calling render_cell from a controller. Cells has decided that they cannot use ActionView::TemplateFinder, so they define their own. The source of problems is that the file_exists? method moved from ActionView::Base into TemplateFinder with Rails 2.1. gettext has been fixed to handle the method in either place, and it even uses duck typing properly which should handle the case where finder refers to something that only acts like the Rails TemplateFinder. Well, ActionView::Base as extended by Cells does not respond to file_exists?, and neither does Cell::TemplateFinder. That's a problem. Apply this to vendor/plugins/cells/lib/cell/template_finder.rb 75a76,89 > alias_method :template_exists?, :pick_template > > def file_exists?(template_path) > # Clear the forward slash in the beginning if exists > template_path = template_path.sub(/^\//, '') > > template_file_name, template_file_extension = path_and_extension(template_path) > > if template_file_extension > template_exists?(template_file_name, template_file_extension) > else > template_exists?(template_file_name, pick_template_extension(template_path)) > end > end This is just copied verbatim from the template_finder.rb included with Rails. Someone should file a bug for Cells: "Template finder should respond to file_exists?". It seems to me that if Cell::TemplateFinder were to inherit from ActionView::TemplateFinder then it might be less susceptible to breaking as Rails evolves. It also would not be necessary to copy this method (and maybe others) since they would live in the superclass. Fran Pena wrote: > Hello nick, evrybody. > I got in an exchange of emails with Masao Mutoh, the gettext > developer, to figure out if it was gettext gem fault's the problem I > described to you on the IRC chat (I got a nasty undefined method > `file_exists?' for # when I added > gettext to my app). > He came up with this and it works: > > > Hi, > > > > OK, Finally I could reproduce your problem. > > > > In Cell plugin, > > Cell::TemplateFinder replaces ActionView::TemplateFinder. > > But it doesn't have complete API of ActionView::TemplateFinder. > > In this case, file_exists? is not implemented, so this error is > occured. > > > > IMO, Cell:TemplateFinder should have all of API of > > ActionView::TemplateFinder. > > The easiest answer is to inherit ActionView::TemplateFinder. > > > > Replace the line 2 like as follows: > > In: vendor/plugins/cells/lib/cell/template_finder.rb. > > > > --- template_finder.rb.org 2008-08-10 03:02:12.000000000 +0900 > > +++ template_finder.rb 2008-08-10 03:02:16.000000000 +0900 > > @@ -1,5 +1,5 @@ > > module Cell > > - class TemplateFinder > > + class TemplateFinder < ActionView::TemplateFinder > > > attr_accessor :view_paths > > Will this be the permanent solution? If so, will you add it to the git > repo? > > Thanks! > > _______________________________________________ > Cells-talk mailing list > Cells-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/cells-talk > From apotonick at gmail.com Mon Aug 11 06:10:23 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Mon, 11 Aug 2008 12:10:23 +0200 Subject: [Cells-talk] Fix(?) to my problem with gettext In-Reply-To: <489DFAA5.3090904@cyberf.org> References: <489DE098.7090704@cyberf.org> <489DFAA5.3090904@cyberf.org> Message-ID: hey fran, wow, i love it when people attach patches to bug reports :-) thank you. could you send me a tarball of your rails app with this hello world cell, so i can fix this nasty bug officially (and include tests)? On Sat, Aug 9, 2008 at 10:14 PM, Fran Pena wrote: > ...and another similar suggestion from Matt on the gettext development list: > > No, it's not gettext; it is a problem with Cells. This is the last I will > post about this on this mailing list, but I'll put it here for the archives. > > I reproduced the error by installing Cells and gettext into a fresh Rails > 2.1 application, creating a simple "Hello world" cell, and calling > render_cell from a controller. Cells has decided that they cannot use > ActionView::TemplateFinder, so they define their own. The source of problems > is that the file_exists? method moved from ActionView::Base into > TemplateFinder with Rails 2.1. > > gettext has been fixed to handle the method in either place, and it even > uses duck typing properly which should handle the case where finder refers > to something that only acts like the Rails TemplateFinder. > > Well, ActionView::Base as extended by Cells does not respond to > file_exists?, and neither does Cell::TemplateFinder. That's a problem. Apply > this to vendor/plugins/cells/lib/cell/template_finder.rb > > 75a76,89 >> alias_method :template_exists?, :pick_template >> >> def file_exists?(template_path) >> # Clear the forward slash in the beginning if exists >> template_path = template_path.sub(/^\//, '') >> >> template_file_name, template_file_extension = >> path_and_extension(template_path) >> >> if template_file_extension >> template_exists?(template_file_name, template_file_extension) >> else >> template_exists?(template_file_name, >> pick_template_extension(template_path)) >> end >> end > > This is just copied verbatim from the template_finder.rb included with > Rails. Someone should file a bug for Cells: "Template finder should respond > to file_exists?". It seems to me that if Cell::TemplateFinder were to > inherit from ActionView::TemplateFinder then it might be less susceptible to > breaking as Rails evolves. It also would not be necessary to copy this > method (and maybe others) since they would live in the superclass. > we should discuss this with the authors of Cell::TemplateFinder, peter and bob. maybe they had a reason not to derive this class. anyway, this sounds like a stable solution. cheers, nick > Fran Pena wrote: >> >> Hello nick, evrybody. >> I got in an exchange of emails with Masao Mutoh, the gettext developer, to >> figure out if it was gettext gem fault's the problem I described to you on >> the IRC chat (I got a nasty undefined method `file_exists?' for >> # when I added gettext to my app). >> He came up with this and it works: >> >> > Hi, >> > >> > OK, Finally I could reproduce your problem. >> > >> > In Cell plugin, >> > Cell::TemplateFinder replaces ActionView::TemplateFinder. >> > But it doesn't have complete API of ActionView::TemplateFinder. >> > In this case, file_exists? is not implemented, so this error is occured. >> > >> > IMO, Cell:TemplateFinder should have all of API of >> > ActionView::TemplateFinder. >> > The easiest answer is to inherit ActionView::TemplateFinder. >> > >> > Replace the line 2 like as follows: >> > In: vendor/plugins/cells/lib/cell/template_finder.rb. >> > >> > --- template_finder.rb.org 2008-08-10 03:02:12.000000000 +0900 >> > +++ template_finder.rb 2008-08-10 03:02:16.000000000 +0900 >> > @@ -1,5 +1,5 @@ >> > module Cell >> > - class TemplateFinder >> > + class TemplateFinder < ActionView::TemplateFinder >> > > attr_accessor :view_paths >> >> Will this be the permanent solution? If so, will you add it to the git >> repo? >> >> Thanks! >> >> _______________________________________________ >> 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 > From apotonick at gmail.com Sat Aug 16 12:51:18 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Sat, 16 Aug 2008 18:51:18 +0200 Subject: [Cells-talk] Fix(?) to my problem with gettext In-Reply-To: <489DE098.7090704@cyberf.org> References: <489DE098.7090704@cyberf.org> Message-ID: hey fran, hey list, the current git cells has gettext support, also added tests for that. i even found another template-finding issue which i could fix. i also began cleaning up the tests. fran- thanks for your patch and sample app. was great help. cheers, nick On Sat, Aug 9, 2008 at 8:23 PM, Fran Pena wrote: > Hello nick, evrybody. > I got in an exchange of emails with Masao Mutoh, the gettext developer, to > figure out if it was gettext gem fault's the problem I described to you on > the IRC chat (I got a nasty undefined method `file_exists?' for > # when I added gettext to my app). > He came up with this and it works: > >> Hi, >> >> OK, Finally I could reproduce your problem. >> >> In Cell plugin, >> Cell::TemplateFinder replaces ActionView::TemplateFinder. >> But it doesn't have complete API of ActionView::TemplateFinder. >> In this case, file_exists? is not implemented, so this error is occured. >> >> IMO, Cell:TemplateFinder should have all of API of >> ActionView::TemplateFinder. >> The easiest answer is to inherit ActionView::TemplateFinder. >> >> Replace the line 2 like as follows: >> In: vendor/plugins/cells/lib/cell/template_finder.rb. >> >> --- template_finder.rb.org 2008-08-10 03:02:12.000000000 +0900 >> +++ template_finder.rb 2008-08-10 03:02:16.000000000 +0900 >> @@ -1,5 +1,5 @@ >> module Cell >> - class TemplateFinder >> + class TemplateFinder < ActionView::TemplateFinder >> > attr_accessor :view_paths > > Will this be the permanent solution? If so, will you add it to the git repo? > > Thanks! > > _______________________________________________ > Cells-talk mailing list > Cells-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/cells-talk > From cyberf at cyberf.org Mon Aug 18 06:13:08 2008 From: cyberf at cyberf.org (=?ISO-8859-1?Q?Francisco_Pe=F1a_Torres?=) Date: Mon, 18 Aug 2008 12:13:08 +0200 Subject: [Cells-talk] Fix(?) to my problem with gettext In-Reply-To: References: <489DE098.7090704@cyberf.org> Message-ID: <61C869E7-CB8F-4269-9A5D-0D7FB66C7088@cyberf.org> Hey nick! hey people. Grrreat. I'l download it right away. The patch is all by Massao Mutoh and Matt Harvey from gettext list. I emailed their list and they found that out... I am just the forwarder here! :) Thanks so much for this. Gracias! On Aug 16, 2008, at 6:51 PM, Nick Sutterer wrote: > hey fran, hey list, > > the current git cells has gettext support, also added tests for that. > i even found another template-finding issue which i could fix. i also > began cleaning up the tests. > fran- thanks for your patch and sample app. was great help. > > cheers, > > nick > > > On Sat, Aug 9, 2008 at 8:23 PM, Fran Pena wrote: >> Hello nick, evrybody. >> I got in an exchange of emails with Masao Mutoh, the gettext >> developer, to >> figure out if it was gettext gem fault's the problem I described to >> you on >> the IRC chat (I got a nasty undefined method `file_exists?' for >> # when I added gettext to my app). >> He came up with this and it works: >> >>> Hi, >>> >>> OK, Finally I could reproduce your problem. >>> >>> In Cell plugin, >>> Cell::TemplateFinder replaces ActionView::TemplateFinder. >>> But it doesn't have complete API of ActionView::TemplateFinder. >>> In this case, file_exists? is not implemented, so this error is >>> occured. >>> >>> IMO, Cell:TemplateFinder should have all of API of >>> ActionView::TemplateFinder. >>> The easiest answer is to inherit ActionView::TemplateFinder. >>> >>> Replace the line 2 like as follows: >>> In: vendor/plugins/cells/lib/cell/template_finder.rb. >>> >>> --- template_finder.rb.org 2008-08-10 03:02:12.000000000 +0900 >>> +++ template_finder.rb 2008-08-10 03:02:16.000000000 +0900 >>> @@ -1,5 +1,5 @@ >>> module Cell >>> - class TemplateFinder >>> + class TemplateFinder < ActionView::TemplateFinder >>>> attr_accessor :view_paths >> >> Will this be the permanent solution? If so, will you add it to the >> git repo? >> >> Thanks! >> >> _______________________________________________ >> Cells-talk mailing list >> Cells-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cells-talk >> > From apotonick at gmail.com Mon Aug 18 06:38:35 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Mon, 18 Aug 2008 12:38:35 +0200 Subject: [Cells-talk] Fix(?) to my problem with gettext In-Reply-To: <61C869E7-CB8F-4269-9A5D-0D7FB66C7088@cyberf.org> References: <489DE098.7090704@cyberf.org> <61C869E7-CB8F-4269-9A5D-0D7FB66C7088@cyberf.org> Message-ID: On Mon, Aug 18, 2008 at 12:13 PM, Francisco Pe?a Torres wrote: > Hey nick! hey people. > Grrreat. I'l download it right away. > The patch is all by Massao Mutoh and Matt Harvey from gettext list. I > emailed their list and they found that out... I am just the forwarder here! > :) > let me know if it works for you. try to use different templates for your cell state views (e.g. new_users.html.erb and new_users_es.html.erb), this should work fine. > Thanks so much for this. > Gracias! > thanks for your interest and help! hasta luego, nick > On Aug 16, 2008, at 6:51 PM, Nick Sutterer wrote: > >> hey fran, hey list, >> >> the current git cells has gettext support, also added tests for that. >> i even found another template-finding issue which i could fix. i also >> began cleaning up the tests. >> fran- thanks for your patch and sample app. was great help. >> >> cheers, >> >> nick >> >> >> On Sat, Aug 9, 2008 at 8:23 PM, Fran Pena wrote: >>> >>> Hello nick, evrybody. >>> I got in an exchange of emails with Masao Mutoh, the gettext developer, >>> to >>> figure out if it was gettext gem fault's the problem I described to you >>> on >>> the IRC chat (I got a nasty undefined method `file_exists?' for >>> # when I added gettext to my app). >>> He came up with this and it works: >>> >>>> Hi, >>>> >>>> OK, Finally I could reproduce your problem. >>>> >>>> In Cell plugin, >>>> Cell::TemplateFinder replaces ActionView::TemplateFinder. >>>> But it doesn't have complete API of ActionView::TemplateFinder. >>>> In this case, file_exists? is not implemented, so this error is occured. >>>> >>>> IMO, Cell:TemplateFinder should have all of API of >>>> ActionView::TemplateFinder. >>>> The easiest answer is to inherit ActionView::TemplateFinder. >>>> >>>> Replace the line 2 like as follows: >>>> In: vendor/plugins/cells/lib/cell/template_finder.rb. >>>> >>>> --- template_finder.rb.org 2008-08-10 03:02:12.000000000 +0900 >>>> +++ template_finder.rb 2008-08-10 03:02:16.000000000 +0900 >>>> @@ -1,5 +1,5 @@ >>>> module Cell >>>> - class TemplateFinder >>>> + class TemplateFinder < ActionView::TemplateFinder >>>>> >>>>> attr_accessor :view_paths >>> >>> Will this be the permanent solution? If so, will you add it to the git >>> repo? >>> >>> Thanks! >>> >>> _______________________________________________ >>> 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 > From apotonick at gmail.com Thu Aug 21 10:21:25 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Thu, 21 Aug 2008 16:21:25 +0200 Subject: [Cells-talk] cells-1.1 released - we bring components to Rails 2.1 Message-ID: hey fellow cellers, i just tagged and released cells-1.1. thanks for your support (esp. bob and peter, mike, fran and doug for helping and submitting patches)!!! here's the official announce on http://rubyforge.org/forum/forum.php?forum_id=26671 cheers, nick cells-1.1 released - we bring components to Rails 2.1 Cells are like controllers in Rails - they have methods and corresponding views. But their big advantage to controllers is their modularity: you can have as many cells on a page as you want. That's as if you had multiple controllers in one page, where each "controller" renders only a certain part of the page. As if this wasn't enough, cells are superfast and lightweight. More information is available at http://cells.rubyforge.org --- This cells-1.1 release has the following awesome changes: - fully support for Rails 2.1 - optional support for Rails Engines (cells can reside inside engines) - internationalization support for Gettext in cell views - partials in cell views work (if you need it) - more docs. The README as well as the Cell::Base class got interesting new paragraphs. - more tests to catch even ununsual situations If you are interested in modular, encapsulated, reusable and fast software engineering with Rails, you should try out Cells! From aurel2152 at yahoo.fr Sun Aug 31 04:29:42 2008 From: aurel2152 at yahoo.fr (cat aurel) Date: Sun, 31 Aug 2008 08:29:42 +0000 (GMT) Subject: [Cells-talk] can't find view Message-ID: <826051.61244.qm@web27702.mail.ukl.yahoo.com> 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. Thanks for your answers ! _____________________________________________________________________________ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: