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
one.
It sounds like you're looking for some of the functionality that the
engines plugin provides. You can find out if it's suitable for your
particular project here: http://rails-engines.org.