Macros for working with Partials (Partial_Macros.zip v0.2 by Panya)
Submitted by Friday, 2 March, 2007 - 22:04
on
1. Open_Partial.bsh
Opens partial which name is selected (to select independently not necessarily if nothing is selected, selects the word under caret).
Example:<%= render :partial => 'form' %> # select "form"(without quotes) and use macro will open _form.rhtml
2. Create_Partial_From_Selection.bshCreates a partial from the selected text (asks for the partial name without _ and .rhtml) and replaces selected text with a <%= render :partial => 'partial_name' %> erb fragment.
Updated on 04/22/2007 - 19:10
Downloads: 1041