ooops, my bad, I forgot the comma after the pluralized model name. Now it works like a charm. Thanks a lot!!!!!
On Aug 28, 11:08 am, Sebastian <[EMAIL PROTECTED]> wrote: > Hi Sergio, > > unfortunately, if I do that, I get the following parse error in my > apache log. By the way...the application runs fine under Mongrel or > WEBrick...it just crashes under Apache/fcgid :-( > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > dependencies.rb:502:in `load': /var/www/prombase/config/routes.rb:40: > parse error, unexpected ':', expecting kEND (SyntaxError) > map.resources :companies :active_scaffold => true > ^ from /usr/lib/ruby/gems/1.8/gems/ > activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' > from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/dependencies.rb:354:in `new_constants_in' > from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/dependencies.rb:502:in `load' > from /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/routing/route_set.rb:253:in `load_routes!' > from /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/routing/route_set.rb:233:in `load!' > from /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/routing/route_set.rb:248:in `reload' > from /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/ > initializer.rb:409:in `initialize_routing' > from /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/ > initializer.rb:154:in `process' > from /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/ > initializer.rb:93:in `run' > from /var/www/prombase/public/../config/environment.rb:13 > from /var/www/prombase/public/dispatch.fcgi:21 > > On Aug 28, 8:57 am, "Sergio Cambra .:: entreCables - Symbol Servicios > Informáticos S.L. ::." <[EMAIL PROTECTED]> wrote: > > > El Wednesday 27 August 2008 23:04:09 Sebastian escribió: > > > > Hi there, > > > > I'm running ROR via an apache 2.2 with the following specs: > > > > Ruby version 1.8.4 (i486-linux) > > > RubyGems version 1.2.0 > > > Rails version 2.1.0 > > > Active Record version 2.1.0 > > > Action Pack version 2.1.0 > > > Active Resource version 2.1.0 > > > Action Mailer version 2.1.0 > > > Active Support version 2.1.0 > > > Environment development > > > Database adapter mysql > > > > I installed AS via git and moved active_scaffold to vendors/plugins/, > > > then put "map.resources :active_scaffold => true" into the config/ > > > routes.rb. > > > It should be "map.resources :resources_name, :active_scaffold => true", with > > resources_name being your pluralized model name > > > > When trying to browse to one of the controllers, I got error messages, > > > complaining about permissions, which I got rid of by commenting out > > > the lines in AS's init.rb. After that I get the following error > > > message, when trying to browse to the "Companies"-Site: > > > > NameError (undefined local variable or method `active_scaffold' for > > > CompaniesController:Class): > > > /app/controllers/companies_controller.rb:5 > > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > > > dependencies.rb:215:in `load_file' > > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > > > dependencies.rb:354:in `new_constants_in' > > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > > > dependencies.rb:214:in `load_file' > > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > > > dependencies.rb:95:in `require_or_load' > > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > > > dependencies.rb:260:in `load_missing_constant' > > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > > > dependencies.rb:467:in `const_missing' > > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > > > dependencies.rb:479:in `const_missing' > > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > > > inflector.rb:283:in `constantize' > > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > > > core_ext/string/inflections.rb:143:in `constantize' > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ > > > routing/route_set.rb:386:in `recognize' > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ > > > dispatcher.rb:148:in `handle_request' > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ > > > dispatcher.rb:107:in `dispatch' > > > /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ > > > dispatcher.rb:104:in `dispatch' > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ > > > dispatcher.rb:120:in `dispatch_cgi' > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ > > > dispatcher.rb:35:in `dispatch' > > > /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/fcgi_handler.rb:103:in > > > `process_request' > > > /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/fcgi_handler.rb:153:in > > > `with_signal_handler' > > > /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/fcgi_handler.rb:101:in > > > `process_request' > > > /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/fcgi_handler.rb:78:in > > > `process_each_request' > > > /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in > > > `each_cgi' > > > /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in > > > `each_cgi' > > > /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/fcgi_handler.rb:77:in > > > `process_each_request' > > > /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/fcgi_handler.rb:76:in > > > `process_each_request' > > > /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/fcgi_handler.rb:50:in > > > `process!' > > > /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/fcgi_handler.rb:24:in > > > `process!' > > > /public/dispatch.fcgi:24 > > > > Now, in /app/controllers/companies_controller.rb:5 I simply have > > > "active_scaffold". > > > > Does anybody know, how to resolve this? > > > > Regards > > > -- > > Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::. > > Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza > > T) 902 021 404 F) 976 52 98 07 E) [EMAIL PROTECTED] > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
