Sublime Forum

Rails - Extract partial

#1

Hey guys,

How do you extract a partial in a Rails project? Like selecting a few lines, do and the result should be:

  1. The selection is replaced with <%= render “partial_name” %>
  2. A new file is created in the current directory named ./_partial_name.html.erb

Thanks

0 Likes

#2

Look at the Rails Partial plugin.

0 Likes