vendor/plugins/facebooker/lib/facebooker/rails/helpers.rb
# Create an fb:request-form without a selector
#
# The block passed to this tag is used as the content of the form
#
# The message param is the name sent to content_for that specifies the body of the message
#
# For example,
#
#  <% content_for("invite_message") do %>
#    This gets sent in the invite. <%= fb_req_choice("with a button!",new_poke_path) %>
#  <% end %>
#  <% fb_request_form("Poke","invite_message",create_poke_path) do %>
#    Send a poke to: <%= fb_friend_selector %> <br />
#    <%= fb_request_form_submit %>
#  <% end %>
Create an fb:request-form without a selector
The block passed to this tag is used as the content of the form

The message param is the name sent to content_for that specifies the body of the message

For example.

<% content_for("invite_message") do %>
This gets sent in the invite.
Create an fb : request - form without a selector The block passed to this tag is used as the content of the form The message param is the name sent to content_for that specifies the body of the message For example . <% content_for ( " invite_message " ) do % > This gets sent in the invite .
def fb_request_form(type,message_param,url,options={},&block)
        content = capture(&block)
        message = @template.instance_variable_get("@content_for_#{message_param}")
        versioned_concat(content_tag("fb:request-form", content + token_tag,
                  {:action=>url,:method=>"post",:invite=>true,:type=>type,:content=>message}.merge(options)),
              block.binding)
      end
def fb_request_form ( type , message_param , url , options = { } , & block ) content = capture ( & block ) message = @template . instance_variable_get ( "@content_for_#{message_param}" ) versioned_concat ( content_tag ( "fb:request-form" , content + token_tag , { :action => url , :method => "post" , :invite => true , :type => type , :content => message } . merge ( options ) ) , block . binding ) end
Create an fb:request-form without a selector
The block passed to this tag is used as the content of the form
Create an fb : request - form without a selector The block passed to this tag is used as the content of the form
type
<not_specific>
message_param
<not_specific>
url
<not_specific>
options
<not_specific>
block
<not_specific>