It doesn''t work that way.
Users don''t actually request RHTML files.... Requests go through the
controller first... then the action finds the template.
What you''re doing is probably not a good idea... unless you could
explain
why this structure matters to you. Anything that''s not in the
''public''
directory (and subfolders of public) of your Rails application is not
accessible to users... but you can''t put Rails or Ruby stuff in that
folder
(it''s served as static files).
Post more about the problem you are trying to solve to the list and I''m
sure
someone will be happy to help you!
Good luck!
On 8/2/06, Eric Gross <tennisbum2002@hotmail.com>
wrote:>
> Hey Harper,
>
> Ok, lets say I have an rhtml file in my views directory. The path to
> with it is
>
> app/views/picture/mycontent.rhtml. Whenever I call a url to
> picture/mycontent, it will look for the controller method titled "def
> mycontent."
>
> What I want to be able to do is have a folder in the picture directory,
> so what if I had a file like this:
> app/views/picture/mycontent/home.rhtml?
>
> How can I have a controller method called automatically when it is
> loaded, I can''t do "def mycontent/home as thats not a valid
method
> name.
>
> Hope that helps explaining things,
> Eric
>
>
>
>
>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060802/1bbd0ccd/attachment-0001.html