% 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| %>
<%= h line %>
<% end %> <% end %> <% rescue => error %>