Joel-
I ran into this issue as well. I think it is because _erbout is being
nested too deep and loses its binding needed to write to the ERB
string buffer. One of my co-workers has a fix and we''ll check it in
once we have some good tests and make sure it covers all cases.
Shane
On 1/25/08, Joel Nylund <jnylund at yahoo.com>
wrote:> Hi, Im trying to build a form using:
>
> <% facebook_form_for(:task, at task,:url => create_task_path) do
|f| %>
> Assign Task To: <%= fb_friend_selector %>
> <%=f.text_field :ttype, :label=> "Title"%>
> <%=f.datetime_select :duedate, :label=> "Due
Date"%>
> <%=f.buttons "Add" %>
> <% end %>
>
> But im getting an error:
>
> ActionView::TemplateError (undefined local variable or method
> `_erbout'' for
#<Facebooker::Rails::FacebookFormBuilder:0x24c5c50>) on
> line #12 of app/views/face/new_task.rhtml:
> 9: <% facebook_form_for(:task, at task,:url =>
create_task_path) do |f|
> %>
> 10: Assign Task To: <%= fb_friend_selector %>
> 11: <%=f.text_field :ttype, :label=> "Title"%>
> 12: <%=f.datetime_select :duedate, :label=> "Due
Date"%>
> 13: <%=f.buttons "Add" %>
> 14: <% end %>
> 15:
>
> vendor/plugins/facebooker/lib/facebooker/rails/
> facebook_form_builder.rb:30:in `build_shell''
> vendor/plugins/facebooker/lib/facebooker/rails/
> facebook_form_builder.rb:30:in `datetime_select''
> #{RAILS_ROOT}/app/views/face/new_task.rhtml:12:in
> `_run_rhtml_47app47views47face47new_task46rhtml''
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/
> form_helper.rb:151:in `fields_for''
> vendor/plugins/facebooker/lib/facebooker/rails/helpers.rb:135:in
> `facebook_form_for''
> #{RAILS_ROOT}/app/views/face/new_task.rhtml:9:in
> `_run_rhtml_47app47views47face47new_task46rhtml''
>
> To make sure im not doing something stupid, I just did and it works:
>
> <% form_for(:task, at task,:url => create_task_path) do |f| %>
> <%=f.text_field :ttype, :label=> "Title"%>
> <%=f.datetime_select :duedate, :label=> "Due
Date"%>
> <%=submit_tag %>
> <% end %>
>
> It seemed to work ok until I added the datetime select. (although
> mixing the facebook field and the rails stuff didnt look too nice.
>
> thanks
> Joel
>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
>
--
http://myfitbuddy.com | http://shanesbrain.net | http://crimsonjet.com