Skip to content

Commit

Permalink
Arrumado articles para receber attachments em nested
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheus Caceres authored and Matheus Caceres committed May 14, 2009
1 parent 3d3ef06 commit 72f49ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/articles/_article.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
= stylesheet_link_tag "jquery/ui.theme", "jquery/jquery.wysiwyg"
= javascript_include_tag "app/rich", "jquery/ui.datepicker", "jquery/jquery.wysiwyg"

- semantic_form_for(@article, :html => { :class => "form" }) do |f|
- semantic_form_for(@article, :html => { :class => "form", :multipart => true }) do |f|
= f.input :title, :input_html => { :size => 60 }
= f.input :body, :input_html => { :size => "60x20" }
= f.input :public
Expand Down
5 changes: 4 additions & 1 deletion app/views/medias/_nested.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.media
- f.inputs do
= f.input :media, :label => "Arquivo"
.group
= f.input :media, :label => "Arquivo"
.group
= f.input :info

= f.remove_link "remove"

0 comments on commit 72f49ae

Please sign in to comment.