From bartus.csongor at gmail.com Wed Oct 15 06:52:44 2008 From: bartus.csongor at gmail.com (Csongor Bartus) Date: Wed, 15 Oct 2008 13:52:44 +0300 Subject: [Cells-talk] rails 2.1.1 support? Message-ID: <48F5CB7C.8030005@gmail.com> Ahoy, I'm running Rails 2.1.1 and ruby 1.8.6 (2007-06-07 patchlevel 36). I was installing Cells from "git://github.com/apotonick/cells.git" and boot it in environment.rb I've created a simple example but does not working: The error messages are like: "cannot find render_cell" in the controller, or "|uninitialized constant Cell1Cell|" when I do "render_cell" in a view. Any help would be very nice. Thanks, cs. -- Csongor Bartus t.: 0751-260376 e.: bartus.csongor at gmail.com w.: www.clair.ro | www.smuff.ro | www.arigato.ro www.ceasuri-binare.ro | www.brandyou.ro From apotonick at gmail.com Wed Oct 15 09:25:30 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Wed, 15 Oct 2008 15:25:30 +0200 Subject: [Cells-talk] rails 2.1.1 support? In-Reply-To: <48F5CB7C.8030005@gmail.com> References: <48F5CB7C.8030005@gmail.com> Message-ID: ahoi, pirate! did you follow the installation instructions in the README? please run rake test in the plugin directory and send me the output. anyway- i didn't run cells with rails 2.1.1... maybe that's the problem. it runs fine with rails 2.1. i'm gonna fix that. thanks for spotting, and cheers, nick On Wed, Oct 15, 2008 at 12:52 PM, Csongor Bartus wrote: > Ahoy, > > I'm running Rails 2.1.1 and ruby 1.8.6 (2007-06-07 patchlevel 36). > I was installing Cells from "git://github.com/apotonick/cells.git" and > boot it in environment.rb > I've created a simple example but does not working: > The error messages are like: "cannot find render_cell" in the > controller, or "|uninitialized constant Cell1Cell|" when I do > "render_cell" in a view. > > Any help would be very nice. > Thanks, > cs. > > -- > Csongor Bartus > t.: 0751-260376 > e.: bartus.csongor at gmail.com > w.: www.clair.ro | www.smuff.ro | www.arigato.ro > www.ceasuri-binare.ro | www.brandyou.ro > > _______________________________________________ > Cells-talk mailing list > Cells-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/cells-talk > From apotonick at gmail.com Wed Oct 15 12:37:18 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Wed, 15 Oct 2008 18:37:18 +0200 Subject: [Cells-talk] Fwd: rails 2.1.1 support? In-Reply-To: References: <48F5CB7C.8030005@gmail.com> <48F5FFFF.4050303@gmail.com> Message-ID: hey ho! i just tested with Rails-2.1.1- works nice. please install the cells plugin again and use the new cell generator like $> script/generate cell Cool first_state the generated cells are in the right place, maybe this was your problem. please report if that helped :-D nick On Wed, Oct 15, 2008 at 4:36 PM, Csongor Bartus wrote: > aloha awesome, > > i think i'm fine with the install: i'm not using engines and have no > "config.plugins" so i've just added your boot loader after rails' boot > loader > > rake tests seems to be fine: >>>> > cs at d820-suse:~/workspace/t3/vendor/plugins/cells> rake test > (in /home/cs/workspace/t3/vendor/plugins/cells) > /usr/bin/ruby -Ilib:lib > "/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb" > "test/cells_test.rb" "test/helper_test.rb" > Loaded suite > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader > Started > ..XXX test_helper > .XXX test_helper_including_and_cleanup > .XXX test_helper_method > .XXX test_helper_with_subclassing > ...XXX test_bug_1 > .XXX test_cell_name > .XXX test_cell_name_set_in_constructor > .XXX test_cell_name_suffix > ..XXX test_class_from_cell_name > .XXX test_controller_render_methods > ..XXX test_init > .XXX test_link_to_in_view > ..XXX test_new_directory_hierarchy > ..XXX test_render > ..XXX test_reset_bug > ..XXX test_state_view_existing_in_super_cell_view_directory > ....XXX test_view_for_state_overwriting > . > Finished in 0.241855 seconds. > > 30 tests, 43 assertions, 0 failures, 0 errors > <<<< > > > thanks a lot in advance !!! > cs. > > Nick Sutterer wrote: >> ahoi, pirate! >> >> did you follow the installation instructions in the README? >> >> please run rake test in the plugin directory and send me the output. >> >> anyway- i didn't run cells with rails 2.1.1... maybe that's the >> problem. it runs fine with rails 2.1. i'm gonna fix that. >> >> thanks for spotting, and cheers, >> >> nick >> >> >> > > From apotonick at gmail.com Wed Oct 15 12:41:06 2008 From: apotonick at gmail.com (Nick Sutterer) Date: Wed, 15 Oct 2008 18:41:06 +0200 Subject: [Cells-talk] rails 2.1.1 support? In-Reply-To: <48F5CB7C.8030005@gmail.com> References: <48F5CB7C.8030005@gmail.com> Message-ID: On Wed, Oct 15, 2008 at 12:52 PM, Csongor Bartus wrote: > Ahoy, > > I'm running Rails 2.1.1 and ruby 1.8.6 (2007-06-07 patchlevel 36). > I was installing Cells from "git://github.com/apotonick/cells.git" and > boot it in environment.rb > I've created a simple example but does not working: > The error messages are like: "cannot find render_cell" in the > controller, or "|uninitialized constant Cell1Cell|" when I do > ha! the correct name in a controller would be #render_cell_to_string. i guess you didn't put your cells in the right directory. use the generator, ok? nick > "render_cell" in a view. > > Any help would be very nice. > Thanks, > cs. > > -- > Csongor Bartus > t.: 0751-260376 > e.: bartus.csongor at gmail.com > w.: www.clair.ro | www.smuff.ro | www.arigato.ro > www.ceasuri-binare.ro | www.brandyou.ro > > _______________________________________________ > Cells-talk mailing list > Cells-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/cells-talk > From bartus.csongor at gmail.com Thu Oct 16 07:04:39 2008 From: bartus.csongor at gmail.com (Csongor Bartus) Date: Thu, 16 Oct 2008 14:04:39 +0300 Subject: [Cells-talk] rails 2.1.1 support? In-Reply-To: References: <48F5CB7C.8030005@gmail.com> <48F5FFFF.4050303@gmail.com> Message-ID: <48F71FC7.8070200@gmail.com> yo nick, all's fine both in the view and the controller .... the problems were: - i've left the "_cell" suffix when creating the cell controller (now the cell generator solves this) - i was not aware in controller instead of render_cell the render_cell_to_string must be used. thanks a lot, i'm a happy cellsman now :D Nick Sutterer wrote: > hey ho! > > i just tested with Rails-2.1.1- works nice. please install the cells > plugin again and use the new cell generator like > $> script/generate cell Cool first_state > > the generated cells are in the right place, maybe this was your > problem. please report if that helped :-D > > nick > > >