Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Only having one page (but having it disabled) results in a goofy bug #29

Open
abutcher opened this issue Mar 10, 2014 · 0 comments
Open
Labels

Comments

@abutcher
Copy link
Member

Started GET "/" for 127.2.104.1 at 2014-03-10 19:04:47 -0400
Processing by HomeController#index as HTML
Rendered home/index.html.erb within layouts/application (1.8ms)
Completed 500 Internal Server Error in 5ms

ActionView::Template::Error (undefined method `id' for nil:NilClass):
37:
38: <% if !@pages.empty? %>
39:


  • 40: <%= link_to("/pages/#{@first.id}/cycle", {:class => 'btn btn-small btn-success', :id => 'play', :rel => 'tooltip', :title => 'cycle pages'}) do %>
    41: <% end %>
    42:

  • 43: <% end %>
    app/views/home/index.html.erb:40

    @abutcher abutcher added the bug label Mar 10, 2014
    Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
    Labels
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant