Hogan, Brian P.
2005-Sep-01 13:25 UTC
RE: share eclipse-templates library (was: RE: Software to codeRails)
Tobias: Thanks for the feedback. You are correct, it should be "ALL HTML" (I originally had people adding the snippet to the HTML section but it didn''t always work so I moved it to the JSP templates... And I guess I forgot to edit everything in the doc. I will definitely add your comment about the cursor location! That''s great! -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Tobias Jordans Sent: Thursday, September 01, 2005 5:18 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: share eclipse-templates library (was: RE: [Rails] Software to codeRails) Brian wrote:> Not to repeat myself too much but I wrote a guide to building an > environment on windows using Eclipse. > > http://wiki.rubyonrails.com/rails/show/HowToUseEclipseForRails > DevelopmentThanks for that link and to all for the other information. Probably some of you use eclipse for some time and might have created some template librarys for autocompletion of tags? Brian describes how to do this on hin site: <%= link_to "", :controller=>"", :action=>"", :id=>"" %> I belief with the cursor-pointer in it it is even more helpful <%link_to "${cursor}", :controller=>"", :action=>"", :id=>"" %> Did someone define other helper that he would send (exporting is easy as I saw). Thanks ~Tobias PS @ Brian: You wrote "The context should be ALL HTML" in your tutorial but I dont have such an "all html", only "all jsp" in this dialog-box. Is it a different version or a writing-mistake? _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Tom Davies
2005-Sep-05 21:05 UTC
Re: share eclipse-templates library (was: RE: Software to codeRails)
I would be interested in pooling these templates as well. I am just starting to write them, but I will post my results to the list once I have something worth sharing. Is there a better place to put these templates more permanently? Perhaps the wiki? Also, one tip for your templates: you can define any number of variables that can be replaced as the template is inserted. For instance, here is an alternative link_to template: <%= link_to "${url}", :controller=>"${controller}", :action=>"${action}", :id=>"${id}" %> When the template is first inserted, the cursor is placed at the url variable, if you hit tab, it will cycle to the next variable etc. Tom On 9/1/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:> > Tobias: Thanks for the feedback. You are correct, it should be "ALL > HTML" (I originally had people adding the snippet to the HTML section > but it didn''t always work so I moved it to the JSP templates... And I > guess I forgot to edit everything in the doc. > > I will definitely add your comment about the cursor location! That''s > great! > > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Tobias Jordans > Sent: Thursday, September 01, 2005 5:18 AM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: share eclipse-templates library (was: RE: [Rails] Software to > codeRails) > > > > > Brian wrote: > > > Not to repeat myself too much but I wrote a guide to building an > > environment on windows using Eclipse. > > > > http://wiki.rubyonrails.com/rails/show/HowToUseEclipseForRails > > Development > > Thanks for that link and to all for the other information. > > Probably some of you use eclipse for some time and might have created > some template librarys for autocompletion of tags? > > Brian describes how to do this on hin site: > <%= link_to "", :controller=>"", :action=>"", :id=>"" %> > > I belief with the cursor-pointer in it it is even more helpful <%> link_to "${cursor}", :controller=>"", :action=>"", :id=>"" %> > > Did someone define other helper that he would send (exporting is easy as > I saw). > > > Thanks > ~Tobias > > > PS @ Brian: You wrote "The context should be ALL HTML" in your tutorial > but I dont have such an "all html", only "all jsp" in this dialog-box. > Is it a different version or a writing-mistake? > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails