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

3 comments
Comment actions Permalink

What is selected here?

0
Comment actions Permalink

All.  From <h1> to <% end %>

0
Comment actions Permalink

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

0

Please sign in to leave a comment.