Skip to content

Instantly share code, notes, and snippets.

@evizitei
Created February 8, 2011 22:39
Show Gist options
  • Save evizitei/817439 to your computer and use it in GitHub Desktop.
Save evizitei/817439 to your computer and use it in GitHub Desktop.
=form_for(brand,:url=>save_brand_content_path,:html => { :multipart => true }) do |f|
=hidden_field_tag :brand_id,brand.id
-if content
=hidden_field_tag :content_type,content.class.to_s
=hidden_field_tag :id,content.id
#page_header
#brand_name
=f.text_field :name
= image_tag(brand.logo.url(:medium))
=f.file_field :logo
=submit_tag "Save Brand"
#banner
Banner Goes Here
resource :content,:controller=>"content" do
post "save_brand"
post "search"
post "update"
get "edit_brand"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment