textmate / ruby-on-rails-tmbundle

Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
http://groups.google.com/group/rails-textmate
MIT License
15 stars 22 forks source link

Going to model/controller/helper/stylesheet from the template #26

Closed davidmles closed 8 years ago

davidmles commented 8 years ago

Being in the template, the corresponding model, controller, helper or stylesheet cannot be accessed.

This can be solved editing the bundle with the integrated editor and editing Menu Actions / Go To, then edit Go to Model, Controller, Helper and Stylesheet this way:

Replace text.html.erb.rails with text.html.erb.

infininight commented 8 years ago

This works as intended if you have the "HTML (Rails)" grammar selected in the bottom of the window rather than the generic ERB grammar. Your choice will be remembered for future documents opened.

davidmles commented 8 years ago

I didn't notice there was a Rails HTML grammar. You are right, it works as intended.

Thanks!