Hey all, I was converting a haml file to erb and when finished, I ran the app and got this error message: NoMethodError in Students#student_fail Showing app/views/students/student_fail.erb where line #40 raised: undefined method `join'' for #<String:0x105a5e0c8> Extracted source (around line #40): 37: 38: <% fields << render(:partial => "resources_partials/sequence/nav", :locals => sequence_info.merge({:cancel_url => {:controller => :dashboard}})) %> 39: 40: <%= render_form { fields } %> 41: <% end %> Thanks for any response. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
John Merlino wrote:> > > Hey all, > > I was converting a haml file to erb and when finished, I ran the app > and got this error message: > > NoMethodError in Students#student_fail > > Showing app/views/students/student_fail.erb where line #40 raised: > > undefined method `join'' for #<String:0x105a5e0c8> > > Extracted source (around line #40): > > 37: > 38: <% fields << render(:partial => > "resources_partials/sequence/nav", :locals => > sequence_info.merge({:cancel_url => {:controller => :dashboard}})) %> > 39: > 40: <%= render_form { fields } %> > 41: <% end %> > > Thanks for any response.Render form is defined in resources_form_helper.rb: def render_form %Q{<ul class="form">\n#{ yield.join "\n\t" }\n</ul>\n} end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 9 March 2010 22:13, John Merlino <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> John Merlino wrote: >> >> >> Hey all, >> >> I was converting a haml file to erb and when finished, I ran the app >> and got this error message: >> >> NoMethodError in Students#student_fail >> >> Showing app/views/students/student_fail.erb where line #40 raised: >> >> undefined method `join'' for #<String:0x105a5e0c8> >> >> Extracted source (around line #40): >> >> 37: >> 38: <% fields << render(:partial => >> "resources_partials/sequence/nav", :locals => >> sequence_info.merge({:cancel_url => {:controller => :dashboard}})) %> >> 39: >> 40: <%= render_form { fields } %> >> 41: <% end %> >> >> Thanks for any response. > > > > Render form is defined in resources_form_helper.rb: > > def render_form > %Q{<ul class="form">\n#{ yield.join "\n\t" }\n</ul>\n}Doesn''t join require an array rather than a string? Colin> end > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 March 2010 07:58, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 9 March 2010 22:13, John Merlino <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> John Merlino wrote: >>> >>> >>> Hey all, >>> >>> I was converting a haml file to erb and when finished, I ran the app >>> and got this error message: >>> >>> NoMethodError in Students#student_fail >>> >>> Showing app/views/students/student_fail.erb where line #40 raised: >>> >>> undefined method `join'' for #<String:0x105a5e0c8> >>> >>> Extracted source (around line #40): >>> >>> 37: >>> 38: <% fields << render(:partial => >>> "resources_partials/sequence/nav", :locals => >>> sequence_info.merge({:cancel_url => {:controller => :dashboard}})) %> >>> 39: >>> 40: <%= render_form { fields } %> >>> 41: <% end %> >>> >>> Thanks for any response. >> >> >> >> Render form is defined in resources_form_helper.rb: >> >> def render_form >> %Q{<ul class="form">\n#{ yield.join "\n\t" }\n</ul>\n} > > Doesn''t join require an array rather than a string?I meant it is a method of Array not String of course. Colin> > Colin > >> end >> -- >> Posted via http://www.ruby-forum.com/. >> >> -- >> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.