public
Fork of drnic/ruby-on-rails-tmbundle
Description: Ruby on Rails TextMate bundle [master branch is svn trunk; patches to drnicwilliams@gmail.com]
Homepage: http://macromates.com
Clone URL: git://github.com/lawrencepit/ruby-on-rails-tmbundle.git
Search Repo:
go to file fix
lawrencepit (author)
Thu Jul 10 01:55:15 -0700 2008
commit  7b0de06a9806294dbf21f0609f4bd0f2dc08fbeb
tree    316c510f46e23e7eeebf9186567be4df21158fa8
parent  183ec7675f036b76871c67171131eaa730d8cc11
...
39
40
41
42
 
 
43
44
45
...
39
40
41
 
42
43
44
45
46
0
@@ -39,7 +39,8 @@ class CommandGoToFile
0
           modules = pieces
0
         end
0
 
0
- partial = File.join(current_file.rails_root, 'app', 'views', modules, "_#{partial_name}.html.erb")
0
+ ext = current_file.default_extension_for(:view)
0
+ partial = File.join(current_file.rails_root, 'app', 'views', modules, "_#{partial_name}#{ext}")
0
         TextMate.open(partial)
0
 
0
       # Example: render :action => 'login'
...
233
234
235
236
237
 
 
238
239
240
...
233
234
235
 
 
236
237
238
239
240
0
@@ -233,8 +233,8 @@ class RailsPath
0
       when :xml, :rss, :atom then ".#{view_format}.builder"
0
       when :js then '.js.rjs'
0
       else
0
- rails_view_ext = ENV['RAILS_VIEW_EXT'] || (wants_haml ? '.haml' : '.erb')
0
- ".#{view_format}#{rails_view_ext}"
0
+ rails_view_ext = ENV['RAILS_VIEW_EXT'] || (wants_haml ? 'haml' : 'erb')
0
+ ".#{view_format}.#{rails_view_ext}"
0
       end
0
     when :fixture then '.yml'
0
     else '.rb'

Comments

    No one has commented yet.