Skip to content

Instantly share code, notes, and snippets.

@DCarper
Created January 18, 2011 18:26
Show Gist options
  • Select an option

  • Save DCarper/784892 to your computer and use it in GitHub Desktop.

Select an option

Save DCarper/784892 to your computer and use it in GitHub Desktop.
- form_for @referral do |f|
- f.hidden_field :app_id
- f.hidden_field :app_type
belongs_to :app, :polymorphic => true
def doesnt_matter
@some_other = SomeOther.find(:id)
@referral = Referral.new(:app => @some_other)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment