seyhunak/twitter-bootstrap-rails — Issue #139: bootstrap:themed issues with uncountable resources
Author: jarrinx
Created: 2012-03-08 18:03:20+00:00
State: open

When you have an uncountable resource, like 'series', bootstrap:themed generator does not take into account the correct path to use for the uncountable resource.

_form.html.erb.
<%= link_to 'Cancel', series_path, :class => 'btn' %>
should be
<%= link_to 'Cancel', series_index_path, :class => 'btn' %>

show.html.erb
<%= link_to 'Back', series_path, :class => 'btn' %>
should be
<%= link_to 'Back', series_index_path, :class => 'btn' %>

Also, bootstrap:themed doesn't take into account the uncountable inflection in config/initializers/inflections.rb and will generate index.html.erb with:

Seriess