Problem getting the plugin to work (0.0.7.1)

0 views
Skip to first unread message

chrilleh

unread,
Feb 16, 2007, 9:29:30 AM2/16/07
to Streamlined
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 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

Ryan Schuft

unread,
Feb 16, 2007, 9:44:42 AM2/16/07
to Streamlined
Two questions:

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.

luis.antoni...@gmail.com

unread,
Feb 16, 2007, 10:30:52 AM2/16/07
to Streamlined
Having the same exact issue and for the two questions

1) it doesn't seems like it matters
2) fresh install from rapt

mtrier

unread,
Feb 16, 2007, 4:26:48 PM2/16/07
to Streamlined
Crazy question, but do you have a Streamer model?

Michael

On Feb 16, 10:30 am, "luis.antonio.rodrig...@gmail.com"

chrilleh

unread,
Feb 17, 2007, 9:06:16 AM2/17/07
to Streamlined
No hehe, I just followed the instructions under Installation in the
wiki, says nothing about a model? I thought that was a bit strange
that I didn't specify which model to be streamlined? I would really
like to see a more complete documentation for this plugin...
So what I'm i missing? Should the controller that is streamlined have
the same name as the model? So if I have a model Entry, I should have
a EntryController that has 'act_as_streamlined' and that other stuff?

Ed Howland

unread,
Feb 17, 2007, 12:57:20 PM2/17/07
to strea...@googlegroups.com
On 2/17/07, chrilleh <chri...@gmail.com> wrote:
>
> No hehe, I just followed the instructions under Installation in the
> wiki, says nothing about a model? I thought that was a bit strange
> that I didn't specify which model to be streamlined? I would really
> like to see a more complete documentation for this plugin...
> So what I'm i missing? Should the controller that is streamlined have
> the same name as the model? So if I have a model Entry, I should have
> a EntryController that has 'act_as_streamlined' and that other stuff?

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

jom...@gmail.com

unread,
Feb 19, 2007, 3:23:41 AM2/19/07
to Streamlined
What if I need the model to have different name as controller?

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:

jgeh...@gmail.com

unread,
Feb 19, 2007, 10:33:11 AM2/19/07
to Streamlined
Wow, nice catch. It used to be (pre-plugin) that you could simply add:

@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

jom...@gmail.com

unread,
Feb 20, 2007, 6:59:10 AM2/20/07
to Streamlined
Thanks for the reply. When will this be updated? Do I need to use SVN
to receive the new version?

gberz3

unread,
Feb 20, 2007, 3:24:54 PM2/20/07
to Streamlined
Hi All,
I can't even get streamlined to generate. I used "rapt" to install
the plugin
after searching for it, but keep getting a "can't find 'streamined'
generator" error. I'm currently using a vanilla install of Rails
1.2.2. Can someone provide me a quick step-by-step overview (I know
the two seem contradictory) of what versions of gems/rails/
streamlined
I need, and the steps to get up and running, etc.? Any help is
appreciated.

Thanks in advance,
Michael

Mark Bennett

unread,
Feb 20, 2007, 3:57:58 PM2/20/07
to strea...@googlegroups.com

gberz3

unread,
Feb 20, 2007, 4:17:37 PM2/20/07
to Streamlined
I'm actually following that now. My original mistake was still hoping
for *generation* capabilities. I'm on a short deadline and need the
immediate scaffolding/feedback.

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

jom...@gmail.com

unread,
Feb 20, 2007, 10:07:08 PM2/20/07
to Streamlined
Still waiting for

streamlined_model 'CorrectModelName'

Thanks

Jomyoot

jom...@gmail.com

unread,
Feb 25, 2007, 8:31:40 AM2/25/07
to Streamlined
Dear Justin,

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

H. Wade Minter

unread,
Feb 26, 2007, 2:50:28 PM2/26/07
to Streamlined
I'm also interested in this, as I have my admin controllers in the
Admin::ModelName space, which is giving that same error.

--Wade

Michael Trier

unread,
Mar 18, 2007, 9:30:20 AM3/18/07
to strea...@googlegroups.com
Wade, for your situation, my patch should work:

http://streamlinedframework.org:8079/trac/ticket/5

Michael
railsconsulting.com


--
Michael Trier
http://www.railsconsulting.com

Reply all
Reply to author
Forward
0 new messages