Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shu1985 committed Apr 11, 2012
1 parent a7d994f commit 8b806b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions app/views/layouts/application.html.erb
Expand Up @@ -36,14 +36,9 @@
<br /><br />

<%# 通知/エラーメッセージ %>
<% unless flash[:notice].blank? %>
<p style="color: green;"><%=raw flash[:notice] %></p>
<% end %>
<%= simple_format( flash[:notice], style: "color: green;" ) unless flash[:notice].blank? %>
<%= simple_format( flash[:alert], style: "color: red;" ) unless flash[:alert].blank? %>
<% unless flash[:alert].blank? %>
<p style="color: red;"><%=raw flash[:alert] %></p>
<% end %>
<%= yield %>

</body>
Expand Down
2 changes: 1 addition & 1 deletion app/views/tweets/batch.html.erb
Expand Up @@ -42,7 +42,7 @@
<td style="white-space: nowrap;" rowspan="<%= room_count %>"><%= batch.total_count %></td>

<%# Result %>
<% batch_row = batch.result.split("\n") %>
<% batch_row = batch.result.to_s.split("\n") %>
<%# 行ループ %>
<% batch_row.each{ |row| %>
<tr>
Expand Down

0 comments on commit 8b806b6

Please sign in to comment.