Application error
Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html
# /app/controllers/streamer_controller.rb
class StreamerController < ApplicationController
layout 'streamlined'
acts_as_streamlined
end
# /app/helpers/streamer_helper.rb
module StreamerHelper
include StreamlinedHelper
end
What am I doing wrong?
The following is from the development.log:
DEPRECATION WARNING: depend_on is deprecated and will be removed from
Rails 2.0 See http://www.rubyonrails.org/deprecation for details.
(called from acts_as_streamlined at (eval):10)
Could not instantiate controller: Class
Could not instantiate controller: Class
C:/dev/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:477:in `const_missing': uninitialized
constant Class::Streamer
(eval):25:in `initialize'
(eval):1:in `initialize'
C:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/
action_controller/base.rb:330:in `new'
C:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/
action_controller/base.rb:330:in `process'
C:/dev/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:41:in
`dispatch'
C:/dev/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:
113:in `handle_dispatch'
C:/dev/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:
79:in `service'
C:/dev/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/dev/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/dev/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/dev/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/dev/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/dev/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/dev/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/dev/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/dev/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/dev/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/dev/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:
63:in `dispatch'
C:/dev/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands/servers/
webrick.rb:59
C:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
C:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
C:/dev/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:495:in `require'
C:/dev/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:342:in `new_constants_in'
C:/dev/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:495:in `require'
C:/dev/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands/server.rb:
39
C:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
C:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
./script/server:3
-e:4:in `load'
-e:4
1. Does it matter that you're including the StreamlinedHelper from
StreamerHelper instead of ApplicationHelper which is where the README
asks you to put it?
2. Is this a fresh installation or did you install an older version
of Streamlined first?
On Feb 16, 9:29 am, "chrilleh" <chril...@gmail.com> wrote:
> I have installed the plugin through SVN and I have these files. When
> trying to access the controller i get the following error message in
> the browser:
>
> Application error
> Change this error message for exceptions thrown outside of an action
> (like in Dispatcher setups or broken Ruby code) in public/500.html
>
> # /app/controllers/streamer_controller.rb
> class StreamerController < ApplicationController
> layout 'streamlined'
>
> acts_as_streamlined
> end
>
> # /app/helpers/streamer_helper.rb
> module StreamerHelper
> include StreamlinedHelper
> end
>
> What am I doing wrong?
>
> The following is from the development.log:
>
> DEPRECATION WARNING: depend_on is deprecated and will be removed from
> Rails 2.0 Seehttp://www.rubyonrails.org/deprecationfor details.
1) it doesn't seems like it matters
2) fresh install from rapt
Michael
On Feb 16, 10:30 am, "luis.antonio.rodrig...@gmail.com"
This seemed strange to me also. It seems to work if you pluarlizes the
model. Like in your case:
EntriesController should work,
Ed
--
Ed Howland
http://greenprogrammer.blogspot.com
How should I do this? My controller is already used for a different
purpose and would not like to share it with streamlined.
Jomyoot
On Feb 18, 12:57 am, "Ed Howland" <ed.howl...@gmail.com> wrote:
@model_name = 'CorrectModelName'
to your controller to point it at any model for management. That
doesn't work anymore in the plugin. We're going to add this syntax to
enable this ASAP:
streamlined_model 'CorrectModelName'
(or streamlined_model CorrectModelName will also work)
Justin
Thanks in advance,
Michael
Anyway, I started following the wiki directions, and am currently
getting the following error:
****Don't know how to build task 'streamlined:install_helper'****
Michael
streamlined_model 'CorrectModelName'
Thanks
Jomyoot
Sorry to sound pushy, but I have been eagerly waiting for that update.
I really need this feature in my app :(
If you can please give me an idea of when it will be available.
Jomyoot
--Wade
http://streamlinedframework.org:8079/trac/ticket/5
Michael
railsconsulting.com
--
Michael Trier
http://www.railsconsulting.com