Project
Ruby
Priority
Normal
Type
Feature
Fix versions
No Fix versions
State
Open
Assignee
Roman Chernyatchik
Subsystem
Rails
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   jerrett
    5 years ago (08 Feb 2007 23:27)
  • Updated by   jerrett
    4 years ago (30 Oct 2007 19:55)
  • Jira: RUBY-270
    (history, comments)
 
RUBY-270 Recognize non-standard rails views
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
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

Environment: *
Comments (2)
 
History
 
Linked Issues (?)
 
Roman Chernyatchik
  Roman Chernyatchik
10 Feb 2007 18:14
5 years ago
Do you suggest to group controller's action and all files with the same names(and any extension) from corresponding view folder?
jerrett
  jerrett
12 Feb 2007 21:42
5 years ago
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.