Sha256: 98321cc222e6166cfb12a322f25ae9641f83fe71adcc3e8e42ccd4ef2fe5f67e

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

<% begin %>
  <% file_path = File.join Tailog.log_path, params[:file] %>
  <% File.open file_path do |file| %>
    <% file_size = file.size %>
    <% file.seek params[:seek].to_i %>
    <% file.each_line do |line| %>
      <p><%= h line %></p>
    <% end %>
    <script type="text/javascript">
      window.fileSize = <%= file_size %>;
    </script>
  <% end %>
<% rescue => error %>
  <div class="alert alert-danger"><%= h error.message %></div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tailog-0.1.0 app/views/ajax.erb