Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have been trying to extract a partial from an application.html.erb file with the following, :8,14Rextract stylesheets.

I get a return that reads, 'no such directory'.

From this novices perspective, it looks like I am following the example in :help Rextract but then I am never surprised to learn that there is some aspect or other that I am not taking into consideration.

Any help or pointers on how I can get Rextract to work or how to apply it correctly?

share|improve this question
    
"a partial"? What is that? –  ldigas Dec 2 '11 at 22:57
    
@ldigas, seems to be related to this vim plugin? vim.org/scripts/script.php?script_id=1567 –  Zoredache Dec 2 '11 at 23:49
add comment

1 Answer

up vote 0 down vote accepted

Have you tried giving a full path to the file stylesheets? Perhaps vim changed your CWD to something else and you are getting an error because it can't find what you are trying to specify??

share|improve this answer
    
Hi Zoredache ... thanks for you reply to my posting .... I used the following which is as you suggested, I think. :11,14Rextract layouts/stylesheets ..... and it worked. No surprise to you I suppose but a delightful moment for me. Thanks again. –  railsdancer Dec 3 '11 at 20:46
    
Hi ldigas, I am still learning rails but the understanding I have gleaned thus far is that in the layout that I am currently working on there are two ideas. One of these deals with stylesheets and so it is suggested that you pull out the stylesheets into a partial .... it has a formatted name that starts with _stylesheets and in the original file you replace the lines you have extracted with 'render :partial => 'layouts/stylesheets' .... I guess it is much more than this, but that is my understanding to date.... thanks for you interest. –  railsdancer Dec 3 '11 at 20:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.