idea - auto creation of partial files

When dealing with "render :partial=>" lines.  I find myself often typing out large sections of code/logic before I create or code the partial files themselves.

Just a thought...   If you type out a "render :partial=>" line (or copy/paste an existing "render :partial=>"  changing the partial file name)  and the partial file does not exit yet, the name of the partial is yellow-lined because the file does not exist ("expected templates name or path.... ) of course.      

How about a feature where ALT+Click on any non-existing partial file name auto creates the partial file?   (just saying 'ALT' since it wouldn't be confused with a CTRL+Click on an existing partial name --- although when over a yellow-lined file name both CTRL+Click and ALT+Click are available/un-used).

Thanks

2 comments
Comment actions Permalink

Just a thought...   If you type out a "render :partial=>" line (or copy/paste an existing "render :partial=>"  changing the partial file name)  and the partial file does not exit yet, the name of the partial is yellow-lined because the file does not exist ("expected templates name or path.... ) of course.     

How about a feature where ALT+Click on any non-existing partial file name auto creates the partial file?

It already works in RubyMine:

1. Alt+Enter on "form2" warning
Screen shot 2011-02-24 at 3.42.09 PM.png
2. Press "enter" and check partial name
Screen shot 2011-02-24 at 3.42.19 PM.png

0
Comment actions Permalink

Awesome thank you.   I always forget about the light bulb! doh

0

Please sign in to leave a comment.