If developer followed starndart rules and pure REST, you could guess that
`countries/105`
will render
`app/views/countries/show.html.erb`

But sometimes it's not that simple. So, you need to look at `routes.rb` to
find which controller and action this URL calls. And then look inside action
for irregular 'render :something'.

Also, look through log/development(test/production).log for strings like
"Rendering template something/something.erb".
I'm not sure about Webrick, but Mongrel will show you that info in logs.

On Mon, Apr 19, 2010 at 9:13 PM, Marcelo Barbudas <[email protected]> wrote:

> Hi,
>
> Is there a way I can figure out which files are run for a specific
> URL?
>
> Given http://www.planet.com/countries files like: countries/
> index.html.erb, countries/_country.html.erb, layouts/
> application.html.erb and so on.
>
>
> Thank You
> --
> M.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to