Thanks a bunch for that.. I got it working perfectly.

For clarification purposes, in case any other Mac heads want to try
this, you have to "View Package Contents" (control or right mouse
click) on your actual Textmate app then navigate to Contents/
SharedSupport/Bundles/Rails.tmbundle and show those package contents,
then navigate to Support/ilb/rails/rails_path.rb.

Open that in Textmate and go to the file_type method (around line 128)

Inside the case statement, add HAML to the view options:

when %r{/views/(.+\.(rhtml|rxml|rxhtml|rjs|haml|sass))$} then :view

Next go to the default_extension_for(type) method (around line 194)

and make haml the default instead of rhtml

Now go to the next method down, which is rails_path_for_view

and add haml to the options listed there

candidate_extensions = %w(haml rhtml rxhtml rxml rjs)

Save the file, restart Textmate and you should be golden!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to