Topic: how to overwrite a view with a plugin?

Hey all,

I've just "script/generate plugin my_plugin" and I would like to
"overload" one of my view. Say I have app/views/sessions/new.html.erb
and I would like to rewrite that file without touching it using the
plugin. Any idea how to do this? I would also like to do the same
thing with models and controllers of my application. I couldn't find a
tutorial about this so I would appreciate it if you could point me to

Thanks in advance


Re: how to overwrite a view with a plugin?

I don't know if this is helpful at all but you might wanna check out rails engines

It's a way to bundle views, controllers and more conveniently with your plugin without having to write complicated generators and you can easily replace or add to them with 'local' versions.