Hi there,

I'm having an awful lot of trouble trying to use form_for inside a
helper. Any ideas how to get this to work?

module MyHelper

   def button_thing_attempt_1
     form_for(Button.new) do |f|
      f.submit 'Push'
    end
  end

  def button_thing_attempt_2
    with_output_buffer(form_for(Button.new) do |f|
      f.submit 'Push'
    end)
  end

end

While I get attempt 2 to render the form, the submit button is
missing. I'm just not quite sure how to really capture the complete
output of form_for.

Many thanks for any help here

RobL

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to