matenia / bootstrap-kaminari-views

MIT License
151 stars 29 forks source link

missing partial #1

Closed lulalala closed 12 years ago

lulalala commented 12 years ago

Hi. I bundle installed the gem, and used the theme accordingly:

<%= paginate @attachments, :theme => 'twitter-bootstrap' %>

The error message is

Missing partial kaminari/twitter-bootstrap/paginator with {:locale=>[:"jp"], :formats=>[:html], :handlers=>[:erb, :builder, :coffee, :jbuilder, :rabl]}. Searched in:
  * "/Users/welly/Code/project1/app/views"
  * "/Users/welly/.rvm/gems/ruby-1.9.3-p0/gems/kaminari-0.13.0/app/views"

The list of files exists, like:

/Users/welly/.rvm/gems/ruby-1.9.3-p0/gems/kaminari-0.13.0/app/views/kaminari/_first_page.html.erb
matenia commented 12 years ago

just a few questions,

  1. what version of rails are you using?
  2. do you have the haml gem installed - I put this as a dependency but if you don't I will rewrite this in erb.
lulalala commented 12 years ago

Sorry for the delayed response: I am using Rails 3.2.2, and you are right I don't have haml installed.

matenia commented 12 years ago

The quick fix is to add the haml gem to your gemfile. The better fix is to wait for me to remove the dependency :)

Kind regards,

Matenia Rossides 0415537742 (sent from my iPhone)

On 19/04/2012, at 5:59 PM, lulalala reply@reply.github.com wrote:

Sorry for the delayed response: I am using Rails 3.2.2, and you are right I don't have haml installed.


Reply to this email directly or view it on GitHub: https://github.com/matenia/bootstrap-kaminari-views/issues/1#issuecomment-5216704

felipesabino commented 12 years ago

Yes, It would be awesome to remove the haml dependency :) Also, it does not work, even with the haml depency added

SingleShot commented 12 years ago

Agreed. I cannot get this gem to work. I use erb but did try with the haml and haml-rails gems.

matenia commented 12 years ago

Gah! .. it seems to work in a couple of projects but not a fresh one .. ... :( I'm on the case! hopefully should have a permanent fix today.

matenia commented 12 years ago

SUCCESS! ... I believe this is now fixed.

Thanks for letting me know about this .. I appreciate the feedback.

remember to bundle update bootstrap-kaminari-views to get the latest version or reference from the git repo.

thelinuxlich commented 10 years ago

I'm facing this error yet:

ActionView::MissingTemplate at /
Missing partial kaminari/twitter-bootstrap-3/paginator with {:locale=>[:"pt-BR", :pt], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder, :rabl, :curly], :versions=>[:v1]}. Searched in:
  * "/home/thelinuxlich/yebo/app/tenants/store1/themes/basic/views"
  * "/home/thelinuxlich/yebo/app/views"
  * "/home/thelinuxlich/yebo/plugins/spree_image_upload/app/views"
mindaslab commented 10 years ago

@thelinuxlich Did you bundle and restart your app?