Refactor -> Extract to Partial
When working in a view it would be really great to be able to select
some code and choose Refactor -> Extract to Partial. This command would:
1. Prompt for the name of the partial
2. Create the partial file and move the selected code into the new file.
3. Insert a "<%= render :partial => 'partial_name' -%>" in the
original view where the code was extracted.
Thanks,
Nate
Please sign in to leave a comment.
Hello Nate,
Indeed, this feature is planned. You can watch http://jetbrains.net/jira/browse/RUBY-1558
to get notified when the feature is implemented.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"