application.rhtml.wrong
952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html>
<head>
<%= javascript_include_tag :defaults %>
<%= stylesheet_link_tag 'default' %>
</head>
<body>
<%= image_tag 'loading.gif', :id=>'spinner', :style=>"display:none; float:right;" %>
<%= link_to _('edit layout'), params.merge({:edit_layout => true}) %>
<%= link_to _('show layout'), params.merge({:edit_layout => false}) %>
<%= link_to _('acao diferente'), :action => 'teste' %>
<div id="box_1" >
<%= show_block(@owner, 1)%>
</div>
<%= update_page_tag{|page|
#TODO this is to test
#page.alert('leo')
#@box_number=1
#page.replace_html "box_1", {:partial => 'leo'};
#page.replace_html "box_1", {:partial => 'layouts/box_template'};
#page.sortable "leo_1", :url => {:action => 'sort_box', :box_number => 1};
#)page.show
}
%>
<div id="box_2" >
<%= show_block(@owner, 2)%>
<%= yield %>
</div>
<div id="box_3" >
<%= show_block(@owner, 3)%>
</div>
</body>
</html>