History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RUBY-270
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Roman Chernyatchik
Reporter: jerrett
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Ruby

Recognize non-standard rails views

Created: 08 Feb 07 22:27   Updated: 30 Oct 07 18:55
Component/s: Rails
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: *


 Description  « Hide
When using the Rails project view, only views that are .rhtml files are grouped index the controller/action

since views can be various formats (markaby, rxml, liquid, to name a few..), it'd be nice to take this into account either by using whatever is in the view folder



 All   Comments   Work Log   Change History      Sort Order:
Roman Chernyatchik - 10 Feb 07 17:14
Do you suggest to group controller's action and all files with the same names(and any extension) from corresponding view folder?

jerrett - 12 Feb 07 20:42
If possible, it'd be pretty nice to actually look at the code in the action and see what render calls are used.. if there is no render call then the template would be the same name as the action.

If there are any render calls you should be able to determine the appropriate template from the call(s) .. with render :partial being prefixed with an underscore.

As far as extensions go, though if you load the rails app you could probably figure out what extensions have been registered with rails, i'd say it's safe to say anything in the views directory is fair game to be shown.