Class: SolidLog::UI::EntriesController

Inherits:
BaseController show all
Defined in:
app/controllers/solid_log/ui/entries_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#authenticate_user!

Instance Method Details

#index ⇒ Object



4
5
6
7
# File 'app/controllers/solid_log/ui/entries_controller.rb', line 4

def index
  # Redirect to streams for better UX
  redirect_to streams_path
end

#show ⇒ Object



9
10
11
12
13
14
15
# File 'app/controllers/solid_log/ui/entries_controller.rb', line 9

def show
  @entry = SolidLog.without_logging do
    Entry.find(params[:id])
  end

  @correlated_entries = find_correlated_entries if @entry.correlated?
end