Refactor rail partial limitation(?)
HI,
I get the following error message when I try to peform a partial refactoring of the following html w/embedded ruby. Seems like this should work.
Error Message: "Cannot perform refactoring. Selection does not form a fragment for extraction"
<h1>New seat</h1>
<% form_for(@seat) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :flight_id %><br />
<%= f.text_field :flight_id %>
</p>
<p>
<%= f.label :name %><br />
<%= f.text_field :name %>
</p>
<p>
<%= f.label :baggage %><br />
<%= f.text_field :baggage %>
</p>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
Thanx
John A
Please sign in to leave a comment.
What is selected here?
All. From <h1> to <% end %>
Indeed, short investigation has showed that this is a RubyMine bug/limitation/unsupported option. Anyway I've created an issue: http://youtrack.jetbrains.net/issue/RUBY-5213
FYI: These are issues related to partials:
http://youtrack.jetbrains.net/issue/RUBY-4640
http://youtrack.jetbrains.net/issue/RUBY-2397
http://youtrack.jetbrains.net/issue/RUBY-2394