I'll look into this as soon as I can - probably this weekend. Thanks for finding the reproduction!
On Tue, Aug 18, 2009 at 1:27 PM, randy <[email protected]> wrote: > > Running Edge Rails, I'm getting this HAML error on a Login page that > I've stripped down to only 3 lines. > > Steps to reproduce with a clean demo app: > > rails xxx > rake rails:freeze:edge > script/generate controller user_session new > > vi app/views/user_session/new.html (to stick in this 3-liner form: > - form_for @user_session do |f| > = f.label :username, "Username" > = f.text_field :username > > vi config/environment.rb (to config the haml gem) > script/generate model user_session > vi the migration file to add a field named 'name' > rake db:migrate > vi config/routes.rb to add the path: map.login > 'login', :controller => 'user_sessions', :action => 'new' > script/server & hit the url for user_session/new > > > The error comes from the "f.label..." line. Deleting that line > successfully renders the text_field. > > Here is the error: > > SystemStackError in User_sessions#new > > Showing /Users/randy/sites/xxx/app/views/user_sessions/new.html.haml > where line #2 raised: > > stack level too deep > Extracted source (around line #2): > > 1: - form_for @user_session do |f| > 2: = f.label :username, "Username" > 3: = f.text_field :username > RAILS_ROOT: /Users/randy/sites/xxx > > Application Trace | Framework Trace | Full Trace > /Library/Ruby/Gems/1.8/gems/haml-2.2.2/lib/haml/helpers/ > action_view_mods.rb:100:in `include?' > /Library/Ruby/Gems/1.8/gems/haml-2.2.2/lib/haml/helpers/ > action_view_mods.rb:100:in `content_tag' > (eval):1:in `content_tag_without_haml' > /Library/Ruby/Gems/1.8/gems/haml-2.2.2/lib/haml/helpers/ > action_view_mods.rb:106:in `content_tag' > (eval):1:in `content_tag_without_haml' > /Library/Ruby/Gems/1.8/gems/haml-2.2.2/lib/haml/helpers/ > action_view_mods.rb:106:in `content_tag' > (eval):1:in `content_tag_without_haml' > > (... last line repeated a few hundred times ... ) > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
