Streamlined seems to mess with non acts_as_streamlined controllers

1 view
Skip to first unread message

Astor

unread,
Aug 25, 2008, 8:08:00 PM8/25/08
to Streamlined
It seems that there is some trouble with common controllers in a
application with streamlined as controller. Indeed this is what I
obtain after just ./script/plugin install git://github.com/relevance/streamlined.git

http://pastie.org/259870

mailings is a independant controller based on a ./script/generate
scaffold that doesn't and will never need acts_as_streamlined. But
every empty controller with layout "streamlined" and
acts_as_streamlined will work like a charm.

Don't seem to be a plugin conflict, we try on a copy of our repository
without any more plugin than streamlined and obtain the same result

Kerry Foley

unread,
Aug 25, 2008, 9:42:10 PM8/25/08
to strea...@googlegroups.com
It seems that your

app/views/mailings/new.html.erb

might be pulling in the streamlined default form partial in:

vendor/plugins/streamlined/templates/generic_views/_form.rhtml


Do you have your own form partial defined? Is it in the right place and
correctly named? I would have a look along this path and try to see why
the streamlined partial is getting picked up.

Regards,
Kerry

Astor

unread,
Aug 26, 2008, 5:05:06 AM8/26/08
to Streamlined
Oh gosh ! That was the problem indeed, in my mailings (and all my
custom controllers) I have a partial named _form.html.erb that I call
in my edit and new views, i renamed it in form2 and now it works well.

Thanks a lot for your help, but is it a wanted feature from
streamlined to override form of the same name ?

Kerry Foley

unread,
Aug 26, 2008, 3:07:29 PM8/26/08
to strea...@googlegroups.com
No - it should be other way around. It works properly for files ending
in ".rhtml" but not for the newer Rails 2 extensions ".html.erb"

http://trac.streamlinedframework.org/ticket/160

Regards,
Kerry
Reply all
Reply to author
Forward
0 new messages