Sha256: 22fd738f54ac296d782caa3a58fe9321f41e214bc723e8b140d82192291d342a

Contents?: true

Size: 797 Bytes

Versions: 4

Compression:

Stored size: 797 Bytes

Contents

<%
  path = String.normalize_path(request.path)
  path = '/' if path.empty?

  view_path = path == '/' ? 'index.html' : "#{path}.html"
%>

<h1>
  Pakyow couldn't find anything to do :(
</h1>

<p class="lead">
  If you want back-end code to execute for this request, create a route in <code>app/lib/routes.rb</code>:
</p>

<pre>
  <code><span class="n">get</span> <span class="s1">'<%=path%>'</span> <span class="k">do</span>
  <span class="c1"># your code goes here</span>
<span class="k">end</span></code>
</pre>

<p class="lead">
  But, we recommend you start by creating a view at <code>app/views/<%=view_path%></code>.
  The view will be served up automatically without writing any back-end code! This pattern
  is called view-first development (you could also call it <em>awesome</em>).
</p>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pakyow-presenter-0.11.3 pakyow-presenter/lib/pakyow/views/errors/404.erb
pakyow-presenter-0.11.2 pakyow-presenter/lib/pakyow/views/errors/404.erb
pakyow-presenter-0.11.1 pakyow-presenter/lib/pakyow/views/errors/404.erb
pakyow-presenter-0.11.0 pakyow-presenter/lib/pakyow/views/errors/404.erb