lassebunk / gretel

Flexible Ruby on Rails breadcrumbs plugin.
MIT License
889 stars 114 forks source link

breadcrumbs not accepting any arguments #74

Closed smaziano closed 5 years ago

smaziano commented 8 years ago

Hello,

The main method used in the layouts as per exemple: <%= breadcrumbs pretext: "You're here: " %>

isn't accepting any arguments and gives the error:

wrong number of arguments (given 1, expected 0) If you don't pass any argument the return is empty: []

Regards, Sergio Maziano

alexandru-paduraru commented 8 years ago

@smaziano any news on this?

akoe77 commented 8 years ago

+1

Diethart commented 7 years ago

Hey guys,

I dunno if this still actual, but I found something that can help you. Check if you have any other breadcrumb's gem installed and delete it. In my case it was 'breadcrumbs_on_rails'.

I suppose 'breadcrumbs' method from Gretel overridden by same method from another crumbs gem and this cause 'wrong number of arguments' error.

Hope it helps anyone who faced this problem.