put layout object as embeded obj in design. have bug with solving uploading file
This commit is contained in:
1 parent
706ec745c3
commit
37633ac23d
3 files changed
+6
-3
No files matched your search
@@ -18,7 +18,7 @@
|
||||
<p>
|
||||
<%= f.label "layout", t('admin.layout') %>
|
||||
<% if @design.layout.blank? %>
|
||||
<%= f.file_field :layout %>
|
||||
<%= f.file_field :layout_file %>
|
||||
<% else%>
|
||||
<%= File.basename (Design.all.last.layout.url) %>
|
||||
<% end %>
|
||||
|
||||
Reference in new issue
Block a user