textmate / ruby-on-rails-tmbundle

Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
http://groups.google.com/group/rails-textmate
MIT License
15 stars 22 forks source link

form_tag bundle operation returns non-working code by default #7

Open infininight opened 11 years ago

infininight commented 11 years ago

Bundles -> Ruby on Rails -> View Templates -> form_tab (ft->|) returns <% form_tag(:action => "update", {:class => "users"}) do %> which results in:

Showing /Users/tom/projects/jq_search/app/views/users/index.html.erb where line #6 raised:

/Users/tom/projects/jq_search/app/views/users/index.html.erb:6: syntax error, unexpected ')', expecting tASSOC form_tag(:action => "update", {:class => "form"}) do ^ /Users/tom/projects/jq_search/app/views/users/index.html.erb:41: syntax error, unexpected keyword_ensure, expecting $end Extracted source (around line #6):

6: <% form_tag(:action => "update", {:class => "form"}) do %> 7:
8: <% end -%>


Moved from old textmate repository, original report from @tallison63