Thanks Sergio, commenting out the following method  in
action_view_rendering.rb fixed the problem. It should probably be
commented in rails-2.2 branch.

def template_exists?(template_name, template_format = nil)
 ......
end


On Feb 26, 3:30 am, "Sergio Cambra .:: entreCables - Symbol Servicios
Informáticos S.L. ::." <[email protected]> wrote:
> El Thursday 26 February 2009 04:17:05 njs escribió:
>
> > The file action_view_rendering .rb (in rails-2.2 branch) has the call
> > self.view_paths.find_template(template_name, template_format) which
> > seems to be the problem.
>
> > And I did install active scaffold as per instructions on the website
> > using -r rails-2.2 option.
>
> Try to remove that method from action_view_rendering.rb, I wanted to try it,
> because that method is defined in generic_view_paths too. Maybe in my system
> uses the method from generic_view_paths.
>
>
>
>
>
> > On Feb 25, 10:07 am, "Sergio Cambra .:: entreCables - Symbol Servicios
>
> > Informáticos S.L. ::." <[email protected]> wrote:
> > > Sorry, I think I'm mixing varios errors and I answer wrong, or I'm mixing
> > > in my head code for 2.2 and 2.3.
>
> > > find_template doesn't exit in rails 2.2, it's in 2.3
> > > AS for 2.2 doesn't do alias of find_template, if you get undefined method
> > > `find_template' for class `ActionView::PathSet' (NameError), then you
> > > have active_scaffold master branch, which is for rails 2.3, with rails
> > > 2.2.
>
> > > El Wednesday 25 February 2009 13:45:49 njs escribió:
> > > > Yes I ran the two commands exactly as mentioned by you, Sergio.
> > > > Additionally I also removed rubyforge from the sources as it seems to
> > > > go there first.
>
> > > > Somebody told me that building of rails gems is probably not enabled
> > > > on github. When they enable it, a little ruby icon shows up on the
> > > > project page. There is no ruby icon on the rails project page, so they
> > > > must not have gem building enabled.
>
> > > > Compare:
>
> > > >http://github.com/rails/rails/tree/master
>
> > > > to:
>
> > > >http://github.com/raganwald/andand/tree/master
>
> > > > On Feb 25, 4:38 am, "Sergio Cambra .:: entreCables - Symbol Servicios
>
> > > > Informáticos S.L. ::." <[email protected]> wrote:
> > > > > El Wednesday 25 February 2009 04:03:43 njs escribió:
> > > > > > I tried installing rails gems from github as suggested but it does
> > > > > > not find the gems. Anybody tried that?
>
> > > > > I install them always with gem command. Have you added the github
> > > > > source as I said?
>
> > > > > > On Feb 24, 10:18 am, "Sergio Cambra .:: entreCables - Symbol
> > > > > > Servicios
>
> > > > > > Informáticos S.L. ::." <[email protected]> wrote:
> > > > > > > El Tuesday 24 February 2009 14:24:41 escribió:
> > > > > > > > Sergio,
>
> > > > > > > >   I did some more research on Rails 2.2.2. I have installed
> > > > > > > > rails with "gem install rails" command. As per rubyforge the
> > > > > > > > gem was created on Nov. 21, 2008. But as per github logs of
> > > > > > > > Rails 2.2-stable branch the find_template method was introduced
> > > > > > > > (I think) after that date. I see there are constant checkins
> > > > > > > > going into rails 2.2-stable branch. Should I be installing
> > > > > > > > rails from github rather than gem? Please advise.
>
> > > > > > > I install the gem from github, and I have that method. Try to add
> > > > > > > github to gem sources and reinstall the gems: rails, actionpack
> > > > > > > and so on
>
> > > > > > > gem sources -ahttp://gems.github.com/
> > > > > > > gem install rails activerecord activeresource activesupport
> > > > > > > actionmailer actionpack
>
> > > > > > > > Navjeet
> > > > > > > >http://chabbewal.blogspot.com
>
> > > > > > > > On Tue, Feb 24, 2009 at 8:07 AM, Navjeet <[email protected]>
> wrote:
> > > > > > > > > Sergio,
>
> > > > > > > > >   I deleted the active_scaffold folder under vendor plugins
> > > > > > > > > and got it again from github. I noticed you made an update to
> > > > > > > > > init.rb so if one is not Rails 2.2.x an exception is raised.
> > > > > > > > > I do not see any such exception so I guess I am using Rails
> > > > > > > > > 2.2.2. Is there anyway to verify that Rails 2.2.2 has
> > > > > > > > > find_template method implemented? I looked at paths.rb under
> > > > > > > > > vendor/rails/actionpack/lib/action_view/ and it does not have
> > > > > > > > > find_template method.
>
> > > > > > > > > Thanks.
>
> > > > > > > > > Navjeet
> > > > > > > > >http://chabbewal.blogspot.com
>
> > > > > > > > > On Tue, Feb 24, 2009 at 7:42 AM, Navjeet <[email protected]>
>
> > > wrote:
> > > > > > > > >> Sergio,
> > > > > > > > >> I have been doing that all along. I installed
> > > > > > > > >> active_scaffold using the command "script/plugin install
> > > > > > > > >> git://
> > > > > > > > >> github.com/activescaffold/active_scaffold.git
> > > > > > > > >> -r rails-2.2 "
> > > > > > > > >> Do I need to issue another command?
>
> > > > > > > > >> Navjeet
> > > > > > > > >>http://chabbewal.blogspot.com
>
> > > > > > > > >> On Tue, Feb 24, 2009 at 4:14 AM, Sergio Cambra .::
> > > > > > > > >> entreCables - Symbol
>
> > > > > > > > >> Servicios Informáticos S.L. ::. <[email protected]>
> wrote:
> > > > > > > > >>> El Tuesday 24 February 2009 06:39:52 escribió:
> > > > > > > > >>> > I am pretty sure I am using rails 2.2.2. Running the
> > > > > > > > >>> > command "rails - v" returns 2.2.2. Just to be sure I
> > > > > > > > >>> > froze the gems for my app, and it did say it is freezing
> > > > > > > > >>> > to rails 2.2.2
>
> > > > > > > > >>> You are right, the line when you get the error is in master
> > > > > > > > >>> branch of active_scaffold. Remove your active_scaffold and
> > > > > > > > >>> try to install again with -r
> > > > > > > > >>> rails-2.2 I don't know why you got master branch instead of
> > > > > > > > >>> rails-2.2
>
> > > > > > > > >>> > On Feb 23, 10:53 am, "Sergio Cambra .:: entreCables -
> > > > > > > > >>> > Symbol Servicios
>
> > > > > > > > >>> > Informáticos S.L. ::." <[email protected]> wrote:
> > > > > > > > >>> > > El Monday 23 February 2009 14:52:39 njs escribió:
> > > > > > > > >>> > > > I think I am using 2.2 branch. Isn't the flag -r
> > > > > > > > >>> > > > rails-2.2 meant to get 2.2 branch?
>
> > > > > > > > >>> > > Yes, but I was answering to other mail, and your error
> > > > > > > > >>> > > trace is
>
> > > > > > > > >>> different
>
> > > > > > > > >>> > > to that trace
> > > > > > > > >>> > > Are you sure you are using rails 2.2.2?
> > > > > > > > >>> > > You get an error about find_template doesn't exist in
> > > > > > > > >>> > > ActionView::PathSet, but that method exist in
> > > > > > > > >>> > > ActionView::PathSet in rails 2.2, but it doesn't in
> > > > > > > > >>> > > rails 2.3
>
> > > > > > > > >>> > > > BTW sorry for the multiple posts earlier . My browser
> > > > > > > > >>> > > > on xubuntu
>
> > > > > > > > >>> was
>
> > > > > > > > >>> > > > not cooperating.
>
> > > > > > > > >>> > > > On Feb 23, 5:16 am, "Sergio Cambra .:: entreCables -
> > > > > > > > >>> > > > Symbol
>
> > > > > > > > >>> Servicios
>
> > > > > > > > >>> > > > Informáticos S.L. ::." <[email protected]> wrote:
> > > > > > > > >>> > > > > El Saturday 21 February 2009 16:36:15 RustyHack
>
> > > escribió:
> > > > > > > > >>> > > > > > I downloaded the plugin and dropped it into my
> > > > > > > > >>> > > > > > vendor folder.
>
> > > > > > > > >>> When
>
> > > > > > > > >>> > > > > > I start up my app, I get the following message.
> > > > > > > > >>> > > > > > If anyone has
>
> > > > > > > > >>> can
>
> > > > > > > > >>> > > > > > offer some help here, I would appreciate it.
>
> > > > > > > > >>> > > > > I think you are using activescaffold master branch,
> > > > > > > > >>> > > > > you should
>
> > > > > > > > >>> use
>
> > > > > > > > >>> > > > > rails-2.2 branch.
>
> > > > > > > > >>> > > > > > Aaron
> > > > > > > > >>> > > > > > =========
>
> > > > > > > > >>> > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2
> > > > > > > > >>> > > > > >.2.2 /lib /
> > > > > > > > >>> > > > > > active_support/core_ext/module/aliasing.rb:33:in
>
> > > > > > > > >>> `alias_method':
> > > > > > > > >>> > > > > > undefined method `find_template' for class
> > > > > > > > >>> > > > > > `ActionView::PathSet' (NameError)
> > > > > > > > >>> > > > > >         from
> > > > > > > > >>> > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2
> > > > > > > > >>> > > > > >.2.2 /lib /
> > > > > > > > >>> > > > > > active_support/core_ext/module/aliasing.rb:33:in
> > > > > > > > >>> > > > > > `alias_method_chain' from
> > > > > > > > >>> > > > > > /Users/rustyhack/Desktop/blackdog/vendor/plugins/
>
> > > > > > > > >>> activescaffold-
>
> > > > > > > > >>> > > > > > active_scaffold-7b07852464780a8a8894c39d14492992c
> > > > > > > > >>> > > > > >d15e 972/ lib/ extensions/generic_view_paths.rb:17
> > > > > > > > >>> > > > > > from
> > > > > > > > >>> > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> > > > > > > > >>> > > > > > custom_require.rb:31:in `require'
> > > > > > > > >>> > > > > >         from
> > > > > > > > >>> > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2
> > > > > > > > >>> > > > > >.2.2 /lib / active_support/dependencies.rb:153:in
> > > > > > > > >>> > > > > > `require' from
> > > > > > > > >>> > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2
> > > > > > > > >>> > > > > >.2.2 /lib / active_support/dependencies.rb:521:in
> > > > > > > > >>> > > > > > `new_constants_in' from
> > > > > > > > >>> > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2
> > > > > > > > >>> > > > > >.2.2 /lib / active_support/dependencies.rb:153:in
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

      • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
  • Re... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
    • ... njs
      • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
        • ... njs
          • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
            • ... njs
              • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
              • ... njs

Reply via email to